OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 'variables': { | 9 'variables': { |
10 # .gyp files or targets should set chromium_code to 1 if they build | 10 # .gyp files or targets should set chromium_code to 1 if they build |
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 # compiler optimized the code, since the value is always kept | 884 # compiler optimized the code, since the value is always kept |
885 # in its specified precision. | 885 # in its specified precision. |
886 'conditions': [ | 886 'conditions': [ |
887 ['branding=="Chromium"', { | 887 ['branding=="Chromium"', { |
888 'cflags': [ | 888 'cflags': [ |
889 '-march=pentium4', | 889 '-march=pentium4', |
890 '-msse2', | 890 '-msse2', |
891 '-mfpmath=sse', | 891 '-mfpmath=sse', |
892 ], | 892 ], |
893 }], | 893 }], |
| 894 # ChromeOS targets Pinetrail, which is ssse3, but most of the |
| 895 # benefit comes from sse2 so this setting allows ChromeOS |
| 896 # to build on other CPUs. In the future -march=atom would help |
| 897 # but requires a newer compiler. |
| 898 ['chromeos==1', { |
| 899 'cflags': [ |
| 900 '-msse2', |
| 901 ], |
| 902 }], |
894 ], | 903 ], |
895 # -mmmx allows mmintrin.h to be used for mmx intrinsics. | 904 # -mmmx allows mmintrin.h to be used for mmx intrinsics. |
896 # video playback is mmx and sse2 optimized. | 905 # video playback is mmx and sse2 optimized. |
897 'cflags': [ | 906 'cflags': [ |
898 '-m32', | 907 '-m32', |
899 '-mmmx', | 908 '-mmmx', |
900 ], | 909 ], |
901 'ldflags': [ | 910 'ldflags': [ |
902 '-m32', | 911 '-m32', |
903 ], | 912 ], |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 # and therefore SYMROOT, needs to be set at the project level. | 1266 # and therefore SYMROOT, needs to be set at the project level. |
1258 'SYMROOT': '<(DEPTH)/xcodebuild', | 1267 'SYMROOT': '<(DEPTH)/xcodebuild', |
1259 }, | 1268 }, |
1260 } | 1269 } |
1261 | 1270 |
1262 # Local Variables: | 1271 # Local Variables: |
1263 # tab-width:2 | 1272 # tab-width:2 |
1264 # indent-tabs-mode:nil | 1273 # indent-tabs-mode:nil |
1265 # End: | 1274 # End: |
1266 # vim: set expandtab tabstop=2 shiftwidth=2: | 1275 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |