Chromium Code Reviews| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 'CXX', | 224 'CXX', |
| 225 'DISTCC_DIR', | 225 'DISTCC_DIR', |
| 226 'DISTCC_HOSTS', | 226 'DISTCC_HOSTS', |
| 227 'HOME', | 227 'HOME', |
| 228 'INCLUDE_SERVER_ARGS', | 228 'INCLUDE_SERVER_ARGS', |
| 229 'INCLUDE_SERVER_PORT', | 229 'INCLUDE_SERVER_PORT', |
| 230 'LINK', | 230 'LINK', |
| 231 ], | 231 ], |
| 232 'configurations': { | 232 'configurations': { |
| 233 'Debug': { | 233 'Debug': { |
| 234 'variables': { | |
| 235 'debug_optimize%': '0', | |
| 236 }, | |
| 234 'defines': [ | 237 'defines': [ |
| 235 '_DEBUG', | 238 '_DEBUG', |
| 236 ], | 239 ], |
| 237 'cflags': [ | 240 'cflags': [ |
| 238 '-O0', | 241 '-O<(debug_optimize)', |
| 239 '-g', | 242 '-g', |
| 240 ], | 243 ], |
| 241 }, | 244 }, |
| 242 'Release': { | 245 'Release': { |
| 243 'cflags': [ | 246 'cflags': [ |
| 244 '-O2', | 247 '-O2', |
|
Mark Mentovai
2009/04/20 19:06:54
I suggest doing -O<(debug_optimize) here too, and
| |
| 245 # Don't emit the GCC version ident directives, they just end up | 248 # Don't emit the GCC version ident directives, they just end up |
| 246 # in the .comment section taking up binary size. | 249 # in the .comment section taking up binary size. |
| 247 '-fno-ident', | 250 '-fno-ident', |
| 248 # Put data and code in their own sections, so that unused symbols | 251 # Put data and code in their own sections, so that unused symbols |
| 249 # can be removed at link time with --gc-sections. | 252 # can be removed at link time with --gc-sections. |
| 250 '-fdata-sections', | 253 '-fdata-sections', |
| 251 '-ffunction-sections', | 254 '-ffunction-sections', |
| 252 ], | 255 ], |
| 253 }, | 256 }, |
| 254 }, | 257 }, |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 408 # settings in target dicts. SYMROOT is a special case, because many other | 411 # settings in target dicts. SYMROOT is a special case, because many other |
| 409 # Xcode variables depend on it, including variables such as | 412 # Xcode variables depend on it, including variables such as |
| 410 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 413 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 411 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 414 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 412 # files to appear (when present) in the UI as actual files and not red | 415 # files to appear (when present) in the UI as actual files and not red |
| 413 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 416 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 414 # and therefore SYMROOT, needs to be set at the project level. | 417 # and therefore SYMROOT, needs to be set at the project level. |
| 415 'SYMROOT': '<(DEPTH)/xcodebuild', | 418 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 416 }, | 419 }, |
| 417 } | 420 } |
| OLD | NEW |