1commands: {
2 copy_before: {
3  from: "external/executorch/codegen/templates/Functions.h"
4  to: "tools/src/external/executorch/codegen/templates/Functions.h"
5 }
6 copy_before: {
7  from: "external/executorch/codegen/templates/NativeFunctions.h"
8  to: "tools/src/external/executorch/codegen/templates/NativeFunctions.h"
9 }
10 copy_before: {
11  from: "external/executorch/codegen/templates/RegisterCodegenUnboxedKernels.cpp"
12  to: "tools/src/external/executorch/codegen/templates/RegisterCodegenUnboxedKernels.cpp"
13 }
14 copy_before: {
15  from: "external/executorch/codegen/templates/RegisterDispatchDefinitions.ini"
16  to: "tools/src/external/executorch/codegen/templates/RegisterDispatchDefinitions.ini"
17 }
18 copy_before: {
19  from: "external/executorch/codegen/templates/RegisterDispatchKeyCustomOps.cpp"
20  to: "tools/src/external/executorch/codegen/templates/RegisterDispatchKeyCustomOps.cpp"
21 }
22 copy_before: {
23  from: "external/executorch/codegen/templates/RegisterKernels.cpp"
24  to: "tools/src/external/executorch/codegen/templates/RegisterKernels.cpp"
25 }
26 copy_before: {
27  from: "external/executorch/codegen/templates/RegisterKernels.h"
28  to: "tools/src/external/executorch/codegen/templates/RegisterKernels.h"
29 }
30 copy_before: {
31  from: "external/executorch/codegen/templates/RegisterSchema.cpp"
32  to: "tools/src/external/executorch/codegen/templates/RegisterSchema.cpp"
33 }
34 copy_before: {
35  from: "external/executorch/codegen/templates/aten_interned_strings.h"
36  to: "tools/src/external/executorch/codegen/templates/aten_interned_strings.h"
37 }
38 copy_before: {
39  from: "external/executorch/kernels/portable/functions.yaml"
40  to: "tools/src/external/executorch/kernels/portable/functions.yaml"
41 }
42 copy_before: {
43  from: "external/pytorch/aten/src/ATen/native/native_functions.yaml"
44  to: "tools/src/external/pytorch/aten/src/ATen/native/native_functions.yaml"
45 }
46 copy_before: {
47  from: "external/pytorch/aten/src/ATen/native/tags.yaml"
48  to: "tools/src/external/pytorch/aten/src/ATen/native/tags.yaml"
49 }
50 copy_before: {
51  from: "out/soong/.intermediates/external/pytorch/torchgen/torchgen_executorch/linux_glibc_x86_64_PY3/torchgen_executorch"
52  to: "tools/out/bin/torchgen_executorch"
53  executable: false
54 }
55 copy_before: {
56  from: "out/soong/.intermediates/external/sqlite/dist/libsqlite/linux_glibc_x86_64_shared/libsqlite.so"
57  to: "tools/out/lib64/libsqlite.so"
58  executable: false
59 }
60 copy_before: {
61  from: "out/soong/.intermediates/external/icu/icu4c/source/i18n/libicui18n/linux_glibc_x86_64_shared/libicui18n-host.so"
62  to: "tools/out/lib64/libicui18n-host.so"
63  executable: false
64 }
65 copy_before: {
66  from: "out/soong/.intermediates/external/icu/icu4c/source/common/libicuuc/linux_glibc_x86_64_shared/libicuuc-host.so"
67  to: "tools/out/lib64/libicuuc-host.so"
68  executable: false
69 }
70 copy_before: {
71  from: "out/soong/.intermediates/external/icu/icu4c/source/stubdata/icu-data_host_i18n_apex/linux_glibc_common/icudt75l.dat"
72  to: "tools/out/com.android.i18n/etc/icu/icudt75l.dat"
73  executable: false
74 }
75 copy_before: {
76  from: "out/soong/.intermediates/prebuilts/clang/host/linux-x86/libc++/linux_glibc_x86_64_shared/libc++.so"
77  to: "tools/out/lib64/libc++.so"
78  executable: false
79 }
80 chdir: true
81 command: "CC_ARCH=x86_64 CC_NATIVE_BRIDGE= CC_MULTILIB=lib64 CC_OS=linux_glibc && mkdir templates; cp __SBOX_SANDBOX_DIR__/tools/src/external/executorch/codegen/templates/RegisterCodegenUnboxedKernels.cpp __SBOX_SANDBOX_DIR__/tools/src/external/executorch/codegen/templates/RegisterDispatchKeyCustomOps.cpp __SBOX_SANDBOX_DIR__/tools/src/external/executorch/codegen/templates/RegisterKernels.cpp __SBOX_SANDBOX_DIR__/tools/src/external/executorch/codegen/templates/RegisterSchema.cpp __SBOX_SANDBOX_DIR__/tools/src/external/executorch/codegen/templates/Functions.h __SBOX_SANDBOX_DIR__/tools/src/external/executorch/codegen/templates/NativeFunctions.h __SBOX_SANDBOX_DIR__/tools/src/external/executorch/codegen/templates/RegisterKernels.h __SBOX_SANDBOX_DIR__/tools/src/external/executorch/codegen/templates/aten_interned_strings.h __SBOX_SANDBOX_DIR__/tools/src/external/executorch/codegen/templates/RegisterDispatchDefinitions.ini templates;__SBOX_SANDBOX_DIR__/tools/out/bin/torchgen_executorch --source-path=. --tags-path=__SBOX_SANDBOX_DIR__/tools/src/external/pytorch/aten/src/ATen/native/tags.yaml --aten_yaml_path=__SBOX_SANDBOX_DIR__/tools/src/external/pytorch/aten/src/ATen/native/native_functions.yaml --functions_yaml_path=__SBOX_SANDBOX_DIR__/tools/src/external/executorch/kernels/portable/functions.yaml --install_dir=__SBOX_SANDBOX_DIR__/out/"
82 copy_after: {
83  from: "out/RegisterCodegenUnboxedKernels_0.cpp"
84  to: "out/soong/.intermediates/external/executorch/executorch_portable_ops_gen_cpp/linux_glibc_x86_64/gen/RegisterCodegenUnboxedKernels_0.cpp"
85 }
86 input_hash: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
87 env: {
88  name: "PATH"
89  inherit: true
90 }
91 env: {
92  name: "JAVA_HOME"
93  inherit: true
94 }
95 env: {
96  name: "TMPDIR"
97  inherit: true
98 }
99 env: {
100  name: "RBE_log_dir"
101  inherit: true
102 }
103 env: {
104  name: "RBE_platform"
105  inherit: true
106 }
107 env: {
108  name: "RBE_server_address"
109  inherit: true
110 }
111 env: {
112  name: "RBE_exec_root"
113  inherit: true
114 }
115 env: {
116  name: "OUT_DIR"
117  value: "out"
118 }
119 dont_inherit_env: true
120}
121
122