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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1937 'incremental_chrome_dll%': 1, | 1942 'incremental_chrome_dll%': 1, |
1938 }], | 1943 }], |
1939 # Don't do incremental linking for large modules on 32-bit or when | 1944 # Don't do incremental linking for large modules on 32-bit or when |
1940 # component=static_library as the toolchain fails due to the size of | 1945 # component=static_library as the toolchain fails due to the size of |
1941 # the .ilk files. | 1946 # the .ilk files. |
1942 ['MSVS_OS_BITS==32 or component=="static_library"', { | 1947 ['MSVS_OS_BITS==32 or component=="static_library"', { |
1943 'msvs_large_module_debug_link_mode%': '1', # No | 1948 'msvs_large_module_debug_link_mode%': '1', # No |
1944 },{ | 1949 },{ |
1945 'msvs_large_module_debug_link_mode%': '2', # Yes | 1950 'msvs_large_module_debug_link_mode%': '2', # Yes |
1946 }], | 1951 }], |
1947 ['MSVS_VERSION=="2013e"', { | |
1948 'msvs_express%': 1, | |
1949 'secure_atl%': 0, | |
1950 },{ | |
1951 'msvs_express%': 0, | |
1952 'secure_atl%': 1, | |
1953 }], | |
1954 ], | 1952 ], |
1955 'nacl_win64_defines': [ | 1953 'nacl_win64_defines': [ |
1956 # This flag is used to minimize dependencies when building | 1954 # This flag is used to minimize dependencies when building |
1957 # Native Client loader for 64-bit Windows. | 1955 # Native Client loader for 64-bit Windows. |
1958 'NACL_WIN64', | 1956 'NACL_WIN64', |
1959 ], | 1957 ], |
1960 }], | 1958 }], |
1961 | 1959 |
1962 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded
==0', { | 1960 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios" and embedded
==0', { |
1963 'use_cups%': 1, | 1961 'use_cups%': 1, |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2778 'MEMORY_SANITIZER_INITIAL_SIZE', | 2776 'MEMORY_SANITIZER_INITIAL_SIZE', |
2779 ], | 2777 ], |
2780 }], | 2778 }], |
2781 ['OS=="win"', { | 2779 ['OS=="win"', { |
2782 'defines': [ | 2780 'defines': [ |
2783 '__STD_C', | 2781 '__STD_C', |
2784 '_CRT_SECURE_NO_DEPRECATE', | 2782 '_CRT_SECURE_NO_DEPRECATE', |
2785 '_SCL_SECURE_NO_DEPRECATE', | 2783 '_SCL_SECURE_NO_DEPRECATE', |
2786 # This define is required to pull in the new Win8 interfaces from | 2784 # This define is required to pull in the new Win8 interfaces from |
2787 # system headers like ShObjIdl.h. | 2785 # system headers like ShObjIdl.h. |
2788 'NTDDI_VERSION=0x06020000', | 2786 'NTDDI_VERSION=0x06030000', |
2789 # This is required for ATL to use XP-safe versions of its functions. | 2787 # This is required for ATL to use XP-safe versions of its functions. |
2790 '_USING_V110_SDK71_', | 2788 '_USING_V110_SDK71_', |
2791 ], | 2789 ], |
2792 'include_dirs': [ | 2790 'include_dirs': [ |
2793 '<(DEPTH)/third_party/wtl/include', | 2791 '<(DEPTH)/third_party/wtl/include', |
2794 ], | 2792 ], |
2795 'conditions': [ | 2793 'conditions': [ |
2796 ['win_z7!=0', { | 2794 ['win_z7!=0', { |
2797 'msvs_settings': { | 2795 'msvs_settings': { |
2798 # Generates debug info when win_z7=1 | 2796 # Generates debug info when win_z7=1 |
(...skipping 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5252 }], | 5250 }], |
5253 ], | 5251 ], |
5254 }, | 5252 }, |
5255 }], | 5253 }], |
5256 ], # target_conditions | 5254 ], # target_conditions |
5257 }, # target_defaults | 5255 }, # target_defaults |
5258 }], # OS=="ios" | 5256 }], # OS=="ios" |
5259 ['OS=="win"', { | 5257 ['OS=="win"', { |
5260 'target_defaults': { | 5258 'target_defaults': { |
5261 'defines': [ | 5259 'defines': [ |
5262 '_WIN32_WINNT=0x0602', | 5260 '_WIN32_WINNT=0x0603', |
5263 'WINVER=0x0602', | 5261 'WINVER=0x0603', |
5264 'WIN32', | 5262 'WIN32', |
5265 '_WINDOWS', | 5263 '_WINDOWS', |
5266 'NOMINMAX', | 5264 'NOMINMAX', |
5267 'PSAPI_VERSION=1', | 5265 'PSAPI_VERSION=1', |
5268 '_CRT_RAND_S', | 5266 '_CRT_RAND_S', |
5269 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', | 5267 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', |
5270 'WIN32_LEAN_AND_MEAN', | 5268 'WIN32_LEAN_AND_MEAN', |
5271 '_ATL_NO_OPENGL', | 5269 '_ATL_NO_OPENGL', |
| 5270 '_SECURE_ATL', |
5272 # _HAS_EXCEPTIONS must match ExceptionHandling in msvs_settings. | 5271 # _HAS_EXCEPTIONS must match ExceptionHandling in msvs_settings. |
5273 '_HAS_EXCEPTIONS=0', | 5272 '_HAS_EXCEPTIONS=0', |
| 5273 # Silence some warnings; we can't switch the the 'recommended' |
| 5274 # versions as they're not available on old OSs. |
| 5275 '_WINSOCK_DEPRECATED_NO_WARNINGS', |
5274 ], | 5276 ], |
5275 'conditions': [ | 5277 'conditions': [ |
5276 ['buildtype=="Official"', { | 5278 ['buildtype=="Official"', { |
5277 # In official builds, targets can self-select an optimization | 5279 # In official builds, targets can self-select an optimization |
5278 # level by defining a variable named 'optimize', and setting it | 5280 # level by defining a variable named 'optimize', and setting it |
5279 # to one of | 5281 # to one of |
5280 # - "size", optimizes for minimal code size - the default. | 5282 # - "size", optimizes for minimal code size - the default. |
5281 # - "speed", optimizes for speed over code size. | 5283 # - "speed", optimizes for speed over code size. |
5282 # - "max", whole program optimization and link-time code | 5284 # - "max", whole program optimization and link-time code |
5283 # generation. This is very expensive and should be used | 5285 # generation. This is very expensive and should be used |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5331 'FavorSizeOrSpeed': '1', | 5333 'FavorSizeOrSpeed': '1', |
5332 # This implies link time code generation. | 5334 # This implies link time code generation. |
5333 'WholeProgramOptimization': 'true', | 5335 'WholeProgramOptimization': 'true', |
5334 }, | 5336 }, |
5335 }, | 5337 }, |
5336 }, | 5338 }, |
5337 ], | 5339 ], |
5338 ], | 5340 ], |
5339 }, | 5341 }, |
5340 ], | 5342 ], |
5341 ['secure_atl', { | 5343 ['msvs_xtree_patched!=1', { |
5342 'defines': [ | 5344 # If xtree hasn't been patched, then we disable C4702. Otherwise, |
5343 '_SECURE_ATL', | 5345 # it's enabled. This will generally only be true for system-level |
5344 ], | 5346 # installed Express users. |
5345 }], | |
5346 ['msvs_express', { | |
5347 'configurations': { | |
5348 'x86_Base': { | |
5349 'msvs_settings': { | |
5350 'VCLinkerTool': { | |
5351 'AdditionalLibraryDirectories': | |
5352 ['<(windows_driver_kit_path)/lib/ATL/i386'], | |
5353 }, | |
5354 'VCLibrarianTool': { | |
5355 'AdditionalLibraryDirectories': | |
5356 ['<(windows_driver_kit_path)/lib/ATL/i386'], | |
5357 }, | |
5358 }, | |
5359 }, | |
5360 'x64_Base': { | |
5361 'msvs_settings': { | |
5362 'VCLibrarianTool': { | |
5363 'AdditionalLibraryDirectories': | |
5364 ['<(windows_driver_kit_path)/lib/ATL/amd64'], | |
5365 }, | |
5366 'VCLinkerTool': { | |
5367 'AdditionalLibraryDirectories': | |
5368 ['<(windows_driver_kit_path)/lib/ATL/amd64'], | |
5369 }, | |
5370 }, | |
5371 }, | |
5372 }, | |
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': [ | 5347 'msvs_disabled_warnings': [ |
5377 4702 | 5348 4702, |
5378 ], | |
5379 'msvs_settings': { | |
5380 'VCCLCompilerTool': { | |
5381 'AdditionalOptions!': [ | |
5382 '/Zc:inline', # Not supported on non-updated Express. | |
5383 ], | |
5384 }, | |
5385 'VCLinkerTool': { | |
5386 # Explicitly required when using the ATL with express | |
5387 'AdditionalDependencies': ['atlthunk.lib'], | |
5388 | |
5389 # ATL 8.0 included in WDK 7.1 makes the linker to generate | |
5390 # almost eight hundred LNK4254 and LNK4078 warnings: | |
5391 # - warning LNK4254: section 'ATL' (50000040) merged into | |
5392 # '.rdata' (40000040) with different attributes | |
5393 # - warning LNK4078: multiple 'ATL' sections found with | |
5394 # different attributes | |
5395 'AdditionalOptions': ['/ignore:4254', '/ignore:4078'], | |
5396 }, | |
5397 }, | |
5398 'msvs_system_include_dirs': [ | |
5399 '<(windows_driver_kit_path)/inc/atl71', | |
5400 '<(windows_driver_kit_path)/inc/mfc42', | |
5401 ], | 5349 ], |
5402 }], | 5350 }], |
5403 ], | 5351 ], |
5404 'msvs_system_include_dirs': [ | 5352 'msvs_system_include_dirs': [ |
5405 '<(windows_sdk_path)/Include/shared', | 5353 '<(windows_sdk_path)/Include/shared', |
5406 '<(windows_sdk_path)/Include/um', | 5354 '<(windows_sdk_path)/Include/um', |
5407 '<(windows_sdk_path)/Include/winrt', | 5355 '<(windows_sdk_path)/Include/winrt', |
5408 '$(VSInstallDir)/VC/atlmfc/include', | 5356 '$(VSInstallDir)/VC/atlmfc/include', |
5409 ], | 5357 ], |
5410 'msvs_cygwin_shell': 0, | 5358 'msvs_cygwin_shell': 0, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5456 # removed as code is fixed. | 5404 # removed as code is fixed. |
5457 4100, # Unreferenced formal parameter | 5405 4100, # Unreferenced formal parameter |
5458 4121, # Alignment of a member was sensitive to packing | 5406 4121, # Alignment of a member was sensitive to packing |
5459 4189, # Local variable is initialized but not referenced | 5407 4189, # Local variable is initialized but not referenced |
5460 4244, # Conversion from 'type1' to 'type2', possible loss of data | 5408 4244, # Conversion from 'type1' to 'type2', possible loss of data |
5461 4481, # Nonstandard extension used: override specifier 'keyword' | 5409 4481, # Nonstandard extension used: override specifier 'keyword' |
5462 4505, # Unreferenced local function has been removed | 5410 4505, # Unreferenced local function has been removed |
5463 4510, # Default constructor could not be generated | 5411 4510, # Default constructor could not be generated |
5464 4512, # Assignment operator could not be generated | 5412 4512, # Assignment operator could not be generated |
5465 4610, # Object can never be instantiated | 5413 4610, # Object can never be instantiated |
| 5414 4996, # 'X': was declared deprecated (for GetVersionEx). |
5466 ], | 5415 ], |
5467 'msvs_settings': { | 5416 'msvs_settings': { |
5468 'VCCLCompilerTool': { | 5417 'VCCLCompilerTool': { |
5469 'AdditionalOptions': ['/MP'], | 5418 'AdditionalOptions': ['/MP'], |
5470 'MinimalRebuild': 'false', | 5419 'MinimalRebuild': 'false', |
5471 'BufferSecurityCheck': 'true', | 5420 'BufferSecurityCheck': 'true', |
5472 'EnableFunctionLevelLinking': 'true', | 5421 'EnableFunctionLevelLinking': 'true', |
5473 'RuntimeTypeInfo': 'false', | 5422 'RuntimeTypeInfo': 'false', |
5474 'WarningLevel': '4', | 5423 'WarningLevel': '4', |
5475 'WarnAsError': 'true', | 5424 'WarnAsError': 'true', |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5901 # settings in target dicts. SYMROOT is a special case, because many other | 5850 # settings in target dicts. SYMROOT is a special case, because many other |
5902 # Xcode variables depend on it, including variables such as | 5851 # Xcode variables depend on it, including variables such as |
5903 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5852 # 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 | 5853 # 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 | 5854 # 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, | 5855 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5907 # and therefore SYMROOT, needs to be set at the project level. | 5856 # and therefore SYMROOT, needs to be set at the project level. |
5908 'SYMROOT': '<(DEPTH)/xcodebuild', | 5857 'SYMROOT': '<(DEPTH)/xcodebuild', |
5909 }, | 5858 }, |
5910 } | 5859 } |
OLD | NEW |