-
Notifications
You must be signed in to change notification settings - Fork 373
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
fix: export headers with top-level Bazel targets #12762
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 |
---|---|---|
|
@@ -67,6 +67,12 @@ config_setting( | |
}, | ||
) | ||
|
||
filegroup( | ||
name = "common_hdrs", | ||
srcs = [h for h in google_cloud_cpp_common_hdrs if not h.startswith("internal/")], | ||
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. Observation: we are doing this Do we care to filter both? 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. Yes. That is one of the reasons why this is "part of" and not "fixes" for that bug. 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. I included the fixes in this PR. PTAL |
||
visibility = ["//:__pkg__"], | ||
) | ||
|
||
cc_library( | ||
name = "google_cloud_cpp_common_private", | ||
srcs = google_cloud_cpp_common_srcs + ["internal/build_info.cc"], | ||
|
@@ -161,6 +167,12 @@ cc_library( | |
], | ||
) for benchmark in google_cloud_cpp_common_benchmarks] | ||
|
||
filegroup( | ||
name = "grpc_utils_hdrs", | ||
srcs = [h for h in google_cloud_cpp_grpc_utils_hdrs if ("/internal/" not in h and "grpc_utils/" not in h)], | ||
visibility = ["//:__pkg__"], | ||
) | ||
|
||
cc_library( | ||
name = "google_cloud_cpp_grpc_utils_private", | ||
srcs = google_cloud_cpp_grpc_utils_srcs, | ||
|
@@ -242,6 +254,12 @@ cc_library( | |
], | ||
) for test in google_cloud_cpp_grpc_utils_benchmarks] | ||
|
||
filegroup( | ||
name = "mocks", | ||
srcs = [h for h in google_cloud_cpp_mocks_hdrs if not h.startswith("internal/")], | ||
visibility = ["//:__pkg__"], | ||
) | ||
|
||
cc_library( | ||
name = "google_cloud_cpp_mocks", | ||
testonly = True, | ||
|
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.
Both are consistent. I am fine with your choice.
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.
I just went with the most commonly used names. I figured we can change them later if we wanted to.