| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 # The architecture that we're building on. | 60 # The architecture that we're building on. |
| 61 'target_arch%': 'ia32', | 61 'target_arch%': 'ia32', |
| 62 | 62 |
| 63 # By default linux does not use views. To turn on views in Linux | 63 # By default linux does not use views. To turn on views in Linux |
| 64 # set the variable GYP_DEFINES to "toolkit_views=1", or modify | 64 # set the variable GYP_DEFINES to "toolkit_views=1", or modify |
| 65 # ~/.gyp/include.gypi . | 65 # ~/.gyp/include.gypi . |
| 66 'toolkit_views%': 0, | 66 'toolkit_views%': 0, |
| 67 | 67 |
| 68 'linux2%': 0, | 68 'linux2%': 0, |
| 69 | 69 |
| 70 'chrome_personalization%': 0, | 70 'chrome_personalization%': 0, |
| 71 }, | 71 }, |
| 72 'target_defaults': { | 72 'target_defaults': { |
| 73 'conditions': [ | 73 'conditions': [ |
| 74 ['branding=="Chrome"', { | 74 ['branding=="Chrome"', { |
| 75 'defines': ['GOOGLE_CHROME_BUILD'], | 75 'defines': ['GOOGLE_CHROME_BUILD'], |
| 76 'conditions': [ | 76 'conditions': [ |
| 77 ['OS=="linux"', { | 77 ['OS=="linux"', { |
| 78 'cflags': [ '-gstabs' ], | 78 'cflags': [ '-gstabs' ], |
| 79 }], | 79 }], |
| (...skipping 26 matching lines...) Expand all Loading... |
| 106 ], | 106 ], |
| 107 }], | 107 }], |
| 108 # Linux gyp (into scons) doesn't like target_conditions? | 108 # Linux gyp (into scons) doesn't like target_conditions? |
| 109 # TODO(???): track down why 'target_conditions' doesn't work | 109 # TODO(???): track down why 'target_conditions' doesn't work |
| 110 # on Linux gyp into scons like it does on Mac gyp into xcodeproj. | 110 # on Linux gyp into scons like it does on Mac gyp into xcodeproj. |
| 111 ['OS=="linux"', { | 111 ['OS=="linux"', { |
| 112 'cflags': [ '-ftest-coverage', | 112 'cflags': [ '-ftest-coverage', |
| 113 '-fprofile-arcs' ], | 113 '-fprofile-arcs' ], |
| 114 'link_settings': { 'libraries': [ '-lgcov' ] }, | 114 'link_settings': { 'libraries': [ '-lgcov' ] }, |
| 115 }], | 115 }], |
| 116 ]}, | 116 # Finally, for Windows, we simply turn on profiling. |
| 117 # TODO(jrg): options for code coverage on Windows | 117 ['OS=="win"', { |
| 118 ], | 118 'msvs_settings': { |
| 119 ], | 119 'VCLinkerTool': { |
| 120 'Profile': 'true', |
| 121 }, |
| 122 » 'VCCLCompilerTool': { |
| 123 # /Z7, not /Zi, so coverage is happy |
| 124 'DebugInformationFormat': '1', |
| 125 'AdditionalOptions': '/Yd', |
| 126 } |
| 127 } |
| 128 }], # OS==win |
| 129 ], # conditions for coverage |
| 130 }], # coverage!=0 |
| 131 ], # conditions for 'target_defaults' |
| 120 'default_configuration': 'Debug', | 132 'default_configuration': 'Debug', |
| 121 'configurations': { | 133 'configurations': { |
| 122 # VCLinkerTool LinkIncremental values below: | 134 # VCLinkerTool LinkIncremental values below: |
| 123 # 0 == default | 135 # 0 == default |
| 124 # 1 == /INCREMENTAL:NO | 136 # 1 == /INCREMENTAL:NO |
| 125 # 2 == /INCREMENTAL | 137 # 2 == /INCREMENTAL |
| 126 # Debug links incremental, Release does not. | 138 # Debug links incremental, Release does not. |
| 127 'Debug': { | 139 'Debug': { |
| 128 'conditions': [ | 140 'conditions': [ |
| 129 [ 'OS=="mac"', { | 141 [ 'OS=="mac"', { |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 # settings in target dicts. SYMROOT is a special case, because many other | 551 # settings in target dicts. SYMROOT is a special case, because many other |
| 540 # Xcode variables depend on it, including variables such as | 552 # Xcode variables depend on it, including variables such as |
| 541 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 553 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 542 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 554 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 543 # files to appear (when present) in the UI as actual files and not red | 555 # files to appear (when present) in the UI as actual files and not red |
| 544 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 556 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 545 # and therefore SYMROOT, needs to be set at the project level. | 557 # and therefore SYMROOT, needs to be set at the project level. |
| 546 'SYMROOT': '<(DEPTH)/xcodebuild', | 558 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 547 }, | 559 }, |
| 548 } | 560 } |
| OLD | NEW |