Files
allwpilib/thirdparty/googletest/BUILD.bazel
PJ Reiniger c6f54e963c [build] Fixup maven publishing (#8753)
This primarily fixes up the bazel publishing to match the gradle
publishing again, as some new libraries were added but not hooked up to
the maven publishing.

During the process, I noticed that the 3rd party libraries (googletest,
catch2, and imgui_suite) were still getting published on the old
`edu.wpi` namespace. I tried to clean up all the other references to
that that I could. Note: opencv and libssh are handled outside
`allwpilib` so they need to be updated separately.
2026-04-11 13:52:43 -07:00

33 lines
937 B
Python

load("//shared/bazel/rules:cc_rules.bzl", "wpilib_cc_library", "wpilib_cc_static_library")
load("//shared/bazel/rules:packaging.bzl", "package_static_cc_project")
wpilib_cc_library(
name = "googletest",
srcs = glob(["src/**"]),
hdrs = glob(["include/**"]),
hdrs_pkg_root = "include",
include_license_files = True,
includes = ["src/googletest"],
srcs_pkg_root = "src",
strip_include_prefix = "include",
visibility = ["//visibility:public"],
)
wpilib_cc_static_library(
name = "static/googletest",
static_lib_name = select({
"@platforms//os:windows": "static/googletest.lib",
"//conditions:default": "static/libgoogletest.a",
}),
visibility = ["//visibility:public"],
deps = [
":googletest",
],
)
package_static_cc_project(
name = "googletest",
maven_artifact_name = "googletest-cpp",
maven_group_id = "org.wpilib.thirdparty.googletest",
)