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 5126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5137 '_WIN32_WINNT=0x0602', | 5137 '_WIN32_WINNT=0x0602', |
5138 'WINVER=0x0602', | 5138 'WINVER=0x0602', |
5139 'WIN32', | 5139 'WIN32', |
5140 '_WINDOWS', | 5140 '_WINDOWS', |
5141 'NOMINMAX', | 5141 'NOMINMAX', |
5142 'PSAPI_VERSION=1', | 5142 'PSAPI_VERSION=1', |
5143 '_CRT_RAND_S', | 5143 '_CRT_RAND_S', |
5144 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', | 5144 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', |
5145 'WIN32_LEAN_AND_MEAN', | 5145 'WIN32_LEAN_AND_MEAN', |
5146 '_ATL_NO_OPENGL', | 5146 '_ATL_NO_OPENGL', |
| 5147 # _HAS_EXCEPTIONS must match ExceptionHandling in msvs_settings. |
| 5148 '_HAS_EXCEPTIONS=0', |
5147 ], | 5149 ], |
5148 'conditions': [ | 5150 'conditions': [ |
5149 ['buildtype=="Official"', { | 5151 ['buildtype=="Official"', { |
5150 # In official builds, targets can self-select an optimization | 5152 # In official builds, targets can self-select an optimization |
5151 # level by defining a variable named 'optimize', and setting it | 5153 # level by defining a variable named 'optimize', and setting it |
5152 # to one of | 5154 # to one of |
5153 # - "size", optimizes for minimal code size - the default. | 5155 # - "size", optimizes for minimal code size - the default. |
5154 # - "speed", optimizes for speed over code size. | 5156 # - "speed", optimizes for speed over code size. |
5155 # - "max", whole program optimization and link-time code | 5157 # - "max", whole program optimization and link-time code |
5156 # generation. This is very expensive and should be used | 5158 # generation. This is very expensive and should be used |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5204 'FavorSizeOrSpeed': '1', | 5206 'FavorSizeOrSpeed': '1', |
5205 # This implies link time code generation. | 5207 # This implies link time code generation. |
5206 'WholeProgramOptimization': 'true', | 5208 'WholeProgramOptimization': 'true', |
5207 }, | 5209 }, |
5208 }, | 5210 }, |
5209 }, | 5211 }, |
5210 ], | 5212 ], |
5211 ], | 5213 ], |
5212 }, | 5214 }, |
5213 ], | 5215 ], |
5214 ['component=="static_library"', { | |
5215 'defines': [ | |
5216 '_HAS_EXCEPTIONS=0', | |
5217 ], | |
5218 }], | |
5219 ['secure_atl', { | 5216 ['secure_atl', { |
5220 'defines': [ | 5217 'defines': [ |
5221 '_SECURE_ATL', | 5218 '_SECURE_ATL', |
5222 ], | 5219 ], |
5223 }], | 5220 }], |
5224 ['msvs_express', { | 5221 ['msvs_express', { |
5225 'configurations': { | 5222 'configurations': { |
5226 'x86_Base': { | 5223 'x86_Base': { |
5227 'msvs_settings': { | 5224 'msvs_settings': { |
5228 'VCLinkerTool': { | 5225 'VCLinkerTool': { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5291 'msvs_settings': { | 5288 'msvs_settings': { |
5292 'VCCLCompilerTool': { | 5289 'VCCLCompilerTool': { |
5293 'AdditionalOptions': ['/MP'], | 5290 'AdditionalOptions': ['/MP'], |
5294 'MinimalRebuild': 'false', | 5291 'MinimalRebuild': 'false', |
5295 'BufferSecurityCheck': 'true', | 5292 'BufferSecurityCheck': 'true', |
5296 'EnableFunctionLevelLinking': 'true', | 5293 'EnableFunctionLevelLinking': 'true', |
5297 'RuntimeTypeInfo': 'false', | 5294 'RuntimeTypeInfo': 'false', |
5298 'WarningLevel': '4', | 5295 'WarningLevel': '4', |
5299 'WarnAsError': 'true', | 5296 'WarnAsError': 'true', |
5300 'DebugInformationFormat': '3', | 5297 'DebugInformationFormat': '3', |
5301 'conditions': [ | 5298 # ExceptionHandling must match _HAS_EXCEPTIONS above. |
5302 ['component=="shared_library"', { | 5299 'ExceptionHandling': '0', |
5303 'ExceptionHandling': '1', # /EHsc | |
5304 }, { | |
5305 'ExceptionHandling': '0', | |
5306 }], | |
5307 ], | |
5308 }, | 5300 }, |
5309 'VCLibrarianTool': { | 5301 'VCLibrarianTool': { |
5310 'AdditionalOptions': ['/ignore:4221'], | 5302 'AdditionalOptions': ['/ignore:4221'], |
5311 'AdditionalLibraryDirectories': [ | 5303 'AdditionalLibraryDirectories': [ |
5312 '<(windows_sdk_path)/Lib/win8/um/x86', | 5304 '<(windows_sdk_path)/Lib/win8/um/x86', |
5313 ], | 5305 ], |
5314 }, | 5306 }, |
5315 'VCLinkerTool': { | 5307 'VCLinkerTool': { |
5316 'AdditionalDependencies': [ | 5308 'AdditionalDependencies': [ |
5317 'wininet.lib', | 5309 'wininet.lib', |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5658 # settings in target dicts. SYMROOT is a special case, because many other | 5650 # settings in target dicts. SYMROOT is a special case, because many other |
5659 # Xcode variables depend on it, including variables such as | 5651 # Xcode variables depend on it, including variables such as |
5660 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5652 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5661 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5653 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5662 # files to appear (when present) in the UI as actual files and not red | 5654 # files to appear (when present) in the UI as actual files and not red |
5663 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5655 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5664 # and therefore SYMROOT, needs to be set at the project level. | 5656 # and therefore SYMROOT, needs to be set at the project level. |
5665 'SYMROOT': '<(DEPTH)/xcodebuild', | 5657 'SYMROOT': '<(DEPTH)/xcodebuild', |
5666 }, | 5658 }, |
5667 } | 5659 } |
OLD | NEW |