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 for aten_mode in (True, False): 11 aten_suffix = ("_aten" if aten_mode else "") 12 13 runtime.cxx_library( 14 name = "print_evalue" + aten_suffix, 15 srcs = ["print_evalue.cpp"], 16 exported_headers = ["print_evalue.h"], 17 visibility = ["@EXECUTORCH_CLIENTS"], 18 exported_deps = [ 19 "//executorch/runtime/core:evalue" + aten_suffix, 20 ], 21 deps = [ 22 "//executorch/runtime/core/exec_aten/util:scalar_type_util" + aten_suffix, 23 ], 24 ) 25