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

Side by Side Diff: build/common.gypi

Issue 11188040: Automatically use ATL from Windows Driver Kit for SDK-only or Visual Studio Express setup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { 915 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', {
916 'windows_sdk_path%': '<(windows_sdk_default_path)', 916 'windows_sdk_path%': '<(windows_sdk_default_path)',
917 }, { 917 }, {
918 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', 918 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0',
919 }], 919 }],
920 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { 920 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', {
921 'directx_sdk_path%': '<(directx_sdk_default_path)', 921 'directx_sdk_path%': '<(directx_sdk_default_path)',
922 }, { 922 }, {
923 'directx_sdk_path%': '$(DXSDK_DIR)', 923 'directx_sdk_path%': '$(DXSDK_DIR)',
924 }], 924 }],
925 ['OS=="win"', {
926 'windows_driver_kit_path%': '$(WDK_DIR)',
927 }],
925 # If use_official_google_api_keys is already set (to 0 or 1), we 928 # If use_official_google_api_keys is already set (to 0 or 1), we
926 # do none of the implicit checking. If it is set to 1 and the 929 # do none of the implicit checking. If it is set to 1 and the
927 # internal keys file is missing, the build will fail at compile 930 # internal keys file is missing, the build will fail at compile
928 # time. If it is set to 0 and keys are not provided by other 931 # time. If it is set to 0 and keys are not provided by other
929 # means, a warning will be printed at compile time. 932 # means, a warning will be printed at compile time.
930 ['use_official_google_api_keys==2', { 933 ['use_official_google_api_keys==2', {
931 'use_official_google_api_keys%': 934 'use_official_google_api_keys%':
932 '<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/goo gle_apis/internal/google_chrome_api_keys.h)', 935 '<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/goo gle_apis/internal/google_chrome_api_keys.h)',
933 }], 936 }],
934 ['os_posix==1 and OS!="mac" and OS!="ios"', { 937 ['os_posix==1 and OS!="mac" and OS!="ios"', {
(...skipping 2423 matching lines...) Expand 10 before | Expand all | Expand 10 after
3358 ['MSVS_VERSION=="2008"', { 3361 ['MSVS_VERSION=="2008"', {
3359 'defines': [ 3362 'defines': [
3360 '_HAS_TR1=0', 3363 '_HAS_TR1=0',
3361 ], 3364 ],
3362 }], 3365 }],
3363 ['secure_atl', { 3366 ['secure_atl', {
3364 'defines': [ 3367 'defines': [
3365 '_SECURE_ATL', 3368 '_SECURE_ATL',
3366 ], 3369 ],
3367 }], 3370 }],
3371 ['msvs_express', {
3372 'configurations': {
3373 'x86_Base': {
3374 'msvs_settings': {
3375 'VCLinkerTool': {
3376 'AdditionalLibraryDirectories':
3377 ['<(windows_driver_kit_path)/lib/ATL/i386'],
3378 },
3379 'VCLibrarianTool': {
3380 'AdditionalLibraryDirectories':
3381 ['<(windows_driver_kit_path)/lib/ATL/i386'],
3382 },
3383 },
3384 },
3385 'x64_Base': {
3386 'msvs_settings': {
3387 'VCLibrarianTool': {
3388 'AdditionalLibraryDirectories':
3389 ['<(windows_driver_kit_path)/lib/ATL/amd64'],
3390 },
3391 'VCLinkerTool': {
3392 'AdditionalLibraryDirectories':
3393 ['<(windows_driver_kit_path)/lib/ATL/amd64'],
3394 },
3395 },
3396 },
3397 },
3398 'msvs_settings': {
3399 'VCLinkerTool': {
3400 # Explicitly required when using the ATL with express
3401 'AdditionalDependencies': ['atlthunk.lib'],
3402
3403 # ATL 8.0 included in WDK 7.1 makes the linker to generate
3404 # almost eight hundred LNK4254 and LNK4078 warnings:
3405 # - warning LNK4254: section 'ATL' (50000040) merged into
3406 # '.rdata' (40000040) with different attributes
3407 # - warning LNK4078: multiple 'ATL' sections found with
3408 # different attributes
3409 'AdditionalOptions': ['/ignore:4254', '/ignore:4078'],
3410 },
3411 },
3412 'msvs_system_include_dirs': [
3413 '<(windows_driver_kit_path)/inc/atl71',
3414 '<(windows_driver_kit_path)/inc/mfc42',
3415 ],
3416 }],
3368 ], 3417 ],
3369 'msvs_system_include_dirs': [ 3418 'msvs_system_include_dirs': [
3370 '<(windows_sdk_path)/Include/shared', 3419 '<(windows_sdk_path)/Include/shared',
3371 '<(windows_sdk_path)/Include/um', 3420 '<(windows_sdk_path)/Include/um',
3372 '<(windows_sdk_path)/Include/winrt', 3421 '<(windows_sdk_path)/Include/winrt',
3373 '<(directx_sdk_path)/Include', 3422 '<(directx_sdk_path)/Include',
3374 '$(VSInstallDir)/VC/atlmfc/include', 3423 '$(VSInstallDir)/VC/atlmfc/include',
3375 ], 3424 ],
3376 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], 3425 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'],
3377 'msvs_disabled_warnings': [4351, 4396, 4503, 4819, 3426 'msvs_disabled_warnings': [4351, 4396, 4503, 4819,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
3414 'msimg32.lib', 3463 'msimg32.lib',
3415 'ws2_32.lib', 3464 'ws2_32.lib',
3416 'usp10.lib', 3465 'usp10.lib',
3417 'psapi.lib', 3466 'psapi.lib',
3418 'dbghelp.lib', 3467 'dbghelp.lib',
3419 'winmm.lib', 3468 'winmm.lib',
3420 'shlwapi.lib', 3469 'shlwapi.lib',
3421 ], 3470 ],
3422 3471
3423 'conditions': [ 3472 'conditions': [
3424 ['msvs_express', {
3425 # Explicitly required when using the ATL with express
3426 'AdditionalDependencies': [
3427 'atlthunk.lib',
3428 ],
3429
3430 # ATL 8.0 included in WDK 7.1 makes the linker to generate
3431 # almost eight hundred LNK4254 and LNK4078 warnings:
3432 # - warning LNK4254: section 'ATL' (50000040) merged into
3433 # '.rdata' (40000040) with different attributes
3434 # - warning LNK4078: multiple 'ATL' sections found with
3435 # different attributes
3436 'AdditionalOptions': ['/ignore:4254', '/ignore:4078'],
3437 }],
3438 ['MSVS_VERSION=="2005e"', { 3473 ['MSVS_VERSION=="2005e"', {
3439 # Non-express versions link automatically to these 3474 # Non-express versions link automatically to these
3440 'AdditionalDependencies': [ 3475 'AdditionalDependencies': [
3441 'advapi32.lib', 3476 'advapi32.lib',
3442 'comdlg32.lib', 3477 'comdlg32.lib',
3443 'ole32.lib', 3478 'ole32.lib',
3444 'shell32.lib', 3479 'shell32.lib',
3445 'user32.lib', 3480 'user32.lib',
3446 'winspool.lib', 3481 'winspool.lib',
3447 ], 3482 ],
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
3620 # settings in target dicts. SYMROOT is a special case, because many other 3655 # settings in target dicts. SYMROOT is a special case, because many other
3621 # Xcode variables depend on it, including variables such as 3656 # Xcode variables depend on it, including variables such as
3622 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3657 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3623 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3658 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3624 # files to appear (when present) in the UI as actual files and not red 3659 # files to appear (when present) in the UI as actual files and not red
3625 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3660 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3626 # and therefore SYMROOT, needs to be set at the project level. 3661 # and therefore SYMROOT, needs to be set at the project level.
3627 'SYMROOT': '<(DEPTH)/xcodebuild', 3662 'SYMROOT': '<(DEPTH)/xcodebuild',
3628 }, 3663 },
3629 } 3664 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698