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 | ], |
| 46 | target_compatible_with = ["//tools/platforms/hardware:roborio"], |
| 47 | visibility = ["//visibility:public"], |
| 48 | deps = [ |
Maxwell Henderson | fcc0d12 | 2023-08-05 17:03:34 -0700 | [diff] [blame] | 49 | "@ctre_phoenix6_api_cpp_athena//:api-cpp", |
| 50 | "@ctre_phoenix6_api_cpp_headers//:api-cpp", |
| 51 | "@ctre_phoenix6_tools_athena//:tools", |
| 52 | "@ctre_phoenix6_tools_headers//:tools", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 53 | ], |
Austin Schuh | 2a70f4b | 2016-11-25 23:05:57 -0800 | [diff] [blame] | 54 | ) |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 55 | |
| 56 | cc_library( |
| 57 | name = "opencv", |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 58 | visibility = ["//visibility:public"], |
| 59 | deps = select({ |
| 60 | "//tools:cpu_k8": ["@opencv_k8//:opencv"], |
Austin Schuh | bffbe8b | 2023-11-22 21:32:05 -0800 | [diff] [blame] | 61 | "//tools:cpu_arm64": ["@arm64_debian_sysroot//:opencv4"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 62 | "//conditions:default": [":unavailable"], |
Brian Silverman | d97a47c | 2020-01-16 00:47:53 -0800 | [diff] [blame] | 63 | }), |
| 64 | ) |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 65 | |
| 66 | cc_library( |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 67 | name = "gstreamer", |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 68 | visibility = ["//visibility:public"], |
| 69 | deps = select({ |
| 70 | "//tools:cpu_k8": ["@gstreamer_k8//:gstreamer"], |
Austin Schuh | f5dbe2c | 2024-04-06 16:10:24 -0700 | [diff] [blame] | 71 | "//tools:cpu_arm64": [ |
| 72 | "@arm64_debian_sysroot//:gstreamer-1.0", |
| 73 | "@arm64_debian_sysroot//:gstreamer-app-1.0", |
| 74 | "@arm64_debian_sysroot//:gstreamer-webrtc-1.0", |
| 75 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 76 | "//conditions:default": [":unavailable"], |
Tyler Chatow | 60671d3 | 2020-02-26 19:49:30 -0800 | [diff] [blame] | 77 | }), |
| 78 | ) |
| 79 | |
| 80 | cc_library( |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 81 | name = "halide", |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 82 | visibility = ["//visibility:public"], |
| 83 | deps = select({ |
| 84 | "//tools:cpu_k8": ["@halide_k8//:halide"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 85 | "//conditions:default": [":unavailable"], |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 86 | }), |
| 87 | ) |
| 88 | |
| 89 | cc_library( |
| 90 | name = "halide_gengen", |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 91 | visibility = ["//visibility:public"], |
| 92 | # It's the same file in either version, but we'll pick the native version |
| 93 | # to minimize the chances of needing to download the other version unnecessarily. |
| 94 | deps = select({ |
| 95 | "//tools:cpu_k8": ["@halide_k8//:gengen"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 96 | "//conditions:default": [":unavailable"], |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 97 | }), |
| 98 | ) |
| 99 | |
| 100 | cc_library( |
| 101 | name = "halide_runtime", |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 102 | visibility = ["//visibility:public"], |
| 103 | # It's the same file in either version, but we'll pick the native version |
| 104 | # to minimize the chances of needing to download the other version unnecessarily. |
| 105 | deps = select({ |
| 106 | "//tools:cpu_k8": ["@halide_k8//:runtime"], |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 107 | "//tools:cpu_arm64": ["@halide_arm64//:runtime"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 108 | "//conditions:default": [":unavailable"], |
Brian Silverman | 764945b | 2020-01-16 23:40:43 -0800 | [diff] [blame] | 109 | }), |
| 110 | ) |
Alex Perry | 0ea8161 | 2020-01-20 13:26:13 -0800 | [diff] [blame] | 111 | |
| 112 | cc_library( |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 113 | name = "lzma", |
| 114 | visibility = ["//visibility:public"], |
| 115 | deps = select({ |
| 116 | "//tools:cpu_k8": ["@lzma_amd64//:lib"], |
Philipp Schrader | f1bbf34 | 2022-02-05 14:30:15 -0800 | [diff] [blame] | 117 | "//tools:cpu_arm64": ["@lzma_arm64//:lib"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 118 | "//conditions:default": [":unavailable"], |
Brian Silverman | f59fe3f | 2020-09-22 21:04:09 -0700 | [diff] [blame] | 119 | }), |
| 120 | ) |
Austin Schuh | ae856ca | 2023-11-18 14:04:00 -0800 | [diff] [blame] | 121 | |
| 122 | cc_library( |
| 123 | name = "cudart", |
| 124 | visibility = ["//visibility:public"], |
| 125 | deps = select({ |
| 126 | "//tools:cpu_k8": ["@amd64_debian_sysroot//:cudart"], |
| 127 | "//tools:cpu_arm64": ["@arm64_debian_sysroot//:cudart"], |
| 128 | "//conditions:default": [":unavailable"], |
| 129 | }), |
| 130 | ) |
| 131 | |
| 132 | cc_library( |
| 133 | name = "nppi", |
| 134 | visibility = ["//visibility:public"], |
| 135 | deps = select({ |
| 136 | "//tools:cpu_k8": ["@amd64_debian_sysroot//:nppi"], |
| 137 | "//tools:cpu_arm64": ["@arm64_debian_sysroot//:nppi"], |
| 138 | "//conditions:default": [":unavailable"], |
| 139 | }), |
| 140 | ) |