Skip to content

Commit

Permalink
Simplify ntcore
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Oct 13, 2024
1 parent ec5692b commit 30c3248
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions ntcore/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,21 @@ filegroup(
visibility = ["//ntcore:__subpackages__"],
)

cc_library(
name = "private_includes",
hdrs = glob([
"src/main/native/cpp/*.h",
"src/main/native/cpp/net/*.h",
"src/main/native/cpp/net/*.inc",
"src/main/native/cpp/net3/*.h",
]),
strip_include_prefix = "src/main/native/cpp",
)

cc_library(
name = "ntcore.static",
srcs = glob(
["src/main/native/cpp/**"],
exclude = ["src/main/native/cpp/jni/**"],
) + [":generated_cc_source"],
hdrs = glob(["src/main/native/include/**/*"]),
includes = ["src/main/native/include"],
includes = [
"src/main/native/cpp",
"src/main/native/include",
],
strip_include_prefix = "src/main/native/include",
visibility = ["//visibility:public"],
deps = [
":generated_cc_headers",
":private_includes",
"//wpinet:wpinet.static",
"//wpiutil:wpiutil.static",
],
Expand Down

0 comments on commit 30c3248

Please sign in to comment.