-
Notifications
You must be signed in to change notification settings - Fork 493
/
Copy pathTARGETS
69 lines (66 loc) · 2.32 KB
/
TARGETS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
load("@fbcode_macros//build_defs:cpp_python_extension.bzl", "cpp_python_extension")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
oncall("executorch")
# TODO(T157145817): Update other flatbuffer serializers to use flatc like
# _flatbuffer.py does, and remove this.
cpp_python_extension(
name = "_bindings",
srcs = [
"bindings.cpp",
],
visibility = [
"//executorch/backends/fb/qnnpack/...",
"//executorch/backends/vulkan/...",
"//executorch/backends/xnnpack/...",
"//executorch/devtools/bundled_program/...",
"//executorch/devtools/etdump/...",
],
deps = [
"fbsource//third-party/flatbuffers:flatc_library",
"fbsource//third-party/pybind11:pybind11",
],
)
# Use runtime.python_library instead of the one defined in python_library.bzl,
# so we can have access to EXECUTORCH_CLIENTS list.
runtime.python_library(
name = "lib",
srcs = [
"__init__.py",
"_cord.py",
"_dataclass.py",
"_flatbuffer.py",
"_program.py",
"_serialize.py",
"data_serializer.py",
"padding.py",
],
resources = {
"//executorch/schema:program.fbs": "program.fbs",
"//executorch/schema:scalar_type.fbs": "scalar_type.fbs",
"fbsource//third-party/flatbuffers:flatc-host": "flatbuffers-flatc",
},
# Currently serialization API should only be used in some dedicated targets,
# to avoid ODR violation when linking with another Flatbuffers library.
# Please ask before changing this.
visibility = [
"//executorch/backends/...",
"//executorch/codegen/...",
"//executorch/devtools:lib",
"//executorch/devtools/bundled_program/serialize:lib",
"//executorch/devtools/bundled_program/tests/...",
"//executorch/devtools/experimental/...",
"//executorch/examples/async_exec:emit_program_lib",
"//executorch/exir/...",
"//executorch/exir/tests/...",
"//executorch/extension/...",
"//executorch/extension/pybindings/test:test",
"//executorch/extension/pybindings/test:test-library",
"//executorch/profiler/...",
"//executorch/test/...",
"@EXECUTORCH_CLIENTS",
],
deps = [
"//executorch/exir:schema",
"//executorch/exir:tensor",
],
)