blob: bcba97870278d66dad9d79253ec5f4cdcdbd2244 [file] [log] [blame]
Alex Perry0ea81612020-01-20 13:26:13 -08001load("@//tools/build_rules:select.bzl", "cpu_select")
2
Austin Schuh2a70f4b2016-11-25 23:05:57 -08003cc_library(
Parker Schuhd3b7a8872018-02-19 16:42:27 -08004 name = "wpilib",
5 linkstatic = True,
6 restricted_to = ["//tools:roborio"],
7 visibility = ["//visibility:public"],
8 deps = ["//frc971/wpilib/ahal"],
9)
10
11cc_library(
12 name = "wpilib_hal",
13 restricted_to = ["//tools:roborio"],
14 visibility = ["//visibility:public"],
Brian Silverman7011c452020-01-05 13:18:21 -080015 deps = ["//third_party/allwpilib:hal"],
Austin Schuhf6b94632019-02-02 22:11:27 -080016)
17
18cc_library(
19 name = "phoenix",
20 restricted_to = ["//tools:roborio"],
21 visibility = ["//visibility:public"],
22 deps = [
James Kuszmaul02eb05e2019-12-22 12:32:18 -080023 "@ctre_phoenix_api_cpp_athena//:api-cpp",
24 "@ctre_phoenix_api_cpp_headers//:api-cpp",
25 "@ctre_phoenix_cci_athena//:cci",
26 "@ctre_phoenix_cci_headers//:cci",
27 "@ctre_phoenix_diagnostics_athena//:diagnostics",
28 "@ctre_phoenix_diagnostics_headers//:diagnostics",
Austin Schuhf6b94632019-02-02 22:11:27 -080029 ],
Austin Schuh2a70f4b2016-11-25 23:05:57 -080030)
Brian Silvermand97a47c2020-01-16 00:47:53 -080031
32cc_library(
33 name = "opencv",
34 restricted_to = [
35 "//tools:k8",
36 "//tools:armhf-debian",
37 ],
38 visibility = ["//visibility:public"],
39 deps = select({
40 "//tools:cpu_k8": ["@opencv_k8//:opencv"],
41 "//tools:cpu_armhf": ["@opencv_armhf//:opencv"],
42 "//conditions:default": [],
43 }),
44)
Brian Silverman764945b2020-01-16 23:40:43 -080045
46cc_library(
Tyler Chatow60671d32020-02-26 19:49:30 -080047 name = "gstreamer",
48 restricted_to = [
49 "//tools:k8",
50 "//tools:armhf-debian",
51 ],
52 visibility = ["//visibility:public"],
53 deps = select({
54 "//tools:cpu_k8": ["@gstreamer_k8//:gstreamer"],
55 "//tools:cpu_armhf": ["@gstreamer_armhf//:gstreamer"],
56 "//conditions:default": [],
57 }),
58)
59
60cc_library(
Brian Silverman764945b2020-01-16 23:40:43 -080061 name = "halide",
62 restricted_to = [
63 "//tools:k8",
64 "//tools:armhf-debian",
65 ],
66 visibility = ["//visibility:public"],
67 deps = select({
68 "//tools:cpu_k8": ["@halide_k8//:halide"],
69 "//tools:cpu_armhf": ["@halide_armhf//:halide"],
70 "//conditions:default": [],
71 }),
72)
73
74cc_library(
75 name = "halide_gengen",
76 restricted_to = [
77 "//tools:k8",
78 "//tools:armhf-debian",
79 ],
80 visibility = ["//visibility:public"],
81 # It's the same file in either version, but we'll pick the native version
82 # to minimize the chances of needing to download the other version unnecessarily.
83 deps = select({
84 "//tools:cpu_k8": ["@halide_k8//:gengen"],
85 "//tools:cpu_armhf": ["@halide_armhf//:gengen"],
86 "//conditions:default": [],
87 }),
88)
89
90cc_library(
91 name = "halide_runtime",
92 restricted_to = [
93 "//tools:k8",
94 "//tools:armhf-debian",
95 ],
96 visibility = ["//visibility:public"],
97 # It's the same file in either version, but we'll pick the native version
98 # to minimize the chances of needing to download the other version unnecessarily.
99 deps = select({
100 "//tools:cpu_k8": ["@halide_k8//:runtime"],
101 "//tools:cpu_armhf": ["@halide_armhf//:runtime"],
102 "//conditions:default": [],
103 }),
104)
Alex Perry0ea81612020-01-20 13:26:13 -0800105
106cc_library(
107 name = "webrtc",
108 visibility = ["//visibility:public"],
109 deps = cpu_select({
110 "amd64": ["@webrtc_x64//:webrtc"],
111 "armhf": ["@webrtc_arm//:webrtc"],
112 "cortex-m": ["@webrtc_arm//:webrtc"],
113 "roborio": ["@webrtc_rio//:webrtc"],
114 }),
115)