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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 '-O2', | 275 '-O2', |
276 # Don't emit the GCC version ident directives, they just end up | 276 # Don't emit the GCC version ident directives, they just end up |
277 # in the .comment section taking up binary size. | 277 # in the .comment section taking up binary size. |
278 '-fno-ident', | 278 '-fno-ident', |
279 # Put data and code in their own sections, so that unused symbols | 279 # Put data and code in their own sections, so that unused symbols |
280 # can be removed at link time with --gc-sections. | 280 # can be removed at link time with --gc-sections. |
281 '-fdata-sections', | 281 '-fdata-sections', |
282 '-ffunction-sections', | 282 '-ffunction-sections', |
283 ], | 283 ], |
284 }, | 284 }, |
285 # Some utility binaries need to be build with the host's native | |
286 # config (i.e. no 32-bit override). | |
287 'Tool': { | |
288 'cflags!': ['-m32', '-march=pentium4', '-msse2', '-mfpmath=sse'], | |
289 'ldflags!': ['-m32'], | |
290 'cflags': [ '-O2' ], | |
291 }, | |
292 }, | 285 }, |
293 'variants': { | 286 'variants': { |
294 'coverage': { | 287 'coverage': { |
295 'cflags': ['-fprofile-arcs', '-ftest-coverage'], | 288 'cflags': ['-fprofile-arcs', '-ftest-coverage'], |
296 'ldflags': ['-fprofile-arcs'], | 289 'ldflags': ['-fprofile-arcs'], |
297 }, | 290 }, |
298 'profile': { | 291 'profile': { |
299 'cflags': ['-pg', '-g'], | 292 'cflags': ['-pg', '-g'], |
300 'ldflags': ['-pg'], | 293 'ldflags': ['-pg'], |
301 }, | 294 }, |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 # settings in target dicts. SYMROOT is a special case, because many other | 530 # settings in target dicts. SYMROOT is a special case, because many other |
538 # Xcode variables depend on it, including variables such as | 531 # Xcode variables depend on it, including variables such as |
539 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 532 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
540 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 533 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
541 # files to appear (when present) in the UI as actual files and not red | 534 # files to appear (when present) in the UI as actual files and not red |
542 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 535 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
543 # and therefore SYMROOT, needs to be set at the project level. | 536 # and therefore SYMROOT, needs to be set at the project level. |
544 'SYMROOT': '<(DEPTH)/xcodebuild', | 537 'SYMROOT': '<(DEPTH)/xcodebuild', |
545 }, | 538 }, |
546 } | 539 } |
OLD | NEW |