• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "cmd": [],
4    "name": "ensure xcode",
5    "~followup_annotations": [
6      "@@@STEP_TEXT@Ensuring Xcode version 12c33 in [START_DIR]/cache/Xcode.app@@@"
7    ]
8  },
9  {
10    "cmd": [
11      "[START_DIR]/mac_toolchain/mac_toolchain",
12      "install",
13      "-kind",
14      "ios",
15      "-xcode-version",
16      "12c33",
17      "-output-dir",
18      "[START_DIR]/cache/Xcode.app"
19    ],
20    "name": "ensure xcode.install xcode",
21    "~followup_annotations": [
22      "@@@STEP_NEST_LEVEL@1@@@"
23    ]
24  },
25  {
26    "cmd": [
27      "sudo",
28      "xcode-select",
29      "-switch",
30      "[START_DIR]/cache/Xcode.app"
31    ],
32    "name": "ensure xcode.select xcode",
33    "~followup_annotations": [
34      "@@@STEP_NEST_LEVEL@1@@@"
35    ]
36  },
37  {
38    "cmd": [
39      "python",
40      "-u",
41      "[START_DIR]/cache/work/skia/bin/fetch-gn"
42    ],
43    "cwd": "[START_DIR]/cache/work/skia",
44    "env": {
45      "CHROME_HEADLESS": "1",
46      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
47    },
48    "infra_step": true,
49    "name": "fetch-gn"
50  },
51  {
52    "cmd": [
53      "[START_DIR]/ccache_mac/bin/ccache",
54      "-s"
55    ],
56    "cwd": "[START_DIR]/cache/work/skia",
57    "env": {
58      "CCACHE_COMPILERCHECK": "content",
59      "CCACHE_DIR": "[START_DIR]/cache/ccache",
60      "CCACHE_MAXFILES": "0",
61      "CCACHE_MAXSIZE": "50G",
62      "CHROME_HEADLESS": "1",
63      "MACOSX_DEPLOYMENT_TARGET": "10.13",
64      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
65    },
66    "name": "ccache stats-start"
67  },
68  {
69    "cmd": [
70      "[START_DIR]/cache/work/skia/bin/gn",
71      "gen",
72      "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-ASAN/Debug",
73      "--args=cc=\"clang\" cc_wrapper=\"[START_DIR]/ccache_mac/bin/ccache\" cxx=\"clang++\" extra_cflags=[\"-DREBUILD_IF_CHANGED_xcode_build_version=12c33\", \"-O1\"] sanitize=\"ASAN\" skia_enable_spirv_validation=false target_cpu=\"x86_64\" werror=true"
74    ],
75    "cwd": "[START_DIR]/cache/work/skia",
76    "env": {
77      "CCACHE_COMPILERCHECK": "content",
78      "CCACHE_DIR": "[START_DIR]/cache/ccache",
79      "CCACHE_MAXFILES": "0",
80      "CCACHE_MAXSIZE": "50G",
81      "CHROME_HEADLESS": "1",
82      "MACOSX_DEPLOYMENT_TARGET": "10.13",
83      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
84    },
85    "name": "gn gen"
86  },
87  {
88    "cmd": [
89      "ninja",
90      "-C",
91      "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-ASAN/Debug"
92    ],
93    "cwd": "[START_DIR]/cache/work/skia",
94    "env": {
95      "CCACHE_COMPILERCHECK": "content",
96      "CCACHE_DIR": "[START_DIR]/cache/ccache",
97      "CCACHE_MAXFILES": "0",
98      "CCACHE_MAXSIZE": "50G",
99      "CHROME_HEADLESS": "1",
100      "MACOSX_DEPLOYMENT_TARGET": "10.13",
101      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
102    },
103    "name": "ninja"
104  },
105  {
106    "cmd": [
107      "[START_DIR]/ccache_mac/bin/ccache",
108      "-s"
109    ],
110    "cwd": "[START_DIR]/cache/work/skia",
111    "env": {
112      "CCACHE_COMPILERCHECK": "content",
113      "CCACHE_DIR": "[START_DIR]/cache/ccache",
114      "CCACHE_MAXFILES": "0",
115      "CCACHE_MAXSIZE": "50G",
116      "CHROME_HEADLESS": "1",
117      "MACOSX_DEPLOYMENT_TARGET": "10.13",
118      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
119    },
120    "name": "ccache stats-end"
121  },
122  {
123    "cmd": [
124      "python",
125      "-u",
126      "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products = ['dm', 'dm.exe', 'dm.app', 'fm', 'fm.exe', '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']\n\ntry:\n  os.makedirs(dst)\nexcept OSError as e:\n  if e.errno != errno.EEXIST:\n    raise\n\nfor 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",
127      "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-ASAN/Debug",
128      "[START_DIR]/[SWARM_OUT_DIR]/out/Debug"
129    ],
130    "infra_step": true,
131    "name": "copy build products",
132    "~followup_annotations": [
133      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
134      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
135      "@@@STEP_LOG_LINE@python.inline@import os@@@",
136      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
137      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
138      "@@@STEP_LOG_LINE@python.inline@@@@",
139      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
140      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
141      "@@@STEP_LOG_LINE@python.inline@build_products = ['dm', 'dm.exe', 'dm.app', 'fm', 'fm.exe', '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']@@@",
142      "@@@STEP_LOG_LINE@python.inline@@@@",
143      "@@@STEP_LOG_LINE@python.inline@try:@@@",
144      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
145      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
146      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
147      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
148      "@@@STEP_LOG_LINE@python.inline@@@@",
149      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@",
150      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
151      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
152      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
153      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
154      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
155      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
156      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
157      "@@@STEP_LOG_END@python.inline@@@"
158    ]
159  },
160  {
161    "cmd": [
162      "vpython",
163      "-u",
164      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
165      "--json-output",
166      "/path/to/tmp/json",
167      "listdir",
168      "[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang"
169    ],
170    "infra_step": true,
171    "name": "find XCode Clang version",
172    "~followup_annotations": [
173      "@@@STEP_LOG_LINE@listdir@[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0@@@",
174      "@@@STEP_LOG_END@listdir@@@"
175    ]
176  },
177  {
178    "cmd": [
179      "vpython",
180      "-u",
181      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
182      "--json-output",
183      "/path/to/tmp/json",
184      "glob",
185      "[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib/darwin",
186      "libclang_rt.*san_osx_dynamic.dylib"
187    ],
188    "infra_step": true,
189    "name": "find xSAN dylibs",
190    "~followup_annotations": [
191      "@@@STEP_LOG_LINE@glob@[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib@@@",
192      "@@@STEP_LOG_LINE@glob@[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib@@@",
193      "@@@STEP_LOG_LINE@glob@[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib@@@",
194      "@@@STEP_LOG_END@glob@@@"
195    ]
196  },
197  {
198    "cmd": [
199      "vpython",
200      "-u",
201      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
202      "--json-output",
203      "/path/to/tmp/json",
204      "copy",
205      "[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib",
206      "[START_DIR]/[SWARM_OUT_DIR]/out/Debug"
207    ],
208    "infra_step": true,
209    "name": "copy libclang_rt.asan_osx_dynamic.dylib"
210  },
211  {
212    "cmd": [
213      "vpython",
214      "-u",
215      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
216      "--json-output",
217      "/path/to/tmp/json",
218      "copy",
219      "[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib",
220      "[START_DIR]/[SWARM_OUT_DIR]/out/Debug"
221    ],
222    "infra_step": true,
223    "name": "copy libclang_rt.tsan_osx_dynamic.dylib"
224  },
225  {
226    "cmd": [
227      "vpython",
228      "-u",
229      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
230      "--json-output",
231      "/path/to/tmp/json",
232      "copy",
233      "[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib",
234      "[START_DIR]/[SWARM_OUT_DIR]/out/Debug"
235    ],
236    "infra_step": true,
237    "name": "copy libclang_rt.ubsan_osx_dynamic.dylib"
238  },
239  {
240    "name": "$result"
241  }
242]