| 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 # IMPORTANT: | 5 # IMPORTANT: |
| 6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
| 7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
| 8 { | 8 { |
| 9 'variables': { | 9 'variables': { |
| 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 ['selinux==1', { | 304 ['selinux==1', { |
| 305 'defines': ['CHROMIUM_SELINUX=1'], | 305 'defines': ['CHROMIUM_SELINUX=1'], |
| 306 }], | 306 }], |
| 307 ['coverage!=0', { | 307 ['coverage!=0', { |
| 308 'conditions': [ | 308 'conditions': [ |
| 309 ['OS=="mac"', { | 309 ['OS=="mac"', { |
| 310 'xcode_settings': { | 310 'xcode_settings': { |
| 311 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs | 311 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs |
| 312 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage | 312 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage |
| 313 }, | 313 }, |
| 314 # Add -lgcov for executables, not for static_libraries. | 314 # Add -lgcov for executables and shared_libraries, not for |
| 315 # This is a delayed conditional. | 315 # static_libraries. This is a delayed conditional. |
| 316 'target_conditions': [ | 316 'target_conditions': [ |
| 317 ['_type=="executable"', { | 317 ['_type=="executable" or _type=="shared_library"', { |
| 318 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, | 318 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, |
| 319 }], | 319 }], |
| 320 ], | 320 ], |
| 321 }], | 321 }], |
| 322 # Linux gyp (into scons) doesn't like target_conditions? | 322 # Linux gyp (into scons) doesn't like target_conditions? |
| 323 # TODO(???): track down why 'target_conditions' doesn't work | 323 # TODO(???): track down why 'target_conditions' doesn't work |
| 324 # on Linux gyp into scons like it does on Mac gyp into xcodeproj. | 324 # on Linux gyp into scons like it does on Mac gyp into xcodeproj. |
| 325 ['OS=="linux"', { | 325 ['OS=="linux"', { |
| 326 'cflags': [ '-ftest-coverage', | 326 'cflags': [ '-ftest-coverage', |
| 327 '-fprofile-arcs' ], | 327 '-fprofile-arcs' ], |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 # and therefore SYMROOT, needs to be set at the project level. | 929 # and therefore SYMROOT, needs to be set at the project level. |
| 930 'SYMROOT': '<(DEPTH)/xcodebuild', | 930 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 931 }, | 931 }, |
| 932 } | 932 } |
| 933 | 933 |
| 934 # Local Variables: | 934 # Local Variables: |
| 935 # tab-width:2 | 935 # tab-width:2 |
| 936 # indent-tabs-mode:nil | 936 # indent-tabs-mode:nil |
| 937 # End: | 937 # End: |
| 938 # vim: set expandtab tabstop=2 shiftwidth=2: | 938 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |