|
4 | 4 | # This source code is licensed under the BSD-style license found in the |
5 | 5 | # LICENSE file in the root directory of this source tree. |
6 | 6 |
|
| 7 | +load("@fbcode_macros//build_defs:export_files.bzl", "export_file") |
7 | 8 | load("@fbcode_macros//build_defs:python_library.bzl", "python_library") |
| 9 | +load( |
| 10 | + "@fbsource//tools/build_defs:default_platform_defs.bzl", |
| 11 | + "CXX", |
| 12 | +) |
| 13 | +load("@fbsource//xplat/executorch/codegen:codegen.bzl", "executorch_generated_lib") |
8 | 14 |
|
9 | 15 | oncall("odai_jarvis") |
10 | 16 |
|
@@ -53,3 +59,19 @@ python_library( |
53 | 59 | "//executorch/exir/passes:spec_prop_pass", |
54 | 60 | ], |
55 | 61 | ) |
| 62 | + |
| 63 | +export_file(name = "functions.yaml") |
| 64 | + |
| 65 | +executorch_generated_lib( |
| 66 | + name = "cadence_aot_lib", |
| 67 | + custom_ops_yaml_target = "//executorch/kernels/portable:custom_ops.yaml", |
| 68 | + functions_yaml_target = ":functions.yaml", |
| 69 | + platforms = CXX, |
| 70 | + visibility = ["PUBLIC"], |
| 71 | + deps = [ |
| 72 | + "//executorch/backends/cadence/reference/kernels:cadence_kernels", |
| 73 | + "//executorch/backends/cadence/reference/operators:cadence_cpu_ops", |
| 74 | + "//executorch/kernels/portable:executorch_all_ops", |
| 75 | + "//executorch/kernels/portable:operators", |
| 76 | + ], |
| 77 | +) |
0 commit comments