Files
allwpilib/tools/processstarter/BUILD.bazel
PJ Reiniger f8de482385 [bazel] Update toolchains to 2027-1 (#9016)
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.
2026-06-26 22:44:00 -07:00

52 lines
1.2 KiB
Python

load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("//shared/bazel/rules:objectivec_rules.bzl", "wpilib_objc_library")
load("//shared/bazel/rules:packaging.bzl", "package_binary_cc_project")
WIN_SRCS = glob([
"src/main/native/windows/**",
])
LINUX_SRCS = glob([
"src/main/native/linux/**",
])
MAC_SRCS = glob([
"src/main/native/osx/**",
])
filegroup(
name = "native-srcs",
srcs = select({
"@platforms//os:osx": MAC_SRCS,
"@platforms//os:windows": WIN_SRCS,
"@wpilib_toolchains//constraints/combined:is_linux": LINUX_SRCS,
}),
)
wpilib_objc_library(
name = "processstarter-osx",
srcs = [":native-srcs"],
)
cc_binary(
name = "processstarter",
srcs = select({
"@platforms//os:osx": [],
"//conditions:default": [":native-srcs"],
}),
linkopts = select({
"@platforms//os:windows": ["-SUBSYSTEM:WINDOWS"],
"//conditions:default": [],
}),
deps = select({
"@platforms//os:osx": ["processstarter-osx"],
"//conditions:default": [],
}),
)
package_binary_cc_project(
name = "processstarter",
maven_artifact_name = "processstarter",
maven_group_id = "org.wpilib.tools",
)