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_test( 11 name = "ivalue_util_test", 12 srcs = ["ivalue_util_test.cpp"], 13 deps = ["//executorch/extension/pytree/aten_util:ivalue_util"], 14 fbcode_deps = [ 15 "//caffe2:torch-cpp", 16 ], 17 xplat_deps = [ 18 "//xplat/caffe2:torch_mobile_all_ops_et", 19 ], 20 ) 21