| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 # ~/.gyp/include.gypi . | 58 # ~/.gyp/include.gypi . |
| 59 'toolkit_views%': 0, | 59 'toolkit_views%': 0, |
| 60 }, | 60 }, |
| 61 'target_defaults': { | 61 'target_defaults': { |
| 62 'conditions': [ | 62 'conditions': [ |
| 63 ['branding=="Chrome"', { | 63 ['branding=="Chrome"', { |
| 64 'defines': ['GOOGLE_CHROME_BUILD'], | 64 'defines': ['GOOGLE_CHROME_BUILD'], |
| 65 }, { # else: branding!="Chrome" | 65 }, { # else: branding!="Chrome" |
| 66 'defines': ['CHROMIUM_BUILD'], | 66 'defines': ['CHROMIUM_BUILD'], |
| 67 }], | 67 }], |
| 68 ['toolkit_views=="1"', { | 68 ['toolkit_views==1', { |
| 69 'defines': ['TOOLKIT_VIEWS=1'], | 69 'defines': ['TOOLKIT_VIEWS=1'], |
| 70 }], | 70 }], |
| 71 ['coverage!=0', { | 71 ['coverage!=0', { |
| 72 'conditions': [ | 72 'conditions': [ |
| 73 ['OS=="mac"', { | 73 ['OS=="mac"', { |
| 74 'xcode_settings': { | 74 'xcode_settings': { |
| 75 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', | 75 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', |
| 76 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', | 76 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', |
| 77 }, | 77 }, |
| 78 # Add -lgcov for executables, not for static_libraries. | 78 # Add -lgcov for executables, not for static_libraries. |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 # settings in target dicts. SYMROOT is a special case, because many other | 458 # settings in target dicts. SYMROOT is a special case, because many other |
| 459 # Xcode variables depend on it, including variables such as | 459 # Xcode variables depend on it, including variables such as |
| 460 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 460 # 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 | 461 # 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 | 462 # 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, | 463 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 464 # and therefore SYMROOT, needs to be set at the project level. | 464 # and therefore SYMROOT, needs to be set at the project level. |
| 465 'SYMROOT': '<(DEPTH)/xcodebuild', | 465 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 466 }, | 466 }, |
| 467 } | 467 } |
| OLD | NEW |