| 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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 ['component=="shared_library"', { | 1074 ['component=="shared_library"', { |
| 1075 'win_use_allocator_shim%': 0, | 1075 'win_use_allocator_shim%': 0, |
| 1076 }], | 1076 }], |
| 1077 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { | 1077 ['component=="shared_library" and "<(GENERATOR)"=="ninja"', { |
| 1078 # Only enabled by default for ninja because it's buggy in VS. | 1078 # Only enabled by default for ninja because it's buggy in VS. |
| 1079 # Not enabled for component=static_library because some targets | 1079 # Not enabled for component=static_library because some targets |
| 1080 # are too large and the toolchain fails due to the size of the | 1080 # are too large and the toolchain fails due to the size of the |
| 1081 # .obj files. | 1081 # .obj files. |
| 1082 'incremental_chrome_dll%': 1, | 1082 'incremental_chrome_dll%': 1, |
| 1083 }], | 1083 }], |
| 1084 # Whether to use multiple cores to compile with visual studio. This is | |
| 1085 # optional because it sometimes causes corruption on VS 2005. | |
| 1086 # It is on by default on VS 2008 and off on VS 2005. | |
| 1087 ['MSVS_VERSION=="2005"', { | |
| 1088 'msvs_multi_core_compile%': 0, | |
| 1089 },{ | |
| 1090 'msvs_multi_core_compile%': 1, | |
| 1091 }], | |
| 1092 # Don't do incremental linking for large modules on 32-bit. | 1084 # Don't do incremental linking for large modules on 32-bit. |
| 1093 ['MSVS_OS_BITS==32', { | 1085 ['MSVS_OS_BITS==32', { |
| 1094 'msvs_large_module_debug_link_mode%': '1', # No | 1086 'msvs_large_module_debug_link_mode%': '1', # No |
| 1095 },{ | 1087 },{ |
| 1096 'msvs_large_module_debug_link_mode%': '2', # Yes | 1088 'msvs_large_module_debug_link_mode%': '2', # Yes |
| 1097 }], | 1089 }], |
| 1098 ['MSVS_VERSION=="2010e" or MSVS_VERSION=="2008e" or MSVS_VERSION=="200
5e"', { | 1090 ['MSVS_VERSION=="2010e" or MSVS_VERSION=="2008e" or MSVS_VERSION=="200
5e"', { |
| 1099 'msvs_express%': 1, | 1091 'msvs_express%': 1, |
| 1100 'secure_atl%': 0, | 1092 'secure_atl%': 0, |
| 1101 },{ | 1093 },{ |
| (...skipping 2090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3192 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], | 3184 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], |
| 3193 'msvs_disabled_warnings': [4351, 4396, 4503, 4819, | 3185 'msvs_disabled_warnings': [4351, 4396, 4503, 4819, |
| 3194 # TODO(maruel): These warnings are level 4. They will be slowly | 3186 # TODO(maruel): These warnings are level 4. They will be slowly |
| 3195 # removed as code is fixed. | 3187 # removed as code is fixed. |
| 3196 4100, 4121, 4125, 4127, 4130, 4131, 4189, 4201, 4238, 4244, 4245, | 3188 4100, 4121, 4125, 4127, 4130, 4131, 4189, 4201, 4238, 4244, 4245, |
| 3197 4310, 4355, 4428, 4481, 4505, 4510, 4512, 4530, 4610, 4611, 4701, | 3189 4310, 4355, 4428, 4481, 4505, 4510, 4512, 4530, 4610, 4611, 4701, |
| 3198 4702, 4706, | 3190 4702, 4706, |
| 3199 ], | 3191 ], |
| 3200 'msvs_settings': { | 3192 'msvs_settings': { |
| 3201 'VCCLCompilerTool': { | 3193 'VCCLCompilerTool': { |
| 3194 'AdditionalOptions': ['/MP'], |
| 3202 'MinimalRebuild': 'false', | 3195 'MinimalRebuild': 'false', |
| 3203 'BufferSecurityCheck': 'true', | 3196 'BufferSecurityCheck': 'true', |
| 3204 'EnableFunctionLevelLinking': 'true', | 3197 'EnableFunctionLevelLinking': 'true', |
| 3205 'RuntimeTypeInfo': 'false', | 3198 'RuntimeTypeInfo': 'false', |
| 3206 'WarningLevel': '4', | 3199 'WarningLevel': '4', |
| 3207 'WarnAsError': 'true', | 3200 'WarnAsError': 'true', |
| 3208 'DebugInformationFormat': '3', | 3201 'DebugInformationFormat': '3', |
| 3209 'conditions': [ | 3202 'conditions': [ |
| 3210 ['msvs_multi_core_compile', { | |
| 3211 'AdditionalOptions': ['/MP'], | |
| 3212 }], | |
| 3213 ['MSVS_VERSION=="2005e"', { | |
| 3214 'AdditionalOptions': ['/w44068'], # Unknown pragma to 4 (ATL) | |
| 3215 }], | |
| 3216 ['component=="shared_library"', { | 3203 ['component=="shared_library"', { |
| 3217 'ExceptionHandling': '1', # /EHsc | 3204 'ExceptionHandling': '1', # /EHsc |
| 3218 }, { | 3205 }, { |
| 3219 'ExceptionHandling': '0', | 3206 'ExceptionHandling': '0', |
| 3220 }], | 3207 }], |
| 3221 ], | 3208 ], |
| 3222 }, | 3209 }, |
| 3223 'VCLibrarianTool': { | 3210 'VCLibrarianTool': { |
| 3224 'AdditionalOptions': ['/ignore:4221'], | 3211 'AdditionalOptions': ['/ignore:4221'], |
| 3225 'AdditionalLibraryDirectories': [ | 3212 'AdditionalLibraryDirectories': [ |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3421 # settings in target dicts. SYMROOT is a special case, because many other | 3408 # settings in target dicts. SYMROOT is a special case, because many other |
| 3422 # Xcode variables depend on it, including variables such as | 3409 # Xcode variables depend on it, including variables such as |
| 3423 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3410 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3424 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3411 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3425 # files to appear (when present) in the UI as actual files and not red | 3412 # files to appear (when present) in the UI as actual files and not red |
| 3426 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3413 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3427 # and therefore SYMROOT, needs to be set at the project level. | 3414 # and therefore SYMROOT, needs to be set at the project level. |
| 3428 'SYMROOT': '<(DEPTH)/xcodebuild', | 3415 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3429 }, | 3416 }, |
| 3430 } | 3417 } |
| OLD | NEW |