mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
25 lines
661 B
Python
25 lines
661 B
Python
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
|
|
|
ATHENA_SOURCES = glob(["src/main/native/cpp/**"])
|
|
|
|
NON_ATHENA_SOURCES = glob(["src/main/native/dt/**"])
|
|
|
|
cc_library(
|
|
name = "test_headers",
|
|
hdrs = glob(["src/main/native/include/**"]),
|
|
strip_include_prefix = "src/main/native/include",
|
|
)
|
|
|
|
cc_binary(
|
|
name = "wpilibcIntegrationTests",
|
|
srcs = select({
|
|
"@rules_bzlmodrio_toolchains//constraints/is_roborio:roborio": ATHENA_SOURCES,
|
|
"//conditions:default": NON_ATHENA_SOURCES,
|
|
}),
|
|
deps = [
|
|
":test_headers",
|
|
"//thirdparty/googletest:googletest.static",
|
|
"//wpilibc:wpilibc.static",
|
|
],
|
|
)
|