2025-06-27 19:36:12 -04:00
|
|
|
load("//shared/bazel/rules:cc_rules.bzl", "wpilib_cc_library", "wpilib_cc_static_library")
|
2025-11-10 09:10:49 -08:00
|
|
|
load("//shared/bazel/rules:packaging.bzl", "package_static_cc_project")
|
2024-10-19 12:54:49 -04:00
|
|
|
|
2025-06-13 23:53:09 -04:00
|
|
|
wpilib_cc_library(
|
2025-06-27 19:36:12 -04:00
|
|
|
name = "googletest",
|
2024-10-19 12:54:49 -04:00
|
|
|
srcs = glob(["src/**"]),
|
|
|
|
|
hdrs = glob(["include/**"]),
|
2025-06-27 19:36:12 -04:00
|
|
|
hdrs_pkg_root = "include",
|
|
|
|
|
include_license_files = True,
|
2024-10-19 12:54:49 -04:00
|
|
|
includes = ["src/googletest"],
|
2025-06-27 19:36:12 -04:00
|
|
|
srcs_pkg_root = "src",
|
2024-10-19 12:54:49 -04:00
|
|
|
strip_include_prefix = "include",
|
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
|
)
|
2025-06-27 19:36:12 -04:00
|
|
|
|
|
|
|
|
wpilib_cc_static_library(
|
|
|
|
|
name = "static/googletest",
|
|
|
|
|
static_lib_name = select({
|
2025-07-31 21:04:22 -07:00
|
|
|
"@platforms//os:windows": "static/googletest.lib",
|
2025-06-27 19:36:12 -04:00
|
|
|
"//conditions:default": "static/libgoogletest.a",
|
|
|
|
|
}),
|
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
|
deps = [
|
|
|
|
|
":googletest",
|
|
|
|
|
],
|
|
|
|
|
)
|
2025-07-24 09:11:09 -04:00
|
|
|
|
2025-11-10 09:10:49 -08:00
|
|
|
package_static_cc_project(
|
2025-07-24 09:11:09 -04:00
|
|
|
name = "googletest",
|
|
|
|
|
maven_artifact_name = "googletest-cpp",
|
2026-04-11 16:52:43 -04:00
|
|
|
maven_group_id = "org.wpilib.thirdparty.googletest",
|
2025-07-24 09:11:09 -04:00
|
|
|
)
|