• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "cmd": [
4      "python",
5      "-u",
6      "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
7      "--json-output",
8      "/path/to/tmp/json",
9      "copy",
10      "[START_DIR]\\skia\\infra\\bots\\assets\\clang_win\\VERSION",
11      "/path/to/tmp/"
12    ],
13    "infra_step": true,
14    "name": "Get clang_win VERSION"
15  },
16  {
17    "cmd": [
18      "python",
19      "-u",
20      "[START_DIR]\\skia\\bin\\fetch-gn"
21    ],
22    "cwd": "[START_DIR]\\skia",
23    "env": {
24      "CHROME_HEADLESS": "1",
25      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
26    },
27    "infra_step": true,
28    "name": "fetch-gn"
29  },
30  {
31    "cmd": [
32      "[START_DIR]\\skia\\bin\\gn",
33      "gen",
34      "[START_DIR]\\cache\\work\\skia\\out\\Build-Win-Clang-x86-Debug\\Debug",
35      "--args=cc=\"clang\" clang_win=\"[START_DIR]\\clang_win\" cxx=\"clang++\" extra_cflags=[\"-O1\", \"-DDUMMY_clang_win_version=42\"] target_cpu=\"x86\" werror=true win_sdk=\"[START_DIR]\\win_toolchain/win_sdk\" win_vc=\"[START_DIR]\\win_toolchain/VC\""
36    ],
37    "cwd": "[START_DIR]\\skia",
38    "env": {
39      "CHROME_HEADLESS": "1",
40      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
41    },
42    "name": "gn gen"
43  },
44  {
45    "cmd": [
46      "ninja",
47      "-C",
48      "[START_DIR]\\cache\\work\\skia\\out\\Build-Win-Clang-x86-Debug\\Debug"
49    ],
50    "cwd": "[START_DIR]\\skia",
51    "env": {
52      "CHROME_HEADLESS": "1",
53      "PATH": "<PATH>;RECIPE_REPO[depot_tools]"
54    },
55    "name": "ninja"
56  },
57  {
58    "cmd": [
59      "python",
60      "-u",
61      "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['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', 'skiaserve', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']\n\ntry:\n  os.makedirs(dst)\nexcept OSError as e:\n  if e.errno != errno.EEXIST:\n    raise\n\nfor pattern in build_products_whitelist:\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",
62      "[START_DIR]\\cache\\work\\skia\\out\\Build-Win-Clang-x86-Debug\\Debug",
63      "[START_DIR]\\[SWARM_OUT_DIR]"
64    ],
65    "infra_step": true,
66    "name": "copy build products",
67    "~followup_annotations": [
68      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
69      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
70      "@@@STEP_LOG_LINE@python.inline@import os@@@",
71      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
72      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
73      "@@@STEP_LOG_LINE@python.inline@@@@",
74      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
75      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
76      "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['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', 'skiaserve', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@",
77      "@@@STEP_LOG_LINE@python.inline@@@@",
78      "@@@STEP_LOG_LINE@python.inline@try:@@@",
79      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
80      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
81      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
82      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
83      "@@@STEP_LOG_LINE@python.inline@@@@",
84      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
85      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
86      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
87      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
88      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
89      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
90      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
91      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
92      "@@@STEP_LOG_END@python.inline@@@"
93    ]
94  },
95  {
96    "cmd": [
97      "python",
98      "-u",
99      "import psutil\nfor p in psutil.process_iter():\n  try:\n    if p.name in ('mspdbsrv.exe', 'vctip.exe', 'cl.exe', 'link.exe'):\n      p.kill()\n  except psutil._error.AccessDenied:\n    pass\n"
100    ],
101    "infra_step": true,
102    "name": "cleanup",
103    "~followup_annotations": [
104      "@@@STEP_LOG_LINE@python.inline@import psutil@@@",
105      "@@@STEP_LOG_LINE@python.inline@for p in psutil.process_iter():@@@",
106      "@@@STEP_LOG_LINE@python.inline@  try:@@@",
107      "@@@STEP_LOG_LINE@python.inline@    if p.name in ('mspdbsrv.exe', 'vctip.exe', 'cl.exe', 'link.exe'):@@@",
108      "@@@STEP_LOG_LINE@python.inline@      p.kill()@@@",
109      "@@@STEP_LOG_LINE@python.inline@  except psutil._error.AccessDenied:@@@",
110      "@@@STEP_LOG_LINE@python.inline@    pass@@@",
111      "@@@STEP_LOG_END@python.inline@@@"
112    ]
113  },
114  {
115    "name": "$result"
116  }
117]