3be744190740df51b303af1667e016a95e88a638
[platform/upstream/libSkiaSharp.git] /
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       "rmtree",
10       "[START_DIR]/cache/work/flutter/src/out/android_release"
11     ],
12     "cwd": "[START_DIR]/cache/work/flutter/src",
13     "infra_step": true,
14     "name": "rmtree android_release"
15   },
16   {
17     "cmd": [
18       "flutter/tools/gn",
19       "--runtime-mode=release",
20       "--android"
21     ],
22     "cwd": "[START_DIR]/cache/work/flutter/src",
23     "env": {
24       "CHROME_HEADLESS": "1",
25       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
26     },
27     "name": "gn_gen"
28   },
29   {
30     "cmd": [
31       "ninja",
32       "-C",
33       "out/android_release",
34       "-j100"
35     ],
36     "cwd": "[START_DIR]/cache/work/flutter/src",
37     "env": {
38       "CHROME_HEADLESS": "1",
39       "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
40     },
41     "name": "build_flutter"
42   },
43   {
44     "cmd": [
45       "python",
46       "-u",
47       "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', '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",
48       "[START_DIR]/cache/work/flutter/src/third_party/skia/out/Build-Debian9-GCC-x86_64-Release-Flutter_Android/Release",
49       "[START_DIR]/[SWARM_OUT_DIR]/out/Release"
50     ],
51     "infra_step": true,
52     "name": "copy build products",
53     "~followup_annotations": [
54       "@@@STEP_LOG_LINE@python.inline@import errno@@@",
55       "@@@STEP_LOG_LINE@python.inline@import glob@@@",
56       "@@@STEP_LOG_LINE@python.inline@import os@@@",
57       "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
58       "@@@STEP_LOG_LINE@python.inline@import sys@@@",
59       "@@@STEP_LOG_LINE@python.inline@@@@",
60       "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
61       "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
62       "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@",
63       "@@@STEP_LOG_LINE@python.inline@@@@",
64       "@@@STEP_LOG_LINE@python.inline@try:@@@",
65       "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
66       "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
67       "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
68       "@@@STEP_LOG_LINE@python.inline@    raise@@@",
69       "@@@STEP_LOG_LINE@python.inline@@@@",
70       "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
71       "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
72       "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
73       "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
74       "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
75       "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
76       "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
77       "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
78       "@@@STEP_LOG_END@python.inline@@@"
79     ]
80   },
81   {
82     "name": "$result",
83     "recipe_result": null,
84     "status_code": 0
85   }
86 ]