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 runtime.cxx_test( 10 name = "test_tiktoken", 11 srcs = [ 12 "test_tiktoken.cpp", 13 ], 14 deps = [ 15 "//executorch/examples/models/llama/tokenizer:tiktoken", 16 ], 17 env = { 18 "RESOURCES_PATH": "$(location :resources)/resources", 19 }, 20 ) 21 22 runtime.filegroup( 23 name = "resources", 24 srcs = native.glob([ 25 "resources/**", 26 ]), 27 ) 28