summaryrefslogtreecommitdiffstats
path: root/build/gyp_chromium
diff options
context:
space:
mode:
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-04 17:50:01 +0000
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-04 17:50:01 +0000
commit1a52d802edea1b99e077d3165adb6861a014638e (patch)
tree786e5e90460c0dc90cdf9850ba4a389f59614191 /build/gyp_chromium
parentf1b09fc01b78b50053dd0aa575758e5d1adef4a9 (diff)
downloadchromium_src-1a52d802edea1b99e077d3165adb6861a014638e.zip
chromium_src-1a52d802edea1b99e077d3165adb6861a014638e.tar.gz
chromium_src-1a52d802edea1b99e077d3165adb6861a014638e.tar.bz2
Support Express for 2013 automatic toolchain
Pick up setting for Express 2013 to get WDK_DIR set (required for ATL with Express). Add additional "or 2013e" to build/common.gypi, but exclude unneeded workaround for intsafe.h. R=dpranke@chromium.org BUG=323300, 340358 Review URL: https://codereview.chromium.org/153143002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/gyp_chromium')
-rwxr-xr-xbuild/gyp_chromium12
1 files changed, 9 insertions, 3 deletions
diff --git a/build/gyp_chromium b/build/gyp_chromium
index 9034c82..80681dc 100755
--- a/build/gyp_chromium
+++ b/build/gyp_chromium
@@ -407,23 +407,29 @@ if __name__ == '__main__':
depot_tools_path = find_depot_tools.add_depot_tools_to_path()
toolchain = os.path.normpath(os.path.join(
depot_tools_path, 'win_toolchain', 'vs2013_files'))
- if os.path.isdir(toolchain):
+ version_file = os.path.join(toolchain, '.version')
+ if os.path.isdir(toolchain) and os.path.isfile(version_file):
os.environ['GYP_MSVS_OVERRIDE_PATH'] = toolchain
- os.environ['GYP_MSVS_VERSION'] = '2013'
+ with open(version_file, 'r') as f:
+ version_is_pro = f.read().strip() == 'pro'
+ os.environ['GYP_MSVS_VERSION'] = '2013' if version_is_pro else '2013e'
# We need to make sure windows_sdk_path is set to the automated
# toolchain values in GYP_DEFINES, but don't want to override any other
# values there.
gyp_defines_dict = gyp.NameValueListToDict(gyp.ShlexEnv('GYP_DEFINES'))
win8sdk = os.path.join(toolchain, 'win8sdk')
+ wdk = os.path.join(toolchain, 'wdk')
gyp_defines_dict['windows_sdk_path'] = win8sdk
os.environ['WINDOWSSDKDIR'] = win8sdk
+ os.environ['WDK_DIR'] = wdk
os.environ['GYP_DEFINES'] = ' '.join('%s=%s' % (k, pipes.quote(str(v)))
for k, v in gyp_defines_dict.iteritems())
# Include the VS runtime in the PATH in case it's not machine-installed.
runtime_path = ';'.join(os.path.normpath(os.path.join(toolchain, s))
for s in ('sys64', 'sys32'))
os.environ['PATH'] = runtime_path + ';' + os.environ['PATH']
- print('Using automatic toolchain in %s.' % toolchain)
+ print('Using automatic toolchain in %s (%s edition).' % (
+ toolchain, 'Pro' if version_is_pro else 'Express'))
# If CHROMIUM_GYP_SYNTAX_CHECK is set to 1, it will invoke gyp with --check
# to enfore syntax checking.