1load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") 2load(":targets.bzl", "define_common_targets") 3 4oncall("executorch") 5 6define_common_targets() 7 8runtime.python_library( 9 name = "xnnpack_schema", 10 srcs = [ 11 "xnnpack_graph_schema.py", 12 ], 13 visibility = [ 14 "//executorch/...", 15 "@EXECUTORCH_CLIENTS", 16 ], 17) 18 19runtime.python_library( 20 name = "xnnpack_serializer", 21 srcs = [ 22 "xnnpack_graph_serialize.py", 23 ], 24 resources = [ 25 "schema.fbs", 26 ], 27 visibility = [ 28 "//executorch/...", 29 "@EXECUTORCH_CLIENTS", 30 ], 31 deps = [ 32 ":xnnpack_schema", 33 "//executorch/exir/_serialize:lib", 34 ], 35) 36