mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
96 lines
2.4 KiB
Python
96 lines
2.4 KiB
Python
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_test")
|
|
load("@rules_java//java:defs.bzl", "java_binary")
|
|
load("//shared/bazel/rules:cc_rules.bzl", "wpilib_cc_library", "wpilib_cc_shared_library", "wpilib_cc_static_library")
|
|
load("//shared/bazel/rules:java_rules.bzl", "wpilib_java_library")
|
|
load("//shared/bazel/rules:packaging.bzl", "package_minimal_cc_project")
|
|
|
|
wpilib_cc_library(
|
|
name = "romiVendordep",
|
|
srcs = glob([
|
|
"src/main/native/cpp/**",
|
|
]),
|
|
hdrs = glob(["src/main/native/include/**"]),
|
|
strip_include_prefix = "src/main/native/include",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//ntcore",
|
|
"//wpilibc",
|
|
"//wpinet",
|
|
],
|
|
)
|
|
|
|
wpilib_cc_shared_library(
|
|
name = "shared/romiVendordep",
|
|
dynamic_deps = [
|
|
"//hal:shared/wpiHal",
|
|
"//ntcore:shared/ntcore",
|
|
"//wpilibc:shared/wpilibc",
|
|
"//wpinet:shared/wpinet",
|
|
"//wpiutil:shared/wpiutil",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":romiVendordep",
|
|
],
|
|
)
|
|
|
|
wpilib_cc_static_library(
|
|
name = "static/romiVendordep",
|
|
static_deps = [
|
|
"//ntcore:static/ntcore",
|
|
"//wpilibc:static/wpilibc",
|
|
"//wpinet:static/wpinet",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":romiVendordep",
|
|
],
|
|
)
|
|
|
|
wpilib_java_library(
|
|
name = "romiVendordep-java",
|
|
srcs = glob(["src/main/java/**/*.java"]),
|
|
maven_artifact_name = "romiVendordep-java",
|
|
maven_group_id = "edu.wpi.first.romiVendordep",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//hal:hal-java",
|
|
"//wpilibj:wpilibj-java",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "romi-test",
|
|
size = "small",
|
|
srcs = glob(["src/test/native/cpp/**"]),
|
|
deps = [
|
|
":romiVendordep",
|
|
"//thirdparty/googletest",
|
|
],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "DevMain-Cpp",
|
|
srcs = ["src/dev/native/cpp/main.cpp"],
|
|
deps = [
|
|
":romiVendordep",
|
|
],
|
|
)
|
|
|
|
java_binary(
|
|
name = "DevMain-Java",
|
|
srcs = ["src/dev/java/edu/wpi/first/wpilibj/romi/DevMain.java"],
|
|
main_class = "edu.wpi.first.wpilibj.romi.DevMain",
|
|
deps = [
|
|
"//hal:hal-java",
|
|
"//ntcore:ntcore-java",
|
|
"//wpiutil:wpiutil-java",
|
|
],
|
|
)
|
|
|
|
package_minimal_cc_project(
|
|
name = "romiVendordep",
|
|
maven_artifact_name = "romiVendordep-cpp",
|
|
maven_group_id = "edu.wpi.first.romiVendordep",
|
|
)
|