Chromium Code Reviews| 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 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1210 'chrome_pgo_phase%': '0', | 1210 'chrome_pgo_phase%': '0', |
| 1211 | 1211 |
| 1212 # The default settings for third party code for treating | 1212 # The default settings for third party code for treating |
| 1213 # warnings-as-errors. Ideally, this would not be required, however there | 1213 # warnings-as-errors. Ideally, this would not be required, however there |
| 1214 # is some third party code that takes a long time to fix/roll. So, this | 1214 # is some third party code that takes a long time to fix/roll. So, this |
| 1215 # flag allows us to have warnings as errors in general to prevent | 1215 # flag allows us to have warnings as errors in general to prevent |
| 1216 # regressions in most modules, while working on the bits that are | 1216 # regressions in most modules, while working on the bits that are |
| 1217 # remaining. | 1217 # remaining. |
| 1218 'win_third_party_warn_as_error%': 'true', | 1218 'win_third_party_warn_as_error%': 'true', |
| 1219 | 1219 |
| 1220 # Force /SUBSYSTEM:CONSOLE for some executables that use /SUBSYSTEM:WINDOWS | |
| 1221 # by default. This should simplify debugging since windowed applications | |
| 1222 # don't play well with stdout/stderr. | |
| 1223 'win_force_console%': '0', | |
|
scottmg
2014/06/05 18:17:42
could you make this win_force_console_subsystem to
| |
| 1224 | |
| 1220 # Clang stuff. | 1225 # Clang stuff. |
| 1221 'clang%': '<(clang)', | 1226 'clang%': '<(clang)', |
| 1222 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', | 1227 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', |
| 1223 | 1228 |
| 1224 # Control which version of clang to use when building for iOS. If set to | 1229 # Control which version of clang to use when building for iOS. If set to |
| 1225 # '1', uses the version of clang that ships with Xcode. If set to '0', uses | 1230 # '1', uses the version of clang that ships with Xcode. If set to '0', uses |
| 1226 # the version of clang that ships with the Chromium source. This variable | 1231 # the version of clang that ships with the Chromium source. This variable |
| 1227 # is automatically set to '1' when using the Xcode generator. | 1232 # is automatically set to '1' when using the Xcode generator. |
| 1228 'clang_xcode%': 0, | 1233 'clang_xcode%': 0, |
| 1229 | 1234 |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1821 'winsdk_arch%': '<(target_arch)', | 1826 'winsdk_arch%': '<(target_arch)', |
| 1822 }], | 1827 }], |
| 1823 ['component=="shared_library"', { | 1828 ['component=="shared_library"', { |
| 1824 'win_use_allocator_shim%': 0, | 1829 'win_use_allocator_shim%': 0, |
| 1825 },{ | 1830 },{ |
| 1826 # Turn on multiple dll by default on Windows when in static_library. | 1831 # Turn on multiple dll by default on Windows when in static_library. |
| 1827 'chrome_multiple_dll%': 1, | 1832 'chrome_multiple_dll%': 1, |
| 1828 }], | 1833 }], |
| 1829 ['asan==1', { | 1834 ['asan==1', { |
| 1830 'win_use_allocator_shim%': 0, | 1835 'win_use_allocator_shim%': 0, |
| 1836 # The AddressSanitizer build should be a console program | |
| 1837 # as it prints out stuff on stderr. | |
| 1838 'win_force_console%': '1', | |
| 1831 }], | 1839 }], |
| 1832 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { | 1840 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { |
| 1833 # Only enabled by default for ninja because it's buggy in VS. | 1841 # Only enabled by default for ninja because it's buggy in VS. |
| 1834 # Not enabled for component=static_library because some targets | 1842 # Not enabled for component=static_library because some targets |
| 1835 # are too large and the toolchain fails due to the size of the | 1843 # are too large and the toolchain fails due to the size of the |
| 1836 # .obj files. | 1844 # .obj files. |
| 1837 'incremental_chrome_dll%': 1, | 1845 'incremental_chrome_dll%': 1, |
| 1838 }], | 1846 }], |
| 1839 # Don't do incremental linking for large modules on 32-bit or when | 1847 # Don't do incremental linking for large modules on 32-bit or when |
| 1840 # component=static_library as the toolchain fails due to the size of | 1848 # component=static_library as the toolchain fails due to the size of |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2605 # This define is required to pull in the new Win8 interfaces from | 2613 # This define is required to pull in the new Win8 interfaces from |
| 2606 # system headers like ShObjIdl.h. | 2614 # system headers like ShObjIdl.h. |
| 2607 'NTDDI_VERSION=0x06020000', | 2615 'NTDDI_VERSION=0x06020000', |
| 2608 # This is required for ATL to use XP-safe versions of its functions. | 2616 # This is required for ATL to use XP-safe versions of its functions. |
| 2609 '_USING_V110_SDK71_', | 2617 '_USING_V110_SDK71_', |
| 2610 ], | 2618 ], |
| 2611 'include_dirs': [ | 2619 'include_dirs': [ |
| 2612 '<(DEPTH)/third_party/wtl/include', | 2620 '<(DEPTH)/third_party/wtl/include', |
| 2613 ], | 2621 ], |
| 2614 'conditions': [ | 2622 'conditions': [ |
| 2623 ['win_force_console!=0', { | |
| 2624 'defines': [ | |
| 2625 "FORCE_CONSOLE_SUBSYSTEM", | |
| 2626 ], | |
| 2627 }], | |
| 2615 ['win_z7!=0', { | 2628 ['win_z7!=0', { |
| 2616 'msvs_settings': { | 2629 'msvs_settings': { |
| 2617 # Generates debug info when win_z7=1 | 2630 # Generates debug info when win_z7=1 |
| 2618 # even if fastbuild=1 (that makes GenerateDebugInformation false). | 2631 # even if fastbuild=1 (that makes GenerateDebugInformation false). |
| 2619 'VCLinkerTool': { | 2632 'VCLinkerTool': { |
| 2620 'GenerateDebugInformation': 'true', | 2633 'GenerateDebugInformation': 'true', |
| 2621 }, | 2634 }, |
| 2622 'VCCLCompilerTool': { | 2635 'VCCLCompilerTool': { |
| 2623 'DebugInformationFormat': '1', | 2636 'DebugInformationFormat': '1', |
| 2624 } | 2637 } |
| (...skipping 2804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5429 # settings in target dicts. SYMROOT is a special case, because many other | 5442 # settings in target dicts. SYMROOT is a special case, because many other |
| 5430 # Xcode variables depend on it, including variables such as | 5443 # Xcode variables depend on it, including variables such as |
| 5431 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5444 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5432 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5445 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5433 # files to appear (when present) in the UI as actual files and not red | 5446 # files to appear (when present) in the UI as actual files and not red |
| 5434 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5447 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5435 # and therefore SYMROOT, needs to be set at the project level. | 5448 # and therefore SYMROOT, needs to be set at the project level. |
| 5436 'SYMROOT': '<(DEPTH)/xcodebuild', | 5449 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5437 }, | 5450 }, |
| 5438 } | 5451 } |
| OLD | NEW |