1load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "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 runtime.cxx_library( 11 name = "aten_bridge", 12 srcs = ["aten_bridge.cpp"], 13 exported_headers = ["aten_bridge.h", "make_aten_functor_from_et_functor.h"], 14 compiler_flags = [ 15 "-frtti", 16 "-fno-omit-frame-pointer", 17 "-fexceptions", 18 "-Wno-error", 19 "-Wno-unused-local-typedef", 20 "-Wno-self-assign-overloaded", 21 "-Wno-global-constructors", 22 "-Wno-unused-function", 23 ], 24 visibility = [ 25 "//executorch/...", 26 "@EXECUTORCH_CLIENTS", 27 ], 28 exported_deps = [ 29 "//executorch/extension/kernel_util:kernel_util", 30 "//executorch/extension/tensor:tensor", 31 "//executorch/runtime/core:core", 32 "//executorch/runtime/core:evalue", 33 "//executorch/runtime/core/exec_aten:lib", 34 ], 35 external_deps = [ 36 "torch-core-cpp", 37 ], 38 ) 39