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 5259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5270 }], | 5270 }], |
5271 ], | 5271 ], |
5272 'msvs_system_include_dirs': [ | 5272 'msvs_system_include_dirs': [ |
5273 '<(windows_sdk_path)/Include/shared', | 5273 '<(windows_sdk_path)/Include/shared', |
5274 '<(windows_sdk_path)/Include/um', | 5274 '<(windows_sdk_path)/Include/um', |
5275 '<(windows_sdk_path)/Include/winrt', | 5275 '<(windows_sdk_path)/Include/winrt', |
5276 '$(VSInstallDir)/VC/atlmfc/include', | 5276 '$(VSInstallDir)/VC/atlmfc/include', |
5277 ], | 5277 ], |
5278 'msvs_cygwin_shell': 0, | 5278 'msvs_cygwin_shell': 0, |
5279 'msvs_disabled_warnings': [ | 5279 'msvs_disabled_warnings': [ |
5280 4351, 4355, 4396, 4503, 4819, | 5280 # C4127: conditional expression is constant |
| 5281 # This warning can in theory catch dead code and other problems, but |
| 5282 # triggers in far too many desirable cases where the conditional |
| 5283 # expression is either set by macros or corresponds some legitimate |
| 5284 # compile-time constant expression (due to constant template args, |
| 5285 # conditionals comparing the sizes of different types, etc.). Some of |
| 5286 # these can be worked around, but it's not worth it. |
| 5287 4127, |
| 5288 |
| 5289 # C4351: new behavior: elements of array 'array' will be default |
| 5290 # initialized |
| 5291 # This is a silly "warning" that basically just alerts you that the |
| 5292 # compiler is going to actually follow the language spec like it's |
| 5293 # supposed to, instead of not following it like old buggy versions |
| 5294 # did. There's absolutely no reason to turn this on. |
| 5295 4351, |
| 5296 |
| 5297 # C4355: 'this': used in base member initializer list |
| 5298 # It's commonly useful to pass |this| to objects in a class' |
| 5299 # initializer list. While this warning can catch real bugs, most of |
| 5300 # the time the constructors in question don't attempt to call methods |
| 5301 # on the passed-in pointer (until later), and annotating every legit |
| 5302 # usage of this is simply more hassle than the warning is worth. |
| 5303 4355, |
| 5304 |
| 5305 # C4503: 'identifier': decorated name length exceeded, name was |
| 5306 # truncated |
| 5307 # This only means that some long error messages might have truncated |
| 5308 # identifiers in the presence of lots of templates. It has no effect |
| 5309 # on program correctness and there's no real reason to waste time |
| 5310 # trying to prevent it. |
| 5311 4503, |
| 5312 |
| 5313 # C4611: interaction between 'function' and C++ object destruction is |
| 5314 # non-portable |
| 5315 # This warning is unavoidable when using e.g. setjmp/longjmp. MSDN |
| 5316 # suggests using exceptions instead of setjmp/longjmp for C++, but |
| 5317 # Chromium code compiles without exception support. We therefore have |
| 5318 # to use setjmp/longjmp for e.g. JPEG decode error handling, which |
| 5319 # means we have to turn off this warning (and be careful about how |
| 5320 # object destruction happens in such cases). |
| 5321 4611, |
| 5322 |
5281 # TODO(maruel): These warnings are level 4. They will be slowly | 5323 # TODO(maruel): These warnings are level 4. They will be slowly |
5282 # removed as code is fixed. | 5324 # removed as code is fixed. |
5283 4100, 4121, 4125, 4127, 4130, 4131, 4189, 4201, 4238, 4244, 4245, | 5325 4100, # Unreferenced formal parameter |
5284 4310, 4428, 4481, 4505, 4510, 4512, 4530, 4610, 4611, 4701, 4706, | 5326 4121, # Alignment of a member was sensitive to packing |
| 5327 4189, # Local variable is initialized but not referenced |
| 5328 4244, # Conversion from 'type1' to 'type2', possible loss of data |
| 5329 4481, # Nonstandard extension used: override specifier 'keyword' |
| 5330 4505, # Unreferenced local function has been removed |
| 5331 4510, # Default constructor could not be generated |
| 5332 4512, # Assignment operator could not be generated |
| 5333 4610, # Object can never be instantiated |
5285 ], | 5334 ], |
5286 'msvs_settings': { | 5335 'msvs_settings': { |
5287 'VCCLCompilerTool': { | 5336 'VCCLCompilerTool': { |
5288 'AdditionalOptions': ['/MP'], | 5337 'AdditionalOptions': ['/MP'], |
5289 'MinimalRebuild': 'false', | 5338 'MinimalRebuild': 'false', |
5290 'BufferSecurityCheck': 'true', | 5339 'BufferSecurityCheck': 'true', |
5291 'EnableFunctionLevelLinking': 'true', | 5340 'EnableFunctionLevelLinking': 'true', |
5292 'RuntimeTypeInfo': 'false', | 5341 'RuntimeTypeInfo': 'false', |
5293 'WarningLevel': '4', | 5342 'WarningLevel': '4', |
5294 'WarnAsError': 'true', | 5343 'WarnAsError': 'true', |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5653 # settings in target dicts. SYMROOT is a special case, because many other | 5702 # settings in target dicts. SYMROOT is a special case, because many other |
5654 # Xcode variables depend on it, including variables such as | 5703 # Xcode variables depend on it, including variables such as |
5655 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5704 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5656 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5705 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5657 # files to appear (when present) in the UI as actual files and not red | 5706 # files to appear (when present) in the UI as actual files and not red |
5658 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5707 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5659 # and therefore SYMROOT, needs to be set at the project level. | 5708 # and therefore SYMROOT, needs to be set at the project level. |
5660 'SYMROOT': '<(DEPTH)/xcodebuild', | 5709 'SYMROOT': '<(DEPTH)/xcodebuild', |
5661 }, | 5710 }, |
5662 } | 5711 } |
OLD | NEW |