forked from dusty-nv/jetson-inference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
48 lines (41 loc) · 1.08 KB
/
BUILD
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
licenses(["restricted"])
config_setting(
name = "arm_build",
values = {"cpu": "aarch64"},
)
config_setting(
name = "x86_build",
values = {"cpu": "x86"},
)
cc_import(
name = "jetson-inference-x86",
shared_library = "x86_64/lib/libjetson-inference.so",
visibility = ["//visibility:public"],
)
cc_import(
name = "jetson-utils-x86",
shared_library = "x86_64/lib/libjetson-utils.so",
visibility = ["//visibility:public"],
)
cc_import(
name = "jetson-inference-arm",
shared_library = "libtest.so",
visibility = ["//visibility:public"],
)
cc_import(
name = "jetson-utils-arm",
shared_library = "aarch64/lib/libjetson-utils.so",
visibility = ["//visibility:public"],
)
cc_library(
name = "jetson",
hdrs = glob(["*.h", "utils/*.h", "utils/cuda/*.h"]),
includes = ["utils/", "utils/cuda/", "."],
data = glob(["data/**"]),
deps = select({
":arm_build": [":jetson-inference-arm", ":jetson-utils-arm"],
":x86_build": [":jetson-inference-x86", ":jetson-utils-x86"],
"//conditions:default": [":jetson-inference-x86", ":jetson-utils-x86"],
}),
visibility = ["//visibility:public"],
)