|
| 1 | +load( |
| 2 | + "@fbsource//tools/build_defs:default_platform_defs.bzl", |
| 3 | + "ANDROID", |
| 4 | + "APPLE", |
| 5 | + "CXX", |
| 6 | + "is_apple_platform", |
| 7 | +) |
| 8 | +load("@fbsource//tools/build_defs:fbsource_utils.bzl", "is_fbcode") |
| 9 | +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") |
| 10 | +load("@fbsource//xplat/executorch/codegen:codegen.bzl", "executorch_generated_lib") |
| 11 | +load("@fbsource//xplat/executorch/extension/pybindings:pybindings.bzl", "MODELS_ATEN_OPS_ATEN_MODE_GENERATED_LIB", "MODELS_ATEN_OPS_LEAN_MODE_GENERATED_LIB") |
| 12 | + |
| 13 | +def define_common_targets(): |
| 14 | + """Defines targets that should be shared between fbcode and xplat. |
| 15 | +
|
| 16 | + The directory containing this targets.bzl file should also contain both |
| 17 | + TARGETS and BUCK files that call this function. |
| 18 | + """ |
| 19 | + |
| 20 | + runtime.cxx_binary( |
| 21 | + name = "qnn_executor_runner", |
| 22 | + srcs = ["qnn_executor_runner.cpp"], |
| 23 | + deps = [ |
| 24 | + "//executorch/runtime/executor/test:test_backend_compiler_lib", |
| 25 | + "//executorch/runtime/executor/test:test_backend_with_delegate_mapping", |
| 26 | + "//executorch/runtime/executor:program", |
| 27 | + "//executorch/devtools/etdump:etdump_flatcc", |
| 28 | + "//executorch/devtools/bundled_program:runtime", |
| 29 | + "//executorch/extension/data_loader:buffer_data_loader", |
| 30 | + "//executorch/extension/data_loader:file_data_loader", |
| 31 | + "//executorch/extension/tensor:tensor", |
| 32 | + "//executorch/extension/runner_util:inputs", |
| 33 | + "//executorch/backends/qualcomm/runtime:runtime", |
| 34 | + ], |
| 35 | + external_deps = [ |
| 36 | + "gflags", |
| 37 | + ], |
| 38 | + ) |
0 commit comments