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

Unified Diff: gyp_skia

Issue 339733002: Fix Windows bots (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp_skia
diff --git a/gyp_skia b/gyp_skia
index 1f3f337e7e9e6e787d1a41ef4168c96ff43d9759..f8f6d95cc00c00cd57110ad2d0d8e53df4294660 100755
--- a/gyp_skia
+++ b/gyp_skia
@@ -93,6 +93,7 @@ if __name__ == '__main__':
os.environ[ENVVAR_GYP_GENERATORS] = default_gyp_generators
print '%s is "%s"' % (ENVVAR_GYP_GENERATORS, os.getenv(ENVVAR_GYP_GENERATORS))
+ vs2013_runtime_dll_dirs = None
if os.getenv('CHROME_HEADLESS', '0') == '1':
if sys.platform.startswith('win') or sys.platform.startswith('cygwin'):
chrome_path = os.getenv('CHROME_PATH')
@@ -100,8 +101,7 @@ if __name__ == '__main__':
sys.path.append(os.path.join(chrome_path, 'build'))
sys.path.append(os.path.join(chrome_path, 'tools'))
import vs_toolchain
- vs_toolchain.Update()
- vs_toolchain.GetToolchainDir()
+ vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
# Set CWD to the directory containing this script.
# This allows us to launch it from other directories, in spite of gyp's
@@ -157,4 +157,12 @@ if __name__ == '__main__':
print gyp_source_dir, ' '.join(args)
else:
# Off we go...
- sys.exit(gyp.main(args))
+ res = gyp.main(args)
+ if res:
+ sys.exit(res)
+
+ if vs2013_runtime_dll_dirs:
mtklein 2014/06/16 19:11:29 Can this run before gyp? If so, that can become s
borenet 2014/06/16 19:19:08 No. The out/* directories need to be created befor
+ x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
+ vs_toolchain.CopyVsRuntimeDlls(
+ os.path.join(os.getenv('CHROME_PATH'), get_output_dir()),
+ (x86_runtime, x64_runtime))
mtklein 2014/06/16 19:11:29 Add a comment reassuring us the inverted order is
borenet 2014/06/16 19:19:07 Added not-so-reassuring comment.
« 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