Alex Perry | 0ea8161 | 2020-01-20 13:26:13 -0800 | [diff] [blame] | 1 | load("@//tools/build_rules:select.bzl", "cpu_select") |
| 2 | |
Austin Schuh | 2a70f4b | 2016-11-25 23:05:57 -0800 | [diff] [blame] | 3 | cc_library( |
Parker Schuh | d3b7a887 | 2018-02-19 16:42:27 -0800 | [diff] [blame] | 4 | name = "wpilib", |
| 5 | linkstatic = True, |
| 6 | restricted_to = ["//tools:roborio"], |
| 7 | visibility = ["//visibility:public"], |
| 8 | deps = ["//frc971/wpilib/ahal"], |
| 9 | ) |
| 10 | |
| 11 | cc_library( |
| 12 | name = "wpilib_hal", |
| 13 | restricted_to = ["//tools:roborio"], |
| 14 | visibility = ["//visibility:public"], |
Brian Silverman | 7011c45 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 15 | deps = ["//third_party/allwpilib:hal"], |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | cc_library( |
| 19 | name = "phoenix", |
| 20 | restricted_to = ["//tools:roborio"], |
| 21 | visibility = ["//visibility:public"], |
| 22 | deps = [ |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 23 | "@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 Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 29 | ], |
Austin Schuh | 2a70f4b | 2016-11-25 23:05:57 -0800 | [diff] [blame] | 30 | ) |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 31 | |
| 32 | cc_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 Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 45 | |
| 46 | cc_library( |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 47 | 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 | |
| 60 | cc_library( |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 61 | 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 | |
| 74 | cc_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 | |
| 90 | cc_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 Perry | 0ea8161 | 2020-01-20 13:26:13 -0800 | [diff] [blame] | 105 | |
| 106 | cc_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 | ) |