OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 # The default value for mac_strip in target_defaults. This cannot be | 917 # The default value for mac_strip in target_defaults. This cannot be |
918 # set there, per the comment about variable% in a target_defaults. | 918 # set there, per the comment about variable% in a target_defaults. |
919 'mac_strip_release%': 1, | 919 'mac_strip_release%': 1, |
920 | 920 |
921 # Set to 1 to enable code coverage. In addition to build changes | 921 # Set to 1 to enable code coverage. In addition to build changes |
922 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | 922 # (e.g. extra CFLAGS), also creates a new target in the src/chrome |
923 # project file called "coverage". | 923 # project file called "coverage". |
924 # Currently ignored on Windows. | 924 # Currently ignored on Windows. |
925 'coverage%': 0, | 925 'coverage%': 0, |
926 | 926 |
| 927 # Set to 1 to enable java code coverage. Instruments classes during build |
| 928 # to produce .ec files during runtime. |
| 929 'emma_coverage%': 0, |
| 930 |
927 # Set to 1 to force Visual C++ to use legacy debug information format /Z7. | 931 # Set to 1 to force Visual C++ to use legacy debug information format /Z7. |
928 # This is useful for parallel compilation tools which can't support /Zi. | 932 # This is useful for parallel compilation tools which can't support /Zi. |
929 # Only used on Windows. | 933 # Only used on Windows. |
930 'win_z7%' : 0, | 934 'win_z7%' : 0, |
931 | 935 |
932 # Although base/allocator lets you select a heap library via an | 936 # Although base/allocator lets you select a heap library via an |
933 # environment variable, the libcmt shim it uses sometimes gets in | 937 # environment variable, the libcmt shim it uses sometimes gets in |
934 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. | 938 # the way. To disable it entirely, and switch to normal msvcrt, do e.g. |
935 # 'win_use_allocator_shim': 0, | 939 # 'win_use_allocator_shim': 0, |
936 # 'win_release_RuntimeLibrary': 2 | 940 # 'win_release_RuntimeLibrary': 2 |
(...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2160 # Add -lgcov for types executable, shared_library, and | 2164 # Add -lgcov for types executable, shared_library, and |
2161 # loadable_module; not for static_library. | 2165 # loadable_module; not for static_library. |
2162 # This is a delayed conditional. | 2166 # This is a delayed conditional. |
2163 'target_conditions': [ | 2167 'target_conditions': [ |
2164 ['_type!="static_library"', { | 2168 ['_type!="static_library"', { |
2165 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, | 2169 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, |
2166 }], | 2170 }], |
2167 ], | 2171 ], |
2168 }], | 2172 }], |
2169 ['OS=="linux" or OS=="android"', { | 2173 ['OS=="linux" or OS=="android"', { |
2170 'cflags': [ '-ftest-coverage', | 2174 'cflags': [ '--coverage', '-g', |
2171 '-fprofile-arcs' ], | 2175 '-DANDROID_COVERAGE' ], |
2172 'link_settings': { 'libraries': [ '-lgcov' ] }, | 2176 'link_settings': { 'libraries': [ '-lgcov' ] }, |
2173 }], | 2177 }], |
2174 ['OS=="win"', { | 2178 ['OS=="win"', { |
2175 'variables': { | 2179 'variables': { |
2176 # Disable incremental linking for all modules. | 2180 # Disable incremental linking for all modules. |
2177 # 0: inherit, 1: disabled, 2: enabled. | 2181 # 0: inherit, 1: disabled, 2: enabled. |
2178 'msvs_debug_link_incremental': '1', | 2182 'msvs_debug_link_incremental': '1', |
2179 'msvs_large_module_debug_link_mode': '1', | 2183 'msvs_large_module_debug_link_mode': '1', |
2180 # Disable RTC. Syzygy explicitly doesn't support RTC instrumented | 2184 # Disable RTC. Syzygy explicitly doesn't support RTC instrumented |
2181 # binaries for now. | 2185 # binaries for now. |
(...skipping 2538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4720 # settings in target dicts. SYMROOT is a special case, because many other | 4724 # settings in target dicts. SYMROOT is a special case, because many other |
4721 # Xcode variables depend on it, including variables such as | 4725 # Xcode variables depend on it, including variables such as |
4722 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4726 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4723 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4727 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4724 # files to appear (when present) in the UI as actual files and not red | 4728 # files to appear (when present) in the UI as actual files and not red |
4725 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4729 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4726 # and therefore SYMROOT, needs to be set at the project level. | 4730 # and therefore SYMROOT, needs to be set at the project level. |
4727 'SYMROOT': '<(DEPTH)/xcodebuild', | 4731 'SYMROOT': '<(DEPTH)/xcodebuild', |
4728 }, | 4732 }, |
4729 } | 4733 } |
OLD | NEW |