Files
allwpilib/tools/outlineviewer/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

47 lines
1.3 KiB
Python

load("@rules_cc//cc:defs.bzl", "cc_binary")
load("//shared/bazel/rules:packaging.bzl", "package_binary_cc_project")
load("//shared/bazel/rules/gen:gen-resources.bzl", "generate_resources")
load("//shared/bazel/rules/gen:gen-version-file.bzl", "generate_version_file")
generate_resources(
name = "generate-resources",
namespace = "ov",
prefix = "OV",
resource_files = glob(["src/main/native/resources/*"]),
)
generate_version_file(
name = "generate-version",
output_file = "WPILibVersion.cpp",
template = "src/main/generate/WPILibVersion.cpp.in",
)
cc_binary(
name = "outlineviewer",
srcs = glob(["src/main/native/cpp/*"]) + [
":generate-resources",
":generate-version",
],
linkopts = select({
"@platforms//os:windows": ["-SUBSYSTEM:WINDOWS"],
"//conditions:default": [],
}),
tags = [
"wpi-cpp-gui",
],
target_compatible_with = select({
"@wpilib_toolchains//constraints/is_systemcore:systemcore": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
deps = [
"//glass",
"//glass:glassnt",
],
)
package_binary_cc_project(
name = "outlineviewer",
maven_artifact_name = "OutlineViewer",
maven_group_id = "org.wpilib.tools",
)