|
| 1 | +load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target") |
| 2 | +oncall("executorch") |
1 | 3 | # add this empty BUCK file to unblock landing. Without this, we get land error: |
2 | 4 | # "No build file at xplat/executorch/exir/BUCK when resolving target fbsource//xplat/executorch/exir:." |
3 | 5 |
|
4 | | -oncall("executorch") |
| 6 | + |
| 7 | +# !!!! fbcode/executorch/exir/emit/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!! |
| 8 | + |
| 9 | +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") |
| 10 | + |
| 11 | + |
| 12 | +fbcode_target(_kind = runtime.python_library, |
| 13 | + name = "lib", |
| 14 | + srcs = [ |
| 15 | + "__init__.py", |
| 16 | + ], |
| 17 | + deps = [ |
| 18 | + ":emit", |
| 19 | + ], |
| 20 | +) |
| 21 | + |
| 22 | +fbcode_target(_kind = runtime.python_library, |
| 23 | + name = "emit", |
| 24 | + srcs = [ |
| 25 | + "_emit_program.py", |
| 26 | + "_emitter.py", |
| 27 | + ], |
| 28 | + deps = [ |
| 29 | + "fbsource//third-party/pypi/typing-extensions:typing-extensions", |
| 30 | + "//caffe2:torch", |
| 31 | + "//executorch/exir:delegate", |
| 32 | + "//executorch/exir:error", |
| 33 | + "//executorch/exir:memory", |
| 34 | + "//executorch/exir:print_program", |
| 35 | + "//executorch/exir:schema", |
| 36 | + "//executorch/exir:tensor", |
| 37 | + "//executorch/exir:types", |
| 38 | + "//executorch/exir:version", |
| 39 | + "//executorch/exir/dialects/backend:lib", |
| 40 | + "//executorch/exir/dialects/edge:lib", |
| 41 | + "//executorch/exir/operator:convert", |
| 42 | + "//executorch/exir/passes:prim_ops_py_registry", |
| 43 | + "//executorch/extension/pytree:pylib", |
| 44 | + ], |
| 45 | +) |
0 commit comments