1+ [
2+ {
3+ "cmd" : [
4+ " vpython" ,
5+ " -u" ,
6+ " RECIPE_MODULE[recipe_engine::file]\\ resources\\ fileutil.py" ,
7+ " --json-output" ,
8+ " /path/to/tmp/json" ,
9+ " copy" ,
10+ " [START_DIR]\\ cache\\ work\\ skia\\ infra\\ bots\\ assets\\ clang_win\\ VERSION" ,
11+ " /path/to/tmp/"
12+ ],
13+ "infra_step" : true ,
14+ "name" : " Get clang_win VERSION" ,
15+ "~followup_annotations" : [
16+ " @@@STEP_LOG_LINE@VERSION@42@@@" ,
17+ " @@@STEP_LOG_END@VERSION@@@"
18+ ]
19+ },
20+ {
21+ "cmd" : [
22+ " python" ,
23+ " -u" ,
24+ " [START_DIR]\\ cache\\ work\\ skia\\ bin\\ fetch-gn"
25+ ],
26+ "cwd" : " [START_DIR]\\ cache\\ work\\ skia" ,
27+ "env" : {
28+ "CHROME_HEADLESS" : " 1" ,
29+ "PATH" : " <PATH>;RECIPE_REPO[depot_tools]"
30+ },
31+ "infra_step" : true ,
32+ "name" : " fetch-gn"
33+ },
34+ {
35+ "cmd" : [
36+ " [START_DIR]\\ cache\\ work\\ skia\\ bin\\ gn" ,
37+ " gen" ,
38+ " [START_DIR]\\ cache\\ work\\ skia\\ out\\ Build-Win-Clang-x86_64-Release-Direct3D\\ Release_x64" ,
39+ " --args=cc=\" clang\" clang_win=\" [START_DIR]\\ clang_win\" cxx=\" clang++\" extra_cflags=[\" -DDUMMY_clang_win_version=42\" ] is_debug=false skia_use_direct3d=true target_cpu=\" x86_64\" werror=true win_sdk=\" [START_DIR]\\ win_toolchain/win_sdk\" win_vc=\" [START_DIR]\\ win_toolchain/VC\" "
40+ ],
41+ "cwd" : " [START_DIR]\\ cache\\ work\\ skia" ,
42+ "env" : {
43+ "CHROME_HEADLESS" : " 1" ,
44+ "PATH" : " <PATH>;RECIPE_REPO[depot_tools]"
45+ },
46+ "name" : " gn gen"
47+ },
48+ {
49+ "cmd" : [
50+ " ninja" ,
51+ " -C" ,
52+ " [START_DIR]\\ cache\\ work\\ skia\\ out\\ Build-Win-Clang-x86_64-Release-Direct3D\\ Release_x64"
53+ ],
54+ "cwd" : " [START_DIR]\\ cache\\ work\\ skia" ,
55+ "env" : {
56+ "CHROME_HEADLESS" : " 1" ,
57+ "PATH" : " <PATH>;RECIPE_REPO[depot_tools]"
58+ },
59+ "name" : " ninja"
60+ },
61+ {
62+ "cmd" : [
63+ " python" ,
64+ " -u" ,
65+ " import errno\n import glob\n import os\n import shutil\n import sys\n\n src = sys.argv[1]\n dst = sys.argv[2]\n build_products = ['dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']\n\n try:\n os.makedirs(dst)\n except OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\n for pattern in build_products:\n path = os.path.join(src, pattern)\n for f in glob.glob(path):\n dst_path = os.path.join(dst, os.path.relpath(f, src))\n if not os.path.isdir(os.path.dirname(dst_path)):\n os.makedirs(os.path.dirname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n " ,
66+ " [START_DIR]\\ cache\\ work\\ skia\\ out\\ Build-Win-Clang-x86_64-Release-Direct3D\\ Release_x64" ,
67+ " [START_DIR]\\ [SWARM_OUT_DIR]\\ out\\ Release_x64"
68+ ],
69+ "infra_step" : true ,
70+ "name" : " copy build products" ,
71+ "~followup_annotations" : [
72+ " @@@[email protected] @import errno@@@" ,
73+ " @@@[email protected] @import glob@@@" ,
74+ " @@@[email protected] @import os@@@" ,
75+ " @@@[email protected] @import shutil@@@" ,
76+ " @@@[email protected] @import sys@@@" ,
77+ 78+ " @@@[email protected] @src = sys.argv[1]@@@" ,
79+ " @@@[email protected] @dst = sys.argv[2]@@@" ,
80+ " @@@[email protected] @build_products = ['dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@" ,
81+ 82+ 83+ " @@@[email protected] @ os.makedirs(dst)@@@" ,
84+ " @@@[email protected] @except OSError as e:@@@" ,
85+ " @@@[email protected] @ if e.errno != errno.EEXIST:@@@" ,
86+ 87+ 88+ " @@@[email protected] @for pattern in build_products:@@@" ,
89+ " @@@[email protected] @ path = os.path.join(src, pattern)@@@" ,
90+ " @@@[email protected] @ for f in glob.glob(path):@@@" ,
91+ " @@@[email protected] @ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@" ,
92+ " @@@[email protected] @ if not os.path.isdir(os.path.dirname(dst_path)):@@@" ,
93+ " @@@[email protected] @ os.makedirs(os.path.dirname(dst_path))@@@" ,
94+ " @@@[email protected] @ print 'Copying build product %s to %s' % (f, dst_path)@@@" ,
95+ " @@@[email protected] @ shutil.move(f, dst_path)@@@" ,
96+ 97+ ]
98+ },
99+ {
100+ "name" : " $result"
101+ }
102+ ]
0 commit comments