mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
26 lines
723 B
Python
26 lines
723 B
Python
load("//shared/bazel/rules:cc_rules.bzl", "wpilib_cc_library", "wpilib_cc_static_library")
|
|
|
|
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({
|
|
"@bazel_tools//src/conditions:windows": "static/googletest.lib",
|
|
"//conditions:default": "static/libgoogletest.a",
|
|
}),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":googletest",
|
|
],
|
|
)
|