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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 # to its original precision) but they have significant runtime | 295 # to its original precision) but they have significant runtime |
296 # performance penalty. | 296 # performance penalty. |
297 # | 297 # |
298 # -mfpmath=sse -msse2 makes the compiler use SSE instructions | 298 # -mfpmath=sse -msse2 makes the compiler use SSE instructions |
299 # which keep floating-point values in SSE registers in its | 299 # which keep floating-point values in SSE registers in its |
300 # native precision (32-bit for single precision, and 64-bit for | 300 # native precision (32-bit for single precision, and 64-bit for |
301 # double precision values). This means the floating-point value | 301 # double precision values). This means the floating-point value |
302 # used during computation does not change depending on how the | 302 # used during computation does not change depending on how the |
303 # compiler optimized the code, since the value is always kept | 303 # compiler optimized the code, since the value is always kept |
304 # in its specified precision. | 304 # in its specified precision. |
| 305 'conditions': [ |
| 306 ['branding=="Chromium"', { |
| 307 'cflags': [ |
| 308 '-march=pentium4', |
| 309 '-msse2', |
| 310 '-mfpmath=sse', |
| 311 ], |
| 312 }], |
| 313 ], |
305 'cflags': [ | 314 'cflags': [ |
306 '-m32', | 315 '-m32', |
307 '-march=pentium4', | |
308 '-fno-exceptions', | 316 '-fno-exceptions', |
309 '-msse2', | |
310 '-mfpmath=sse', | |
311 '-Wall', | 317 '-Wall', |
312 ], | 318 ], |
313 'ldflags': [ | 319 'ldflags': [ |
314 '-m32', | 320 '-m32', |
315 ], | 321 ], |
316 }], | 322 }], |
317 ], | 323 ], |
318 }, | 324 }, |
319 }], | 325 }], |
320 ['OS=="mac"', { | 326 ['OS=="mac"', { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 # settings in target dicts. SYMROOT is a special case, because many other | 464 # settings in target dicts. SYMROOT is a special case, because many other |
459 # Xcode variables depend on it, including variables such as | 465 # Xcode variables depend on it, including variables such as |
460 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 466 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
461 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 467 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
462 # files to appear (when present) in the UI as actual files and not red | 468 # files to appear (when present) in the UI as actual files and not red |
463 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 469 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
464 # and therefore SYMROOT, needs to be set at the project level. | 470 # and therefore SYMROOT, needs to be set at the project level. |
465 'SYMROOT': '<(DEPTH)/xcodebuild', | 471 'SYMROOT': '<(DEPTH)/xcodebuild', |
466 }, | 472 }, |
467 } | 473 } |
OLD | NEW |