Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 1 | # Incompatible library in case one isn't available for a specific architecture. |
| 2 | cc_library( |
| 3 | name = "unavailable", |
| 4 | target_compatible_with = ["@platforms//:incompatible"], |
| 5 | ) |
| 6 | |
Austin Schuh | 2a70f4b | 2016-11-25 23:05:57 -0800 | [diff] [blame] | 7 | cc_library( |
Parker Schuh | d3b7a887 | 2018-02-19 16:42:27 -0800 | [diff] [blame] | 8 | name = "wpilib", |
| 9 | linkstatic = True, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 10 | target_compatible_with = ["//tools/platforms/hardware:roborio"], |
Parker Schuh | d3b7a887 | 2018-02-19 16:42:27 -0800 | [diff] [blame] | 11 | visibility = ["//visibility:public"], |
| 12 | deps = ["//frc971/wpilib/ahal"], |
| 13 | ) |
| 14 | |
| 15 | cc_library( |
| 16 | name = "wpilib_hal", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 17 | target_compatible_with = ["//tools/platforms/hardware:roborio"], |
Parker Schuh | d3b7a887 | 2018-02-19 16:42:27 -0800 | [diff] [blame] | 18 | visibility = ["//visibility:public"], |
Brian Silverman | 7011c45 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 19 | deps = ["//third_party/allwpilib:hal"], |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 20 | ) |
| 21 | |
| 22 | cc_library( |
| 23 | name = "phoenix", |
Austin Schuh | f23a05a | 2022-02-24 18:11:23 -0800 | [diff] [blame] | 24 | linkopts = [ |
| 25 | "-Wl,-rpath", |
| 26 | "-Wl,.", |
| 27 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 28 | target_compatible_with = ["//tools/platforms/hardware:roborio"], |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 29 | visibility = ["//visibility:public"], |
| 30 | deps = [ |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 31 | "@ctre_phoenix6_tools_athena//:tools", |
| 32 | "@ctre_phoenix6_tools_headers//:tools", |
James Kuszmaul | 02eb05e | 2019-12-22 12:32:18 -0800 | [diff] [blame] | 33 | "@ctre_phoenix_api_cpp_athena//:api-cpp", |
| 34 | "@ctre_phoenix_api_cpp_headers//:api-cpp", |
| 35 | "@ctre_phoenix_cci_athena//:cci", |
| 36 | "@ctre_phoenix_cci_headers//:cci", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 37 | ], |
| 38 | ) |
| 39 | |
| 40 | cc_library( |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 41 | name = "phoenix6", |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 42 | linkopts = [ |
| 43 | "-Wl,-rpath", |
| 44 | "-Wl,.", |
| 45 | ], |
James Kuszmaul | 9776b39 | 2023-01-14 14:08:08 -0800 | [diff] [blame] | 46 | visibility = ["//visibility:public"], |
Maxwell Henderson | 8108e99 | 2024-05-07 22:00:22 -0700 | [diff] [blame^] | 47 | deps = select({ |
| 48 | "//tools/platforms/hardware:roborio": [ |
| 49 | "@ctre_phoenix6_api_cpp_headers//:api-cpp", |
| 50 | "@ctre_phoenix6_api_cpp_athena//:api-cpp", |
| 51 | "@ctre_phoenix6_tools_athena//:tools", |
| 52 | "@ctre_phoenix6_tools_headers//:tools", |
| 53 | "//third_party:wpilib" |
| 54 | ], |
| 55 | "@platforms//cpu:arm64": [ |
| 56 | "@ctre_phoenix6_arm64//:headers", |
| 57 | "@ctre_phoenix6_arm64//:shared_libraries_lib", |
| 58 | ], |
| 59 | "//conditions:default": [":unavailable"], |
| 60 | }), |
Austin Schuh | 2a70f4b | 2016-11-25 23:05:57 -0800 | [diff] [blame] | 61 | ) |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 62 | |
| 63 | cc_library( |
| 64 | name = "opencv", |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 65 | visibility = ["//visibility:public"], |
| 66 | deps = select({ |
| 67 | "//tools:cpu_k8": ["@opencv_k8//:opencv"], |
Austin Schuh | bffbe8b | 2023-11-22 21:32:05 -0800 | [diff] [blame] | 68 | "//tools:cpu_arm64": ["@arm64_debian_sysroot//:opencv4"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 69 | "//conditions:default": [":unavailable"], |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 70 | }), |
| 71 | ) |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 72 | |
| 73 | cc_library( |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 74 | name = "gstreamer", |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 75 | visibility = ["//visibility:public"], |
| 76 | deps = select({ |
| 77 | "//tools:cpu_k8": ["@gstreamer_k8//:gstreamer"], |
Austin Schuh | f5dbe2c | 2024-04-06 16:10:24 -0700 | [diff] [blame] | 78 | "//tools:cpu_arm64": [ |
| 79 | "@arm64_debian_sysroot//:gstreamer-1.0", |
| 80 | "@arm64_debian_sysroot//:gstreamer-app-1.0", |
| 81 | "@arm64_debian_sysroot//:gstreamer-webrtc-1.0", |
| 82 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 83 | "//conditions:default": [":unavailable"], |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 84 | }), |
| 85 | ) |
| 86 | |
| 87 | cc_library( |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 88 | name = "halide", |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 89 | visibility = ["//visibility:public"], |
| 90 | deps = select({ |
| 91 | "//tools:cpu_k8": ["@halide_k8//:halide"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 92 | "//conditions:default": [":unavailable"], |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 93 | }), |
| 94 | ) |
| 95 | |
| 96 | cc_library( |
| 97 | name = "halide_gengen", |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 98 | visibility = ["//visibility:public"], |
| 99 | # It's the same file in either version, but we'll pick the native version |
| 100 | # to minimize the chances of needing to download the other version unnecessarily. |
| 101 | deps = select({ |
| 102 | "//tools:cpu_k8": ["@halide_k8//:gengen"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 103 | "//conditions:default": [":unavailable"], |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 104 | }), |
| 105 | ) |
| 106 | |
| 107 | cc_library( |
| 108 | name = "halide_runtime", |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 109 | visibility = ["//visibility:public"], |
| 110 | # It's the same file in either version, but we'll pick the native version |
| 111 | # to minimize the chances of needing to download the other version unnecessarily. |
| 112 | deps = select({ |
| 113 | "//tools:cpu_k8": ["@halide_k8//:runtime"], |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 114 | "//tools:cpu_arm64": ["@halide_arm64//:runtime"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 115 | "//conditions:default": [":unavailable"], |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 116 | }), |
| 117 | ) |
Alex Perry | 0ea8161 | 2020-01-20 13:26:13 -0800 | [diff] [blame] | 118 | |
| 119 | cc_library( |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 120 | name = "lzma", |
| 121 | visibility = ["//visibility:public"], |
| 122 | deps = select({ |
| 123 | "//tools:cpu_k8": ["@lzma_amd64//:lib"], |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 124 | "//tools:cpu_arm64": ["@lzma_arm64//:lib"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 125 | "//conditions:default": [":unavailable"], |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 126 | }), |
| 127 | ) |
Austin Schuh | ae856ca | 2023-11-18 14:04:00 -0800 | [diff] [blame] | 128 | |
| 129 | cc_library( |
| 130 | name = "cudart", |
| 131 | visibility = ["//visibility:public"], |
| 132 | deps = select({ |
| 133 | "//tools:cpu_k8": ["@amd64_debian_sysroot//:cudart"], |
| 134 | "//tools:cpu_arm64": ["@arm64_debian_sysroot//:cudart"], |
| 135 | "//conditions:default": [":unavailable"], |
| 136 | }), |
| 137 | ) |
| 138 | |
| 139 | cc_library( |
| 140 | name = "nppi", |
| 141 | visibility = ["//visibility:public"], |
| 142 | deps = select({ |
| 143 | "//tools:cpu_k8": ["@amd64_debian_sysroot//:nppi"], |
| 144 | "//tools:cpu_arm64": ["@arm64_debian_sysroot//:nppi"], |
| 145 | "//conditions:default": [":unavailable"], |
| 146 | }), |
| 147 | ) |