mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
This updates to the 2027-1 toolchains. This also is the first version with the `rules_bzlmodrio_toolchains -> wpilib_toolchains` rename, so the surface area of the change is a little bit big. The opencv dep has bzlmod'ified as part of this as well.
29 lines
1.4 KiB
Python
29 lines
1.4 KiB
Python
load("@rules_cc//cc:defs.bzl", "cc_import")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
cc_import(
|
|
name = "libssh",
|
|
linkopts = select({
|
|
"@platforms//os:windows": [
|
|
"-DEFAULTLIB:Iphlpapi.lib",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
static_library = select({
|
|
"@wpilib_toolchains//conditions:linux_x86_64": "@libssh_linuxx86-64static//:static_libs",
|
|
"@wpilib_toolchains//conditions:linux_x86_64_debug": "@libssh_linuxx86-64staticdebug//:static_libs",
|
|
"@wpilib_toolchains//conditions:osx": "@libssh_osxuniversalstatic//:static_libs",
|
|
"@wpilib_toolchains//conditions:osx_debug": "@libssh_osxuniversalstaticdebug//:static_libs",
|
|
"@wpilib_toolchains//conditions:windows_arm64": "@libssh_windowsarm64static//:static_libs",
|
|
"@wpilib_toolchains//conditions:windows_arm64_debug": "@libssh_windowsarm64staticdebug//:static_libs",
|
|
"@wpilib_toolchains//conditions:windows_x86_64": "@libssh_windowsx86-64static//:static_libs",
|
|
"@wpilib_toolchains//conditions:windows_x86_64_debug": "@libssh_windowsx86-64staticdebug//:static_libs",
|
|
"@wpilib_toolchains//constraints/is_trixie64:trixie64": "@libssh_linuxarm64static//:static_libs",
|
|
"@wpilib_toolchains//constraints/is_trixie64:trixie64_debug": "@libssh_linuxarm64staticdebug//:static_libs",
|
|
}),
|
|
deps = [
|
|
"@libssh_headers//:headers",
|
|
],
|
|
)
|