• 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]/cache/work/skia/infra/bots/assets/cast_toolchain/VERSION",
11      "/path/to/tmp/"
12    ],
13    "infra_step": true,
14    "name": "Get cast_toolchain VERSION"
15  },
16  {
17    "cmd": [
18      "python",
19      "-u",
20      "[START_DIR]/cache/work/skia/bin/fetch-gn"
21    ],
22    "cwd": "[START_DIR]/cache/work/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]/cache/work/skia/bin/gn",
33      "gen",
34      "[START_DIR]/cache/work/skia/out/Build-Debian9-GCC-arm-Release-Chromecast/Release",
35      "--args=ar=\"[START_DIR]/cast_toolchain/armv7a/bin/armv7a-cros-linux-gnueabi-ar\" cc=\"[START_DIR]/cast_toolchain/armv7a/usr/bin/clang-3.9.elf\" cxx=\"[START_DIR]/cast_toolchain/armv7a/usr/bin/clang++-3.9.elf\" extra_asmflags=[\"-target\", \"armv7a-cros-linux-gnueabi\"] extra_cflags=[\"-target\", \"armv7a-cros-linux-gnueabi\", \"--sysroot\", \"[START_DIR]/cast_toolchain/armv7a/usr/armv7a-cros-linux-gnueabi\", \"-I[START_DIR]/chromebook_arm_gles/include\", \"-DMESA_EGL_NO_X11_HEADERS\", \"-DSK_NO_COMMAND_BUFFER\", \"-Wno-error=unused-function\", \"-g0\", \"-DDUMMY_cast_toolchain_version=42\"] extra_ldflags=[\"-target\", \"armv7a-cros-linux-gnueabi\", \"--sysroot\", \"[START_DIR]/cast_toolchain/armv7a/usr/armv7a-cros-linux-gnueabi\", \"-static-libstdc++\", \"-static-libgcc\", \"-L[START_DIR]/cast_toolchain/armv7a/lib\", \"-fuse-ld=gold\", \"-B[START_DIR]/cast_toolchain/armv7a/usr/libexec/gcc\"] is_debug=false skia_enable_gpu=true skia_use_egl=true skia_use_fontconfig=false skia_use_icu=false skia_use_system_freetype2=false target_cpu=\"arm\""
36    ],
37    "cwd": "[START_DIR]/cache/work/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-Debian9-GCC-arm-Release-Chromecast/Release",
49      "nanobench",
50      "dm"
51    ],
52    "cwd": "[START_DIR]/cache/work/skia",
53    "env": {
54      "CHROME_HEADLESS": "1",
55      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
56    },
57    "name": "ninja"
58  },
59  {
60    "cmd": [
61      "python",
62      "-u",
63      "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",
64      "[START_DIR]/cache/work/skia/out/Build-Debian9-GCC-arm-Release-Chromecast/Release",
65      "[START_DIR]/[SWARM_OUT_DIR]/out/Release"
66    ],
67    "infra_step": true,
68    "name": "copy build products",
69    "~followup_annotations": [
70      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
71      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
72      "@@@STEP_LOG_LINE@python.inline@import os@@@",
73      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
74      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
75      "@@@STEP_LOG_LINE@python.inline@@@@",
76      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
77      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
78      "@@@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']@@@",
79      "@@@STEP_LOG_LINE@python.inline@@@@",
80      "@@@STEP_LOG_LINE@python.inline@try:@@@",
81      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
82      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
83      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
84      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
85      "@@@STEP_LOG_LINE@python.inline@@@@",
86      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
87      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
88      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
89      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
90      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
91      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
92      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
93      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
94      "@@@STEP_LOG_END@python.inline@@@"
95    ]
96  },
97  {
98    "jsonResult": null,
99    "name": "$result"
100  }
101]