xref: /aosp_15_r20/external/executorch/exir/serde/TARGETS (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1*523fa7a6SAndroid Build Coastguard Workerload("@fbcode_macros//build_defs:python_library.bzl", "python_library")
2*523fa7a6SAndroid Build Coastguard Worker
3*523fa7a6SAndroid Build Coastguard Workeroncall("executorch")
4*523fa7a6SAndroid Build Coastguard Worker
5*523fa7a6SAndroid Build Coastguard Workerpython_library(
6*523fa7a6SAndroid Build Coastguard Worker    # @autodeps-skip for some reason autodeps thinks this target
7*523fa7a6SAndroid Build Coastguard Worker    # needs to depend on exir:lib which it doesn't.
8*523fa7a6SAndroid Build Coastguard Worker    name = "serialize",
9*523fa7a6SAndroid Build Coastguard Worker    srcs = [
10*523fa7a6SAndroid Build Coastguard Worker        "export_serialize.py",
11*523fa7a6SAndroid Build Coastguard Worker        "schema.py",
12*523fa7a6SAndroid Build Coastguard Worker        "schema_check.py",
13*523fa7a6SAndroid Build Coastguard Worker        "serialize.py",
14*523fa7a6SAndroid Build Coastguard Worker        "union.py",
15*523fa7a6SAndroid Build Coastguard Worker        "upgrade.py",
16*523fa7a6SAndroid Build Coastguard Worker    ],
17*523fa7a6SAndroid Build Coastguard Worker    deps = [
18*523fa7a6SAndroid Build Coastguard Worker        "fbsource//third-party/pypi/sympy:sympy",
19*523fa7a6SAndroid Build Coastguard Worker        "//caffe2:torch",
20*523fa7a6SAndroid Build Coastguard Worker        "//executorch/exir:delegate",
21*523fa7a6SAndroid Build Coastguard Worker        "//executorch/exir:lowered_backend_module",
22*523fa7a6SAndroid Build Coastguard Worker        "//executorch/exir:memory",
23*523fa7a6SAndroid Build Coastguard Worker        "//executorch/exir/backend:compile_spec_schema",
24*523fa7a6SAndroid Build Coastguard Worker        "//executorch/exir/dialects:lib",
25*523fa7a6SAndroid Build Coastguard Worker        "//executorch/exir/dialects/backend:lib",
26*523fa7a6SAndroid Build Coastguard Worker        "//executorch/exir/dialects/edge:lib",
27*523fa7a6SAndroid Build Coastguard Worker    ],
28*523fa7a6SAndroid Build Coastguard Worker)
29