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 if not runtime.is_oss: 11 runtime.python_library( 12 name = "python_profiler", 13 srcs = [ 14 "python_profiler.py", 15 ], 16 deps = [ 17 "fbsource//third-party/pypi/snakeviz:snakeviz", 18 "fbsource//third-party/pypi/tornado:tornado", 19 ], 20 visibility = ["@EXECUTORCH_CLIENTS"], 21 _is_external_target = True, 22 ) 23