blob: 13f015eb3d2b07de42a3524d7cd96dc56560db82 [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(
47 name = "halide",
48 restricted_to = [
49 "//tools:k8",
50 "//tools:armhf-debian",
51 ],
52 visibility = ["//visibility:public"],
53 deps = select({
54 "//tools:cpu_k8": ["@halide_k8//:halide"],
55 "//tools:cpu_armhf": ["@halide_armhf//:halide"],
56 "//conditions:default": [],
57 }),
58)
59
60cc_library(
61 name = "halide_gengen",
62 restricted_to = [
63 "//tools:k8",
64 "//tools:armhf-debian",
65 ],
66 visibility = ["//visibility:public"],
67 # It's the same file in either version, but we'll pick the native version
68 # to minimize the chances of needing to download the other version unnecessarily.
69 deps = select({
70 "//tools:cpu_k8": ["@halide_k8//:gengen"],
71 "//tools:cpu_armhf": ["@halide_armhf//:gengen"],
72 "//conditions:default": [],
73 }),
74)
75
76cc_library(
77 name = "halide_runtime",
78 restricted_to = [
79 "//tools:k8",
80 "//tools:armhf-debian",
81 ],
82 visibility = ["//visibility:public"],
83 # It's the same file in either version, but we'll pick the native version
84 # to minimize the chances of needing to download the other version unnecessarily.
85 deps = select({
86 "//tools:cpu_k8": ["@halide_k8//:runtime"],
87 "//tools:cpu_armhf": ["@halide_armhf//:runtime"],
88 "//conditions:default": [],
89 }),
90)
Alex Perry0ea81612020-01-20 13:26:13 -080091
92cc_library(
93 name = "webrtc",
94 visibility = ["//visibility:public"],
95 deps = cpu_select({
96 "amd64": ["@webrtc_x64//:webrtc"],
97 "armhf": ["@webrtc_arm//:webrtc"],
98 "cortex-m": ["@webrtc_arm//:webrtc"],
99 "roborio": ["@webrtc_rio//:webrtc"],
100 }),
101)
102