| 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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 # share the same compiler executable as the system driving the compilation, | 946 # share the same compiler executable as the system driving the compilation, |
| 947 # because precompiled headers rely on pointers into a specific compiler | 947 # because precompiled headers rely on pointers into a specific compiler |
| 948 # executable's image. Setting this to 0 is needed to use an experimental | 948 # executable's image. Setting this to 0 is needed to use an experimental |
| 949 # Linux-Mac cross compiler distcc farm. | 949 # Linux-Mac cross compiler distcc farm. |
| 950 'chromium_mac_pch%': 1, | 950 'chromium_mac_pch%': 1, |
| 951 | 951 |
| 952 # The default value for mac_strip in target_defaults. This cannot be | 952 # The default value for mac_strip in target_defaults. This cannot be |
| 953 # set there, per the comment about variable% in a target_defaults. | 953 # set there, per the comment about variable% in a target_defaults. |
| 954 'mac_strip_release%': 0, | 954 'mac_strip_release%': 0, |
| 955 | 955 |
| 956 # Set to 1 to enable code coverage. In addition to build changes | |
| 957 # (e.g. extra CFLAGS), also creates a new target in the src/chrome | |
| 958 # project file called "coverage". | |
| 959 # Currently ignored on Windows. | |
| 960 'coverage%': 0, | |
| 961 | |
| 962 # Set to 1 to enable java code coverage. Instruments classes during build | 956 # Set to 1 to enable java code coverage. Instruments classes during build |
| 963 # to produce .ec files during runtime. | 957 # to produce .ec files during runtime. |
| 964 'emma_coverage%': 0, | 958 'emma_coverage%': 0, |
| 965 | 959 |
| 966 # EMMA filter string consisting of a list of inclusion/exclusion patterns | 960 # EMMA filter string consisting of a list of inclusion/exclusion patterns |
| 967 # separated with whitespace and/or comma. Only has effect if | 961 # separated with whitespace and/or comma. Only has effect if |
| 968 # 'emma_coverage=1'. | 962 # 'emma_coverage=1'. |
| 969 'emma_filter%': '', | 963 'emma_filter%': '', |
| 970 | 964 |
| 971 # Set to 1 to force Visual C++ to use legacy debug information format /Z7. | 965 # Set to 1 to force Visual C++ to use legacy debug information format /Z7. |
| (...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2219 'msvs_settings': { | 2213 'msvs_settings': { |
| 2220 'VCLinkerTool': { | 2214 'VCLinkerTool': { |
| 2221 'Profile': 'true', | 2215 'Profile': 'true', |
| 2222 }, | 2216 }, |
| 2223 }, | 2217 }, |
| 2224 'defines': [ | 2218 'defines': [ |
| 2225 'ADDRESS_SANITIZER', | 2219 'ADDRESS_SANITIZER', |
| 2226 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 2220 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
| 2227 ], | 2221 ], |
| 2228 }], # asan==1 and OS=="win" | 2222 }], # asan==1 and OS=="win" |
| 2229 ['coverage!=0', { | |
| 2230 'conditions': [ | |
| 2231 ['OS=="mac" or OS=="ios"', { | |
| 2232 'xcode_settings': { | |
| 2233 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs | |
| 2234 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage | |
| 2235 }, | |
| 2236 }], | |
| 2237 ['OS=="mac"', { | |
| 2238 # Add -lgcov for types executable, shared_library, and | |
| 2239 # loadable_module; not for static_library. | |
| 2240 # This is a delayed conditional. | |
| 2241 'target_conditions': [ | |
| 2242 ['_type!="static_library"', { | |
| 2243 'xcode_settings': { 'OTHER_LDFLAGS': [ '-lgcov' ] }, | |
| 2244 }], | |
| 2245 ], | |
| 2246 }], | |
| 2247 ['OS=="linux" or OS=="android"', { | |
| 2248 'cflags': [ '-ftest-coverage', | |
| 2249 '-fprofile-arcs' ], | |
| 2250 'link_settings': { 'libraries': [ '-lgcov' ] }, | |
| 2251 }], | |
| 2252 ['OS=="win"', { | |
| 2253 'variables': { | |
| 2254 # Disable incremental linking for all modules. | |
| 2255 # 0: inherit, 1: disabled, 2: enabled. | |
| 2256 'msvs_debug_link_incremental': '1', | |
| 2257 'msvs_large_module_debug_link_mode': '1', | |
| 2258 # Disable RTC. Syzygy explicitly doesn't support RTC instrumented | |
| 2259 # binaries for now. | |
| 2260 'win_debug_RuntimeChecks': '0', | |
| 2261 }, | |
| 2262 'defines': [ | |
| 2263 # Disable iterator debugging (huge speed boost without any | |
| 2264 # change in coverage results). | |
| 2265 '_HAS_ITERATOR_DEBUGGING=0', | |
| 2266 ], | |
| 2267 'msvs_settings': { | |
| 2268 'VCLinkerTool': { | |
| 2269 # Enable profile information (necessary for coverage | |
| 2270 # instrumentation). This is incompatible with incremental | |
| 2271 # linking. | |
| 2272 'Profile': 'true', | |
| 2273 }, | |
| 2274 } | |
| 2275 }], # OS==win | |
| 2276 ], # conditions for coverage | |
| 2277 }], # coverage!=0 | |
| 2278 ['OS=="win"', { | 2223 ['OS=="win"', { |
| 2279 'defines': [ | 2224 'defines': [ |
| 2280 '__STD_C', | 2225 '__STD_C', |
| 2281 '_CRT_SECURE_NO_DEPRECATE', | 2226 '_CRT_SECURE_NO_DEPRECATE', |
| 2282 '_SCL_SECURE_NO_DEPRECATE', | 2227 '_SCL_SECURE_NO_DEPRECATE', |
| 2283 # This define is required to pull in the new Win8 interfaces from | 2228 # This define is required to pull in the new Win8 interfaces from |
| 2284 # system headers like ShObjIdl.h. | 2229 # system headers like ShObjIdl.h. |
| 2285 'NTDDI_VERSION=0x06020000', | 2230 'NTDDI_VERSION=0x06020000', |
| 2286 # This is required for ATL to use XP-safe versions of its functions. | 2231 # This is required for ATL to use XP-safe versions of its functions. |
| 2287 '_USING_V110_SDK71_', | 2232 '_USING_V110_SDK71_', |
| (...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4749 # settings in target dicts. SYMROOT is a special case, because many other | 4694 # settings in target dicts. SYMROOT is a special case, because many other |
| 4750 # Xcode variables depend on it, including variables such as | 4695 # Xcode variables depend on it, including variables such as |
| 4751 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4696 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4752 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4697 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4753 # files to appear (when present) in the UI as actual files and not red | 4698 # files to appear (when present) in the UI as actual files and not red |
| 4754 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4699 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4755 # and therefore SYMROOT, needs to be set at the project level. | 4700 # and therefore SYMROOT, needs to be set at the project level. |
| 4756 'SYMROOT': '<(DEPTH)/xcodebuild', | 4701 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4757 }, | 4702 }, |
| 4758 } | 4703 } |
| OLD | NEW |