diff options
author | Eric Boren <borenet@google.com> | 2014-06-16 10:02:42 -0400 |
---|---|---|
committer | Eric Boren <borenet@google.com> | 2014-06-16 10:02:42 -0400 |
commit | 9118413608e277b4500130bc2117400f9d9b0201 (patch) | |
tree | 0c48825850277375b1a8f0dd9dcfe3e124260ec1 /gyp_skia | |
parent | d6e614c0aafca777fc3784766484d356acc47187 (diff) |
Enable compiling with automatically-downloaded VS toolchain on Windows bots
Requires that the bots have CHROME_HEADLESS=1 and CHROME_PATH set.
BUG=skia:2216
R=epoger@google.com
Review URL: https://codereview.chromium.org/332833002
Diffstat (limited to 'gyp_skia')
-rwxr-xr-x | gyp_skia | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -93,6 +93,16 @@ if __name__ == '__main__': os.environ[ENVVAR_GYP_GENERATORS] = default_gyp_generators print '%s is "%s"' % (ENVVAR_GYP_GENERATORS, os.getenv(ENVVAR_GYP_GENERATORS)) + if os.getenv('CHROME_HEADLESS', '0') == '1': + if sys.platform.startswith('win') or sys.platform.startswith('cygwin'): + chrome_path = os.getenv('CHROME_PATH') + os.chdir(chrome_path) + 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() + # Set CWD to the directory containing this script. # This allows us to launch it from other directories, in spite of gyp's # finickyness about the current working directory. |