-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy pathTARGETS
46 lines (40 loc) · 1.04 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
# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain fbcode-only targets.
load("@fbcode_macros//build_defs:cpp_python_extension.bzl", "cpp_python_extension")
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
load(":targets.bzl", "define_common_targets")
oncall("executorch")
define_common_targets()
cpp_python_extension(
name = "pybindings",
srcs = [
"pybindings.cpp",
],
base_module = "executorch.extension.pytree",
deps = [
"fbsource//third-party/pybind11:pybind11",
":pytree",
],
)
cpp_python_extension(
name = "pybindings_debug",
srcs = [
"pybindings.cpp",
],
base_module = "executorch.extension.pytree",
deps = [
"fbsource//third-party/pybind11:pybind11",
":pytree",
],
)
python_library(
name = "pylib",
srcs = [
"__init__.py",
],
base_module = "executorch.extension.pytree",
deps = [
":pybindings",
"//caffe2:torch",
],
)