Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

Side by Side Diff: build/common.gypi

Issue 720033003: Update to VS2013 Update 4, and Windows SDK 8.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ntddi Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « DEPS ('k') | build/config/win/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 # to get incremental linking to be faster in debug builds. 1285 # to get incremental linking to be faster in debug builds.
1286 'incremental_chrome_dll%': '0', 1286 'incremental_chrome_dll%': '0',
1287 1287
1288 # Experimental setting to break chrome.dll into multiple pieces based on 1288 # Experimental setting to break chrome.dll into multiple pieces based on
1289 # process type. 1289 # process type.
1290 'chrome_multiple_dll%': '0', 1290 'chrome_multiple_dll%': '0',
1291 1291
1292 # Experimental setting to optimize Chrome's DLLs with PGO. 1292 # Experimental setting to optimize Chrome's DLLs with PGO.
1293 'chrome_pgo_phase%': '0', 1293 'chrome_pgo_phase%': '0',
1294 1294
1295 # Whether the VS xtree header has been patched to disable warning 4702. If
1296 # it has, then we don't need to disable 4702 (unreachable code warning).
1297 # The patch is preapplied to the internal toolchain and hence all bots.
1298 'msvs_xtree_patched%': '<!pymod_do_main(win_is_xtree_patched)',
1299
1295 # Clang stuff. 1300 # Clang stuff.
1296 'clang%': '<(clang)', 1301 'clang%': '<(clang)',
1297 'host_clang%': '<(host_clang)', 1302 'host_clang%': '<(host_clang)',
1298 'make_clang_dir%': '<(make_clang_dir)', 1303 'make_clang_dir%': '<(make_clang_dir)',
1299 1304
1300 # Control which version of clang to use when building for iOS. If set to 1305 # Control which version of clang to use when building for iOS. If set to
1301 # '1', uses the version of clang that ships with Xcode. If set to '0', uses 1306 # '1', uses the version of clang that ships with Xcode. If set to '0', uses
1302 # the version of clang that ships with the Chromium source. This variable 1307 # the version of clang that ships with the Chromium source. This variable
1303 # is automatically set to '1' when using the Xcode generator. 1308 # is automatically set to '1' when using the Xcode generator.
1304 'clang_xcode%': 0, 1309 'clang_xcode%': 0,
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 'gcc_version%': '<!pymod_do_main(compiler_version target compiler)', 1563 'gcc_version%': '<!pymod_do_main(compiler_version target compiler)',
1559 }], 1564 }],
1560 ], 1565 ],
1561 }, { 1566 }, {
1562 'host_gcc_version%': 0, 1567 'host_gcc_version%': 0,
1563 'gcc_version%': 0, 1568 'gcc_version%': 0,
1564 }], 1569 }],
1565 ['OS=="win" and "<!pymod_do_main(dir_exists <(windows_sdk_default_path))"= ="True"', { 1570 ['OS=="win" and "<!pymod_do_main(dir_exists <(windows_sdk_default_path))"= ="True"', {
1566 'windows_sdk_path%': '<(windows_sdk_default_path)', 1571 'windows_sdk_path%': '<(windows_sdk_default_path)',
1567 }, { 1572 }, {
1568 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', 1573 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.1',
1569 }], 1574 }],
1570 ['OS=="win" and "<!pymod_do_main(dir_exists <(directx_sdk_default_path))"= ="True"', { 1575 ['OS=="win" and "<!pymod_do_main(dir_exists <(directx_sdk_default_path))"= ="True"', {
1571 'directx_sdk_path%': '<(directx_sdk_default_path)', 1576 'directx_sdk_path%': '<(directx_sdk_default_path)',
1572 }, { 1577 }, {
1573 'directx_sdk_path%': '$(DXSDK_DIR)', 1578 'directx_sdk_path%': '$(DXSDK_DIR)',
1574 }], 1579 }],
1575 ['OS=="win"', { 1580 ['OS=="win"', {
1576 'windows_driver_kit_path%': '$(WDK_DIR)', 1581 'windows_driver_kit_path%': '$(WDK_DIR)',
1577 }], 1582 }],
1578 ['os_posix==1 and OS!="mac" and OS!="ios"', { 1583 ['os_posix==1 and OS!="mac" and OS!="ios"', {
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2778 'MEMORY_SANITIZER_INITIAL_SIZE', 2783 'MEMORY_SANITIZER_INITIAL_SIZE',
2779 ], 2784 ],
2780 }], 2785 }],
2781 ['OS=="win"', { 2786 ['OS=="win"', {
2782 'defines': [ 2787 'defines': [
2783 '__STD_C', 2788 '__STD_C',
2784 '_CRT_SECURE_NO_DEPRECATE', 2789 '_CRT_SECURE_NO_DEPRECATE',
2785 '_SCL_SECURE_NO_DEPRECATE', 2790 '_SCL_SECURE_NO_DEPRECATE',
2786 # This define is required to pull in the new Win8 interfaces from 2791 # This define is required to pull in the new Win8 interfaces from
2787 # system headers like ShObjIdl.h. 2792 # system headers like ShObjIdl.h.
2788 'NTDDI_VERSION=0x06020000', 2793 'NTDDI_VERSION=0x06030000',
2789 # This is required for ATL to use XP-safe versions of its functions. 2794 # This is required for ATL to use XP-safe versions of its functions.
2790 '_USING_V110_SDK71_', 2795 '_USING_V110_SDK71_',
2791 ], 2796 ],
2792 'include_dirs': [ 2797 'include_dirs': [
2793 '<(DEPTH)/third_party/wtl/include', 2798 '<(DEPTH)/third_party/wtl/include',
2794 ], 2799 ],
2795 'conditions': [ 2800 'conditions': [
2796 ['win_z7!=0', { 2801 ['win_z7!=0', {
2797 'msvs_settings': { 2802 'msvs_settings': {
2798 # Generates debug info when win_z7=1 2803 # Generates debug info when win_z7=1
(...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after
5252 }], 5257 }],
5253 ], 5258 ],
5254 }, 5259 },
5255 }], 5260 }],
5256 ], # target_conditions 5261 ], # target_conditions
5257 }, # target_defaults 5262 }, # target_defaults
5258 }], # OS=="ios" 5263 }], # OS=="ios"
5259 ['OS=="win"', { 5264 ['OS=="win"', {
5260 'target_defaults': { 5265 'target_defaults': {
5261 'defines': [ 5266 'defines': [
5262 '_WIN32_WINNT=0x0602', 5267 '_WIN32_WINNT=0x0603',
5263 'WINVER=0x0602', 5268 'WINVER=0x0603',
5264 'WIN32', 5269 'WIN32',
5265 '_WINDOWS', 5270 '_WINDOWS',
5266 'NOMINMAX', 5271 'NOMINMAX',
5267 'PSAPI_VERSION=1', 5272 'PSAPI_VERSION=1',
5268 '_CRT_RAND_S', 5273 '_CRT_RAND_S',
5269 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', 5274 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS',
5270 'WIN32_LEAN_AND_MEAN', 5275 'WIN32_LEAN_AND_MEAN',
5271 '_ATL_NO_OPENGL', 5276 '_ATL_NO_OPENGL',
5272 # _HAS_EXCEPTIONS must match ExceptionHandling in msvs_settings. 5277 # _HAS_EXCEPTIONS must match ExceptionHandling in msvs_settings.
5273 '_HAS_EXCEPTIONS=0', 5278 '_HAS_EXCEPTIONS=0',
5279 # Silence some warnings; we can't switch the the 'recommended'
5280 # versions as they're not available on old OSs.
5281 '_WINSOCK_DEPRECATED_NO_WARNINGS',
5274 ], 5282 ],
5275 'conditions': [ 5283 'conditions': [
5276 ['buildtype=="Official"', { 5284 ['buildtype=="Official"', {
5277 # In official builds, targets can self-select an optimization 5285 # In official builds, targets can self-select an optimization
5278 # level by defining a variable named 'optimize', and setting it 5286 # level by defining a variable named 'optimize', and setting it
5279 # to one of 5287 # to one of
5280 # - "size", optimizes for minimal code size - the default. 5288 # - "size", optimizes for minimal code size - the default.
5281 # - "speed", optimizes for speed over code size. 5289 # - "speed", optimizes for speed over code size.
5282 # - "max", whole program optimization and link-time code 5290 # - "max", whole program optimization and link-time code
5283 # generation. This is very expensive and should be used 5291 # generation. This is very expensive and should be used
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
5331 'FavorSizeOrSpeed': '1', 5339 'FavorSizeOrSpeed': '1',
5332 # This implies link time code generation. 5340 # This implies link time code generation.
5333 'WholeProgramOptimization': 'true', 5341 'WholeProgramOptimization': 'true',
5334 }, 5342 },
5335 }, 5343 },
5336 }, 5344 },
5337 ], 5345 ],
5338 ], 5346 ],
5339 }, 5347 },
5340 ], 5348 ],
5349 ['msvs_xtree_patched!=1', {
5350 # If xtree hasn't been patched, then we disable C4702. Otherwise,
5351 # it's enabled. This will generally only be true for system-level
5352 # installed Express users.
5353 'msvs_disabled_warnings': [
5354 4702,
5355 ],
5356 }],
5341 ['secure_atl', { 5357 ['secure_atl', {
5342 'defines': [ 5358 'defines': [
5343 '_SECURE_ATL', 5359 '_SECURE_ATL',
5344 ], 5360 ],
5345 }], 5361 }],
5346 ['msvs_express', { 5362 ['msvs_express', {
5347 'configurations': { 5363 'configurations': {
5348 'x86_Base': { 5364 'x86_Base': {
5349 'msvs_settings': { 5365 'msvs_settings': {
5350 'VCLinkerTool': { 5366 'VCLinkerTool': {
(...skipping 12 matching lines...) Expand all
5363 'AdditionalLibraryDirectories': 5379 'AdditionalLibraryDirectories':
5364 ['<(windows_driver_kit_path)/lib/ATL/amd64'], 5380 ['<(windows_driver_kit_path)/lib/ATL/amd64'],
5365 }, 5381 },
5366 'VCLinkerTool': { 5382 'VCLinkerTool': {
5367 'AdditionalLibraryDirectories': 5383 'AdditionalLibraryDirectories':
5368 ['<(windows_driver_kit_path)/lib/ATL/amd64'], 5384 ['<(windows_driver_kit_path)/lib/ATL/amd64'],
5369 }, 5385 },
5370 }, 5386 },
5371 }, 5387 },
5372 }, 5388 },
5373 # https://code.google.com/p/chromium/issues/detail?id=372451#c20
5374 # Warning 4702 ("Unreachable code") should be re-enabled once
5375 # Express users are updated to VS2013 Update 2.
5376 'msvs_disabled_warnings': [
5377 4702
5378 ],
5379 'msvs_settings': { 5389 'msvs_settings': {
5380 'VCCLCompilerTool': { 5390 'VCCLCompilerTool': {
5381 'AdditionalOptions!': [ 5391 'AdditionalOptions!': [
5382 '/Zc:inline', # Not supported on non-updated Express. 5392 '/Zc:inline', # Not supported on non-updated Express.
5383 ], 5393 ],
5384 }, 5394 },
5385 'VCLinkerTool': { 5395 'VCLinkerTool': {
5386 # Explicitly required when using the ATL with express 5396 # Explicitly required when using the ATL with express
5387 'AdditionalDependencies': ['atlthunk.lib'], 5397 'AdditionalDependencies': ['atlthunk.lib'],
5388 5398
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
5456 # removed as code is fixed. 5466 # removed as code is fixed.
5457 4100, # Unreferenced formal parameter 5467 4100, # Unreferenced formal parameter
5458 4121, # Alignment of a member was sensitive to packing 5468 4121, # Alignment of a member was sensitive to packing
5459 4189, # Local variable is initialized but not referenced 5469 4189, # Local variable is initialized but not referenced
5460 4244, # Conversion from 'type1' to 'type2', possible loss of data 5470 4244, # Conversion from 'type1' to 'type2', possible loss of data
5461 4481, # Nonstandard extension used: override specifier 'keyword' 5471 4481, # Nonstandard extension used: override specifier 'keyword'
5462 4505, # Unreferenced local function has been removed 5472 4505, # Unreferenced local function has been removed
5463 4510, # Default constructor could not be generated 5473 4510, # Default constructor could not be generated
5464 4512, # Assignment operator could not be generated 5474 4512, # Assignment operator could not be generated
5465 4610, # Object can never be instantiated 5475 4610, # Object can never be instantiated
5476 4996, # 'X': was declared deprecated (for GetVersionEx).
5466 ], 5477 ],
5467 'msvs_settings': { 5478 'msvs_settings': {
5468 'VCCLCompilerTool': { 5479 'VCCLCompilerTool': {
5469 'AdditionalOptions': ['/MP'], 5480 'AdditionalOptions': ['/MP'],
5470 'MinimalRebuild': 'false', 5481 'MinimalRebuild': 'false',
5471 'BufferSecurityCheck': 'true', 5482 'BufferSecurityCheck': 'true',
5472 'EnableFunctionLevelLinking': 'true', 5483 'EnableFunctionLevelLinking': 'true',
5473 'RuntimeTypeInfo': 'false', 5484 'RuntimeTypeInfo': 'false',
5474 'WarningLevel': '4', 5485 'WarningLevel': '4',
5475 'WarnAsError': 'true', 5486 'WarnAsError': 'true',
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
5901 # settings in target dicts. SYMROOT is a special case, because many other 5912 # settings in target dicts. SYMROOT is a special case, because many other
5902 # Xcode variables depend on it, including variables such as 5913 # Xcode variables depend on it, including variables such as
5903 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5914 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5904 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5915 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5905 # files to appear (when present) in the UI as actual files and not red 5916 # files to appear (when present) in the UI as actual files and not red
5906 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5917 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5907 # and therefore SYMROOT, needs to be set at the project level. 5918 # and therefore SYMROOT, needs to be set at the project level.
5908 'SYMROOT': '<(DEPTH)/xcodebuild', 5919 'SYMROOT': '<(DEPTH)/xcodebuild',
5909 }, 5920 },
5910 } 5921 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/config/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698