1load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") 2 3oncall("executorch") 4 5# Use runtime.python_library instead of the one defined in python_library.bzl, 6# so we can have access to EXECUTORCH_CLIENTS list. 7runtime.python_library( 8 name = "lib", 9 srcs = [ 10 "__init__.py", 11 ], 12 resources = { 13 "//executorch/devtools/bundled_program/schema:bundled_program_schema.fbs": "bundled_program_schema.fbs", 14 "//executorch/devtools/bundled_program/schema:scalar_type.fbs": "scalar_type.fbs", 15 }, 16 # Currently serialization API should only be used in some dedicated targets, 17 # to avoid ODR violation when linking with another Flatbuffers library. 18 # Please ask before changing this. 19 visibility = [ 20 "//executorch/bacends/...", 21 "//executorch/backends/xnnpack/test/...", 22 "//executorch/codegen/...", 23 "//executorch/devtools/bundled_program/tests/...", 24 "//executorch/examples/async_exec:emit_program_lib", 25 "//executorch/exir:lib", 26 "//executorch/extension/pybindings/test:test", 27 "//executorch/extension/pybindings/test:test-library", 28 "//executorch/profiler/...", 29 "//executorch/test/...", 30 "@EXECUTORCH_CLIENTS", 31 ], 32 deps = [ 33 "fbsource//third-party/pypi/setuptools:setuptools", 34 "//executorch/devtools/bundled_program/schema:bundled_program_schema_py", 35 "//executorch/exir/_serialize:lib", 36 ], 37) 38