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/clang_linux/VERSION", 11 "/path/to/tmp/" 12 ], 13 "infra_step": true, 14 "name": "Get clang_linux 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 "LD_LIBRARY_PATH": "[START_DIR]/armhf_sysroot/lib", 26 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 27 }, 28 "infra_step": true, 29 "name": "fetch-gn" 30 }, 31 { 32 "cmd": [ 33 "[START_DIR]/cache/work/skia/bin/gn", 34 "gen", 35 "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Chromebook_GLES/Release", 36 "--args=cc=\"[START_DIR]/clang_linux/bin/clang\" cxx=\"[START_DIR]/clang_linux/bin/clang++\" extra_asmflags=[\"--target=armv7a-linux-gnueabihf\", \"--sysroot=[START_DIR]/armhf_sysroot\", \"-march=armv7-a\", \"-mfpu=neon\", \"-mthumb\"] extra_cflags=[\"--target=armv7a-linux-gnueabihf\", \"--sysroot=[START_DIR]/armhf_sysroot\", \"-I[START_DIR]/chromebook_arm_gles/include\", \"-I[START_DIR]/armhf_sysroot/include\", \"-I[START_DIR]/armhf_sysroot/include/c++/4.8.4\", \"-I[START_DIR]/armhf_sysroot/include/c++/4.8.4/arm-linux-gnueabihf\", \"-DMESA_EGL_NO_X11_HEADERS\", \"-U_GLIBCXX_DEBUG\", \"-DDUMMY_clang_linux_version=42\"] extra_ldflags=[\"--target=armv7a-linux-gnueabihf\", \"--sysroot=[START_DIR]/armhf_sysroot\", \"-B[START_DIR]/armhf_sysroot/bin\", \"-B[START_DIR]/armhf_sysroot/gcc-cross\", \"-L[START_DIR]/armhf_sysroot/gcc-cross\", \"-L[START_DIR]/armhf_sysroot/lib\", \"-L[START_DIR]/chromebook_arm_gles/lib\"] is_debug=false skia_use_egl=true skia_use_fontconfig=false skia_use_system_freetype2=false target_cpu=\"arm\"" 37 ], 38 "cwd": "[START_DIR]/cache/work/skia", 39 "env": { 40 "CHROME_HEADLESS": "1", 41 "LD_LIBRARY_PATH": "[START_DIR]/armhf_sysroot/lib", 42 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 43 }, 44 "name": "gn gen" 45 }, 46 { 47 "cmd": [ 48 "ninja", 49 "-C", 50 "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Chromebook_GLES/Release", 51 "nanobench", 52 "dm" 53 ], 54 "cwd": "[START_DIR]/cache/work/skia", 55 "env": { 56 "CHROME_HEADLESS": "1", 57 "LD_LIBRARY_PATH": "[START_DIR]/armhf_sysroot/lib", 58 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 59 }, 60 "name": "ninja" 61 }, 62 { 63 "cmd": [ 64 "python", 65 "-u", 66 "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', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.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", 67 "[START_DIR]/cache/work/skia/out/Build-Debian9-Clang-arm-Release-Chromebook_GLES/Release", 68 "[START_DIR]/[SWARM_OUT_DIR]/out/Release" 69 ], 70 "infra_step": true, 71 "name": "copy build products", 72 "~followup_annotations": [ 73 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 74 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 75 "@@@STEP_LOG_LINE@python.inline@import os@@@", 76 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 77 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 78 "@@@STEP_LOG_LINE@python.inline@@@@", 79 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 80 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 81 "@@@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', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@", 82 "@@@STEP_LOG_LINE@python.inline@@@@", 83 "@@@STEP_LOG_LINE@python.inline@try:@@@", 84 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 85 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 86 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 87 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 88 "@@@STEP_LOG_LINE@python.inline@@@@", 89 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@", 90 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 91 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 92 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 93 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 94 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 95 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 96 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 97 "@@@STEP_LOG_END@python.inline@@@" 98 ] 99 }, 100 { 101 "jsonResult": null, 102 "name": "$result" 103 } 104]