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

Side by Side Diff: build/common.gypi

Issue 10696084: Base platform sdk selection on a variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 810
811 # The desired version of Windows SDK can be set in ~/.gyp/include.gypi. 811 # The desired version of Windows SDK can be set in ~/.gyp/include.gypi.
812 'msbuild_toolset%': '', 812 'msbuild_toolset%': '',
813 813
814 # Native Client is enabled by default. 814 # Native Client is enabled by default.
815 'disable_nacl%': 0, 815 'disable_nacl%': 0,
816 816
817 'sas_dll_exists': '<!(python <(DEPTH)/build/dir_exists.py <(sas_dll_path))', 817 'sas_dll_exists': '<!(python <(DEPTH)/build/dir_exists.py <(sas_dll_path))',
818 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))', 818 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))',
819 819
820 'windows_sdk_path%': '<(DEPTH)/third_party/platformsdk_win8/files',
821
820 'conditions': [ 822 'conditions': [
821 ['os_posix==1 and OS!="mac" and OS!="ios"', { 823 ['os_posix==1 and OS!="mac" and OS!="ios"', {
822 # This will set gcc_version to XY if you are running gcc X.Y.*. 824 # This will set gcc_version to XY if you are running gcc X.Y.*.
823 # This is used to tweak build flags for gcc 4.4. 825 # This is used to tweak build flags for gcc 4.4.
824 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', 826 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
825 # Figure out the python architecture to decide if we build pyauto. 827 # Figure out the python architecture to decide if we build pyauto.
826 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/< (system_libdir)/libpython<(python_ver).so.1.0)', 828 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/< (system_libdir)/libpython<(python_ver).so.1.0)',
827 'conditions': [ 829 'conditions': [
828 ['branding=="Chrome"', { 830 ['branding=="Chrome"', {
829 'linux_breakpad%': 1, 831 'linux_breakpad%': 1,
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 }, 1677 },
1676 'msvs_configuration_platform': 'Win32', 1678 'msvs_configuration_platform': 'Win32',
1677 }, 1679 },
1678 'x64_Base': { 1680 'x64_Base': {
1679 'abstract': 1, 1681 'abstract': 1,
1680 'msvs_configuration_platform': 'x64', 1682 'msvs_configuration_platform': 'x64',
1681 'msvs_settings': { 1683 'msvs_settings': {
1682 'VCLinkerTool': { 1684 'VCLinkerTool': {
1683 'TargetMachine': '17', # x86 - 64 1685 'TargetMachine': '17', # x86 - 64
1684 'AdditionalLibraryDirectories!': 1686 'AdditionalLibraryDirectories!':
1685 ['<(DEPTH)/third_party/platformsdk_win8/files/Lib/win8/um/x86'], 1687 ['<(windows_sdk_path)/Lib/win8/um/x86'],
1686 'AdditionalLibraryDirectories': 1688 'AdditionalLibraryDirectories':
1687 ['<(DEPTH)/third_party/platformsdk_win8/files/Lib/win8/um/x64'], 1689 ['<(windows_sdk_path)/Lib/win8/um/x64'],
1688 }, 1690 },
1689 'VCLibrarianTool': { 1691 'VCLibrarianTool': {
1690 'AdditionalLibraryDirectories!': 1692 'AdditionalLibraryDirectories!':
1691 ['<(DEPTH)/third_party/platformsdk_win8/files/Lib/win8/um/x86'], 1693 ['<(windows_sdk_path)/Lib/win8/um/x86'],
1692 'AdditionalLibraryDirectories': 1694 'AdditionalLibraryDirectories':
1693 ['<(DEPTH)/third_party/platformsdk_win8/files/Lib/win8/um/x64'], 1695 ['<(windows_sdk_path)/Lib/win8/um/x64'],
1694 }, 1696 },
1695 }, 1697 },
1696 'defines': [ 1698 'defines': [
1697 # Not sure if tcmalloc works on 64-bit Windows. 1699 # Not sure if tcmalloc works on 64-bit Windows.
1698 'NO_TCMALLOC', 1700 'NO_TCMALLOC',
1699 ], 1701 ],
1700 }, 1702 },
1701 'Debug_Base': { 1703 'Debug_Base': {
1702 'abstract': 1, 1704 'abstract': 1,
1703 'defines': [ 1705 'defines': [
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
2999 '_HAS_TR1=0', 3001 '_HAS_TR1=0',
3000 ], 3002 ],
3001 }], 3003 }],
3002 ['secure_atl', { 3004 ['secure_atl', {
3003 'defines': [ 3005 'defines': [
3004 '_SECURE_ATL', 3006 '_SECURE_ATL',
3005 ], 3007 ],
3006 }], 3008 }],
3007 ], 3009 ],
3008 'msvs_system_include_dirs': [ 3010 'msvs_system_include_dirs': [
3009 '<(DEPTH)/third_party/platformsdk_win8/files/Include/shared', 3011 '<(windows_sdk_path)/Include/shared',
3010 '<(DEPTH)/third_party/platformsdk_win8/files/Include/um', 3012 '<(windows_sdk_path)/Include/um',
3011 '<(DEPTH)/third_party/platformsdk_win8/files/Include/winrt', 3013 '<(windows_sdk_path)/Include/winrt',
3012 '<(DEPTH)/third_party/directxsdk/files/Include', 3014 '<(DEPTH)/third_party/directxsdk/files/Include',
3013 '$(VSInstallDir)/VC/atlmfc/include', 3015 '$(VSInstallDir)/VC/atlmfc/include',
3014 ], 3016 ],
3015 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], 3017 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'],
3016 'msvs_disabled_warnings': [4351, 4396, 4503, 4819, 3018 'msvs_disabled_warnings': [4351, 4396, 4503, 4819,
3017 # TODO(maruel): These warnings are level 4. They will be slowly 3019 # TODO(maruel): These warnings are level 4. They will be slowly
3018 # removed as code is fixed. 3020 # removed as code is fixed.
3019 4100, 4121, 4125, 4127, 4130, 4131, 4189, 4201, 4238, 4244, 4245, 3021 4100, 4121, 4125, 4127, 4130, 4131, 4189, 4201, 4238, 4244, 4245,
3020 4310, 4355, 4428, 4481, 4505, 4510, 4512, 4530, 4610, 4611, 4701, 3022 4310, 4355, 4428, 4481, 4505, 4510, 4512, 4530, 4610, 4611, 4701,
3021 4702, 4706, 3023 4702, 4706,
(...skipping 18 matching lines...) Expand all
3040 'ExceptionHandling': '1', # /EHsc 3042 'ExceptionHandling': '1', # /EHsc
3041 }, { 3043 }, {
3042 'ExceptionHandling': '0', 3044 'ExceptionHandling': '0',
3043 }], 3045 }],
3044 ], 3046 ],
3045 }, 3047 },
3046 'VCLibrarianTool': { 3048 'VCLibrarianTool': {
3047 'AdditionalOptions': ['/ignore:4221'], 3049 'AdditionalOptions': ['/ignore:4221'],
3048 'AdditionalLibraryDirectories': [ 3050 'AdditionalLibraryDirectories': [
3049 '<(DEPTH)/third_party/directxsdk/files/Lib/x86', 3051 '<(DEPTH)/third_party/directxsdk/files/Lib/x86',
3050 '<(DEPTH)/third_party/platformsdk_win8/files/Lib/win8/um/x86', 3052 '<(windows_sdk_path)/Lib/win8/um/x86',
3051 ], 3053 ],
3052 }, 3054 },
3053 'VCLinkerTool': { 3055 'VCLinkerTool': {
3054 'AdditionalDependencies': [ 3056 'AdditionalDependencies': [
3055 'wininet.lib', 3057 'wininet.lib',
3056 'dnsapi.lib', 3058 'dnsapi.lib',
3057 'version.lib', 3059 'version.lib',
3058 'msimg32.lib', 3060 'msimg32.lib',
3059 'ws2_32.lib', 3061 'ws2_32.lib',
3060 'usp10.lib', 3062 'usp10.lib',
(...skipping 25 matching lines...) Expand all
3086 'comdlg32.lib', 3088 'comdlg32.lib',
3087 'ole32.lib', 3089 'ole32.lib',
3088 'shell32.lib', 3090 'shell32.lib',
3089 'user32.lib', 3091 'user32.lib',
3090 'winspool.lib', 3092 'winspool.lib',
3091 ], 3093 ],
3092 }], 3094 }],
3093 ], 3095 ],
3094 'AdditionalLibraryDirectories': [ 3096 'AdditionalLibraryDirectories': [
3095 '<(DEPTH)/third_party/directxsdk/files/Lib/x86', 3097 '<(DEPTH)/third_party/directxsdk/files/Lib/x86',
3096 '<(DEPTH)/third_party/platformsdk_win8/files/Lib/win8/um/x86', 3098 '<(windows_sdk_path)/Lib/win8/um/x86',
3097 ], 3099 ],
3098 'GenerateDebugInformation': 'true', 3100 'GenerateDebugInformation': 'true',
3099 'MapFileName': '$(OutDir)\\$(TargetName).map', 3101 'MapFileName': '$(OutDir)\\$(TargetName).map',
3100 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib', 3102 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
3101 'FixedBaseAddress': '1', 3103 'FixedBaseAddress': '1',
3102 # SubSystem values: 3104 # SubSystem values:
3103 # 0 == not set 3105 # 0 == not set
3104 # 1 == /SUBSYSTEM:CONSOLE 3106 # 1 == /SUBSYSTEM:CONSOLE
3105 # 2 == /SUBSYSTEM:WINDOWS 3107 # 2 == /SUBSYSTEM:WINDOWS
3106 # Most of the executables we'll ever create are tests 3108 # Most of the executables we'll ever create are tests
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
3236 # settings in target dicts. SYMROOT is a special case, because many other 3238 # settings in target dicts. SYMROOT is a special case, because many other
3237 # Xcode variables depend on it, including variables such as 3239 # Xcode variables depend on it, including variables such as
3238 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3240 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3239 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3241 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3240 # files to appear (when present) in the UI as actual files and not red 3242 # files to appear (when present) in the UI as actual files and not red
3241 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3243 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3242 # and therefore SYMROOT, needs to be set at the project level. 3244 # and therefore SYMROOT, needs to be set at the project level.
3243 'SYMROOT': '<(DEPTH)/xcodebuild', 3245 'SYMROOT': '<(DEPTH)/xcodebuild',
3244 }, 3246 },
3245 } 3247 }
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