summaryrefslogtreecommitdiffstats
path: root/chrome/tools/build
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-12 02:10:53 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-12 02:10:53 +0000
commite53a18b0b5e8bef623f551c2040fdc93d2b89bfc (patch)
tree05c18b60b0abd6a1d4e5c51df7bdc120189b7655 /chrome/tools/build
parent78a6b64783ce470c14c578b036552a0ddcdcfc97 (diff)
downloadchromium_src-e53a18b0b5e8bef623f551c2040fdc93d2b89bfc.zip
chromium_src-e53a18b0b5e8bef623f551c2040fdc93d2b89bfc.tar.gz
chromium_src-e53a18b0b5e8bef623f551c2040fdc93d2b89bfc.tar.bz2
When the Win8 script for checking the SDK has been patched succeeds, write out a beacon file to avoid rerunning the script on subsequent builds.
Also, slightly improve the SDK patch error message. BUG=127799 TEST=NONE Review URL: https://chromiumcodereview.appspot.com/10928127 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156210 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/build')
-rwxr-xr-xchrome/tools/build/win/check_sdk_patch.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/tools/build/win/check_sdk_patch.py b/chrome/tools/build/win/check_sdk_patch.py
index 9164525..0a8cb9e 100755
--- a/chrome/tools/build/win/check_sdk_patch.py
+++ b/chrome/tools/build/win/check_sdk_patch.py
@@ -17,7 +17,7 @@ import sys
def main(argv):
if len(argv) < 2:
- print "Usage: check_sdk_patch.py path_to_windows_8_sdk"
+ print "Usage: check_sdk_patch.py path_to_windows_8_sdk [dummy_output_file]"
return 1
# Look for asyncinfo.h
@@ -29,12 +29,17 @@ def main(argv):
return 2
else:
if 'enum class' in open(async_info_path).read():
- print ("\nERROR: You are using an unpatched Windows 8 SDK. Please see "
- "instructions at\nhttp://www.chromium.org/developers/how-tos/"
+ print ("\nERROR: You are using an unpatched Windows 8 SDK located at %s."
+ "\nPlease see instructions at"
+ "\nhttp://www.chromium.org/developers/how-tos/"
"build-instructions-windows\nfor how to apply the patch to build "
- "with VS2010.\n")
+ "with VS2010.\n" % argv[1])
return 3
else:
+ if len(argv) > 2:
+ with open(argv[2], 'w') as dummy_file:
+ dummy_file.write('Windows 8 SDK has been patched!')
+
# Patched Windows 8 SDK found.
return 0