OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
8 # code, as opposed to external code. This variable is used to control | 8 # code, as opposed to external code. This variable is used to control |
9 # such things as the set of warnings to enable, and whether warnings are | 9 # such things as the set of warnings to enable, and whether warnings are |
10 # treated as errors. | 10 # treated as errors. |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 # to its original precision) but they have significant runtime | 321 # to its original precision) but they have significant runtime |
322 # performance penalty. | 322 # performance penalty. |
323 # | 323 # |
324 # -mfpmath=sse -msse2 makes the compiler use SSE instructions | 324 # -mfpmath=sse -msse2 makes the compiler use SSE instructions |
325 # which keep floating-point values in SSE registers in its | 325 # which keep floating-point values in SSE registers in its |
326 # native precision (32-bit for single precision, and 64-bit for | 326 # native precision (32-bit for single precision, and 64-bit for |
327 # double precision values). This means the floating-point value | 327 # double precision values). This means the floating-point value |
328 # used during computation does not change depending on how the | 328 # used during computation does not change depending on how the |
329 # compiler optimized the code, since the value is always kept | 329 # compiler optimized the code, since the value is always kept |
330 # in its specified precision. | 330 # in its specified precision. |
| 331 'conditions': [ |
| 332 ['branding=="Chromium"', { |
| 333 'cflags': [ |
| 334 '-march=pentium4', |
| 335 '-msse2', |
| 336 '-mfpmath=sse', |
| 337 ], |
| 338 }], |
| 339 ], |
331 'cflags': [ | 340 'cflags': [ |
332 '-m32', | 341 '-m32', |
333 '-march=pentium4', | |
334 '-fno-exceptions', | 342 '-fno-exceptions', |
335 '-msse2', | |
336 '-mfpmath=sse', | |
337 '-Wall', | 343 '-Wall', |
338 ], | 344 ], |
339 'ldflags': [ | 345 'ldflags': [ |
340 '-m32', | 346 '-m32', |
341 ], | 347 ], |
342 }], | 348 }], |
343 ], | 349 ], |
344 }, | 350 }, |
345 }], | 351 }], |
346 ['OS=="mac"', { | 352 ['OS=="mac"', { |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 # settings in target dicts. SYMROOT is a special case, because many other | 497 # settings in target dicts. SYMROOT is a special case, because many other |
492 # Xcode variables depend on it, including variables such as | 498 # Xcode variables depend on it, including variables such as |
493 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 499 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
494 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 500 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
495 # files to appear (when present) in the UI as actual files and not red | 501 # files to appear (when present) in the UI as actual files and not red |
496 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 502 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
497 # and therefore SYMROOT, needs to be set at the project level. | 503 # and therefore SYMROOT, needs to be set at the project level. |
498 'SYMROOT': '<(DEPTH)/xcodebuild', | 504 'SYMROOT': '<(DEPTH)/xcodebuild', |
499 }, | 505 }, |
500 } | 506 } |
OLD | NEW |