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

Unified Diff: infra/bots/assets/win_vulkan_sdk/create_and_upload.py

Issue 2188543002: Add Vulkan runtime dll (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Remove Vulkan_flavor Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/bots/assets/win_vulkan_sdk/create.py ('k') | infra/bots/recipe_modules/skia/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/assets/win_vulkan_sdk/create_and_upload.py
diff --git a/infra/bots/assets/win_toolchain/create_and_upload.py b/infra/bots/assets/win_vulkan_sdk/create_and_upload.py
old mode 100755
new mode 100644
similarity index 71%
copy from infra/bots/assets/win_toolchain/create_and_upload.py
copy to infra/bots/assets/win_vulkan_sdk/create_and_upload.py
index d428ca4ef9df2352ea3627f1656e59fd27e6eef2..515aa3d3933d8a818191e6738158cda7e56f2b30
--- a/infra/bots/assets/win_toolchain/create_and_upload.py
+++ b/infra/bots/assets/win_vulkan_sdk/create_and_upload.py
@@ -18,10 +18,15 @@ import utils
def main():
+ if sys.platform != 'win32':
+ print >> sys.stderr, 'This script only runs on Windows.'
+ sys.exit(1)
parser = argparse.ArgumentParser()
parser.add_argument('--gsutil')
- parser.add_argument('--chrome_path')
- parser.add_argument('--msvs_version', required=True)
+ parser.add_argument('--sdk_path', '-s', required=True)
+ parser.add_argument('--runtime_path', '-r',
+ default=os.path.join("C:","System32","vulkan-1.dll"),
+ required=True)
args = parser.parse_args()
with utils.tmp_dir():
@@ -32,9 +37,8 @@ def main():
try:
cmd = ['python', create_script,
'-t', cwd,
- '--msvs_version', args.msvs_version]
- if args.chrome_path:
- cmd.extend(['--chrome_path', args.chrome_path])
+ '--sdk_path', args.sdk_path,
+ '--runtime_path', args.runtime_path]
subprocess.check_call(cmd)
cmd = ['python', upload_script, '-t', cwd]
if args.gsutil:
« no previous file with comments | « infra/bots/assets/win_vulkan_sdk/create.py ('k') | infra/bots/recipe_modules/skia/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698