| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 '-O<(debug_optimize)', | 319 '-O<(debug_optimize)', |
| 320 '-g', | 320 '-g', |
| 321 # One can use '-gstabs' to enable building the debugging | 321 # One can use '-gstabs' to enable building the debugging |
| 322 # information in STABS format for breakpad's dumpsyms. | 322 # information in STABS format for breakpad's dumpsyms. |
| 323 ], | 323 ], |
| 324 'ldflags': [ | 324 'ldflags': [ |
| 325 '-rdynamic', # Allows backtrace to resolve symbols. | 325 '-rdynamic', # Allows backtrace to resolve symbols. |
| 326 ], | 326 ], |
| 327 }, | 327 }, |
| 328 'Release': { | 328 'Release': { |
| 329 'variables': { |
| 330 'release_optimize%': '2', |
| 331 }, |
| 329 'cflags': [ | 332 'cflags': [ |
| 330 '-O2', | 333 '-O<(release_optimize)', |
| 331 # Don't emit the GCC version ident directives, they just end up | 334 # Don't emit the GCC version ident directives, they just end up |
| 332 # in the .comment section taking up binary size. | 335 # in the .comment section taking up binary size. |
| 333 '-fno-ident', | 336 '-fno-ident', |
| 334 # Put data and code in their own sections, so that unused symbols | 337 # Put data and code in their own sections, so that unused symbols |
| 335 # can be removed at link time with --gc-sections. | 338 # can be removed at link time with --gc-sections. |
| 336 '-fdata-sections', | 339 '-fdata-sections', |
| 337 '-ffunction-sections', | 340 '-ffunction-sections', |
| 338 ], | 341 ], |
| 339 }, | 342 }, |
| 340 }, | 343 }, |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 # settings in target dicts. SYMROOT is a special case, because many other | 617 # settings in target dicts. SYMROOT is a special case, because many other |
| 615 # Xcode variables depend on it, including variables such as | 618 # Xcode variables depend on it, including variables such as |
| 616 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 619 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 617 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 620 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 618 # files to appear (when present) in the UI as actual files and not red | 621 # files to appear (when present) in the UI as actual files and not red |
| 619 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 622 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 620 # and therefore SYMROOT, needs to be set at the project level. | 623 # and therefore SYMROOT, needs to be set at the project level. |
| 621 'SYMROOT': '<(DEPTH)/xcodebuild', | 624 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 622 }, | 625 }, |
| 623 } | 626 } |
| OLD | NEW |