mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Use all our fancy new linking code to link cscore properly. nm reports that the symbols look quite good. Signed-off-by: Austin Schuh <austin.linux@gmail.com> Co-authored-by: PJ Reiniger <pj.reiniger@gmail.com> Co-authored-by: David Vo <auscompgeek@users.noreply.github.com>
33 lines
942 B
Python
33 lines
942 B
Python
load("//shared/bazel/rules:cc_rules.bzl", "wpilib_cc_library", "wpilib_cc_static_library")
|
|
load("//shared/bazel/rules:packaging.bzl", "package_minimal_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_minimal_cc_project(
|
|
name = "googletest",
|
|
maven_artifact_name = "googletest-cpp",
|
|
maven_group_id = "edu.wpi.first.thirdparty.googletest",
|
|
)
|