1[ 2 { 3 "cmd": [ 4 "vpython", 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 "~followup_annotations": [ 16 "@@@STEP_LOG_LINE@VERSION@42@@@", 17 "@@@STEP_LOG_END@VERSION@@@" 18 ] 19 }, 20 { 21 "cmd": [ 22 "python", 23 "-u", 24 "[START_DIR]/cache/work/skia/bin/fetch-gn" 25 ], 26 "cwd": "[START_DIR]/cache/work/skia", 27 "env": { 28 "CHROME_HEADLESS": "1", 29 "LD_LIBRARY_PATH": "[START_DIR]/armhf_sysroot/lib", 30 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 31 }, 32 "infra_step": true, 33 "name": "fetch-gn" 34 }, 35 { 36 "cmd": [ 37 "[START_DIR]/cache/work/skia/bin/gn", 38 "gen", 39 "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-arm-Release-Chromebook_GLES/Release", 40 "--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++/6\",\"-I[START_DIR]/armhf_sysroot/include/c++/6/arm-linux-gnueabihf\",\"-DMESA_EGL_NO_X11_HEADERS\",\"-U_GLIBCXX_DEBUG\",\"-DREBUILD_IF_CHANGED_clang_linux_version=42\"] extra_ldflags=[\"--target=armv7a-linux-gnueabihf\",\"--sysroot=[START_DIR]/armhf_sysroot\",\"-static-libstdc++\",\"-static-libgcc\",\"-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\" werror=true" 41 ], 42 "cwd": "[START_DIR]/cache/work/skia", 43 "env": { 44 "CHROME_HEADLESS": "1", 45 "LD_LIBRARY_PATH": "[START_DIR]/armhf_sysroot/lib", 46 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 47 }, 48 "name": "gn gen" 49 }, 50 { 51 "cmd": [ 52 "ninja", 53 "-C", 54 "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-arm-Release-Chromebook_GLES/Release", 55 "nanobench", 56 "dm" 57 ], 58 "cwd": "[START_DIR]/cache/work/skia", 59 "env": { 60 "CHROME_HEADLESS": "1", 61 "LD_LIBRARY_PATH": "[START_DIR]/armhf_sysroot/lib", 62 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 63 }, 64 "name": "ninja" 65 }, 66 { 67 "cmd": [ 68 "python", 69 "-u", 70 "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", 71 "[START_DIR]/cache/work/skia/out/Build-Debian10-Clang-arm-Release-Chromebook_GLES/Release", 72 "[START_DIR]/[SWARM_OUT_DIR]/out/Release" 73 ], 74 "infra_step": true, 75 "name": "copy build products", 76 "~followup_annotations": [ 77 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 78 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 79 "@@@STEP_LOG_LINE@python.inline@import os@@@", 80 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 81 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 82 "@@@STEP_LOG_LINE@python.inline@@@@", 83 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 84 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 85 "@@@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']@@@", 86 "@@@STEP_LOG_LINE@python.inline@@@@", 87 "@@@STEP_LOG_LINE@python.inline@try:@@@", 88 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 89 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 90 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 91 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 92 "@@@STEP_LOG_LINE@python.inline@@@@", 93 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@", 94 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 95 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 96 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 97 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 98 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 99 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 100 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 101 "@@@STEP_LOG_END@python.inline@@@" 102 ] 103 }, 104 { 105 "name": "$result" 106 } 107]