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_win\\VERSION", 11 "/path/to/tmp/" 12 ], 13 "infra_step": true, 14 "name": "Get clang_win 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 "PATH": "<PATH>;RECIPE_REPO[depot_tools]" 30 }, 31 "infra_step": true, 32 "name": "fetch-gn" 33 }, 34 { 35 "cmd": [ 36 "[START_DIR]\\cache\\work\\skia\\bin\\gn", 37 "gen", 38 "[START_DIR]\\cache\\work\\skia\\out\\Build-Win-Clang-x86_64-Release-Dawn\\Release_x64", 39 "--args=cc=\"clang\" clang_win=\"[START_DIR]\\clang_win\" cxx=\"clang++\" extra_cflags=[\"-DPLACEHOLDER_clang_win_version=42\"] is_debug=false skia_use_dawn=true skia_use_gl=false target_cpu=\"x86_64\" werror=true win_sdk=\"[START_DIR]\\win_toolchain/win_sdk\" win_vc=\"[START_DIR]\\win_toolchain/VC\"" 40 ], 41 "cwd": "[START_DIR]\\cache\\work\\skia", 42 "env": { 43 "CHROME_HEADLESS": "1", 44 "PATH": "<PATH>;RECIPE_REPO[depot_tools]", 45 "PYTHONPATH": "[START_DIR]\\cache\\work\\skia\\third_party\\externals;%(PYTHONPATH)s" 46 }, 47 "name": "gn gen" 48 }, 49 { 50 "cmd": [ 51 "ninja", 52 "-C", 53 "[START_DIR]\\cache\\work\\skia\\out\\Build-Win-Clang-x86_64-Release-Dawn\\Release_x64" 54 ], 55 "cwd": "[START_DIR]\\cache\\work\\skia", 56 "env": { 57 "CHROME_HEADLESS": "1", 58 "PATH": "<PATH>;RECIPE_REPO[depot_tools]", 59 "PYTHONPATH": "[START_DIR]\\cache\\work\\skia\\third_party\\externals;%(PYTHONPATH)s" 60 }, 61 "name": "ninja" 62 }, 63 { 64 "cmd": [ 65 "python", 66 "-u", 67 "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', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab']\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", 68 "[START_DIR]\\cache\\work\\skia\\out\\Build-Win-Clang-x86_64-Release-Dawn\\Release_x64", 69 "[START_DIR]\\[SWARM_OUT_DIR]\\out\\Release_x64" 70 ], 71 "infra_step": true, 72 "name": "copy build products", 73 "~followup_annotations": [ 74 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 75 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 76 "@@@STEP_LOG_LINE@python.inline@import os@@@", 77 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 78 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 79 "@@@STEP_LOG_LINE@python.inline@@@@", 80 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 81 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 82 "@@@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', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skottie_tool', 'lib/*.so', 'run_testlab']@@@", 83 "@@@STEP_LOG_LINE@python.inline@@@@", 84 "@@@STEP_LOG_LINE@python.inline@try:@@@", 85 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 86 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 87 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 88 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 89 "@@@STEP_LOG_LINE@python.inline@@@@", 90 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@", 91 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 92 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 93 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 94 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 95 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 96 "@@@STEP_LOG_LINE@python.inline@ print('Copying build product %s to %s' % (f, dst_path))@@@", 97 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 98 "@@@STEP_LOG_END@python.inline@@@" 99 ] 100 }, 101 { 102 "name": "$result" 103 } 104]