-
Notifications
You must be signed in to change notification settings - Fork 671
[bazel] glob the c++ files/headers in wpilib_cc_library #8393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2027
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,10 +91,14 @@ cc_library( | |
| wpilib_cc_library( | ||
| name = "ntcore", | ||
| srcs = glob( | ||
| ["src/main/native/cpp/**"], | ||
| ["src/main/native/cpp/**/*.cpp", | ||
| "src/main/native/cpp/**/*.hpp"], | ||
|
Comment on lines
+94
to
+95
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this formatted? |
||
| exclude = ["src/main/native/cpp/jni/**"], | ||
| ), | ||
| hdrs = glob(["src/main/native/include/**/*"]), | ||
| hdrs = glob([ | ||
| "src/main/native/include/**/*.h", | ||
| "src/main/native/include/**/*.hpp", | ||
| ]), | ||
| extra_src_pkg_files = [ | ||
| ":ntcore-java-jni-hdrs-pkg", | ||
| ], | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,16 @@ load("//shared/bazel/rules:packaging.bzl", "package_static_cc_project") | |
|
|
||
| wpilib_cc_library( | ||
| name = "googletest", | ||
| srcs = glob(["src/**"]), | ||
| hdrs = glob(["include/**"]), | ||
| srcs = glob([ | ||
| "src/**/*.cc", | ||
| "src/**/*.cpp", | ||
| "src/**/*.h", | ||
| "src/**/*.hpp", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There don't seem to be any files in |
||
| ], allow_empty = True), | ||
| hdrs = glob([ | ||
| "include/**/*.h", | ||
| "include/**/*.hpp", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There don't seem to be any files in |
||
| ], allow_empty = True), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we allowing empty glob expansions here?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also shows up in |
||
| hdrs_pkg_root = "include", | ||
| include_license_files = True, | ||
| includes = ["src/googletest"], | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,12 +126,15 @@ cc_library( | |
| wpilib_cc_library( | ||
| name = "wpinet", | ||
| srcs = glob( | ||
| ["src/main/native/cpp/**"], | ||
| ["src/main/native/cpp/**/*.cpp"], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is missing the following files: |
||
| exclude = ["src/main/native/cpp/jni/**"], | ||
| ) + [ | ||
| ":libuv-srcs", | ||
| ] + ["native-srcs"], | ||
| hdrs = glob(["src/main/native/include/**/*"]), | ||
| hdrs = glob([ | ||
| "src/main/native/include/**/*.h", | ||
| "src/main/native/include/**/*.hpp", | ||
| ]), | ||
| extra_hdr_pkg_files = [":thirdparty-libuv-hdr-pkg"], | ||
| extra_src_pkg_files = [ | ||
| ":wpinet-java-jni-hdrs-pkg", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a problem that this doesn't include
hal/src/generated/main/native/cpp/mrc/protobuf/MrcComm.npb.h?