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 = "test", 12 srcs = [ 13 "test_sampler.cpp", 14 ], 15 deps = [ 16 "//executorch/extension/llm/sampler:sampler_aten", 17 ], 18 xplat_deps = [ 19 "//caffe2:torch_mobile_all_ops_et", 20 ], 21 fbcode_deps = [ 22 "//caffe2:torch-cpp", 23 ], 24 ) 25