mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
52 lines
1.2 KiB
Python
52 lines
1.2 KiB
Python
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
|
|
|
|
cc_library(
|
|
name = "halsim_gui",
|
|
srcs = glob([
|
|
"src/main/native/cpp/*",
|
|
"src/main/native/include/*.h",
|
|
]),
|
|
includes = ["src/main/native/include"],
|
|
tags = [
|
|
"wpi-cpp-gui",
|
|
],
|
|
target_compatible_with = select({
|
|
"@rules_bzlmodrio_toolchains//constraints/is_roborio:roborio": ["@platforms//:incompatible"],
|
|
"@rules_bzlmodrio_toolchains//constraints/is_systemcore:systemcore": ["@platforms//:incompatible"],
|
|
"//conditions:default": [],
|
|
}),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//glass:libglassnt",
|
|
"//hal:wpiHal.static",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "halsim_gui-test",
|
|
size = "small",
|
|
srcs = glob([
|
|
"src/test/native/**/*.cpp",
|
|
"src/test/native/**/*.h",
|
|
]),
|
|
tags = [
|
|
"no-asan",
|
|
"wpi-cpp-gui",
|
|
],
|
|
deps = [
|
|
":halsim_gui",
|
|
"//thirdparty/googletest:googletest.static",
|
|
],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "DevMain-Cpp",
|
|
srcs = ["src/dev/native/cpp/main.cpp"],
|
|
tags = [
|
|
"wpi-cpp-gui",
|
|
],
|
|
deps = [
|
|
":halsim_gui",
|
|
],
|
|
)
|