1load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_oss_build_kwargs", "runtime") 2 3def define_common_targets(): 4 """Defines targets that should be shared between fbcode and xplat. 5 6 The directory containing this targets.bzl file should also contain both 7 TARGETS and BUCK files that call this function. 8 """ 9 10 # Test driver for models with bundled inputs. 11 runtime.cxx_binary( 12 name = "example_runner", 13 srcs = [ 14 "example_runner.cpp", 15 ], 16 deps = [ 17 "//executorch/runtime/executor/test:test_backend_compiler_lib", 18 "//executorch/kernels/portable:generated_lib", 19 "//executorch/runtime/executor:program", 20 "//executorch/extension/data_loader:file_data_loader", 21 "//executorch/extension/data_loader:buffer_data_loader", 22 "//executorch/devtools/etdump:etdump_flatcc", 23 "//executorch/devtools/bundled_program:runtime", 24 ], 25 external_deps = [ 26 "gflags", 27 ], 28 define_static_target = True, 29 **get_oss_build_kwargs() 30 ) 31