Skip to content
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

Create a helper rule for selecting a file from outputs of another rul… #233

Merged
merged 7 commits into from Feb 27, 2020

Conversation

irengrig
Copy link
Contributor

…e or a filegroup by subpath

@irengrig
Copy link
Contributor Author

I found that this functionality will be useful, for instance, for rules_foreign_cc users: they build a library with CMake, and then further can select a particular file from the output (we put some of the files into predefined output groups, but we can not know all the cases, so it is not enough in the common case).

rules/select_file.bzl Outdated Show resolved Hide resolved
rules/select_file.bzl Show resolved Hide resolved
tests/select_file/BUILD Show resolved Hide resolved
rules/select_file.bzl Show resolved Hide resolved
rules/select_file.bzl Outdated Show resolved Hide resolved
@irengrig
Copy link
Contributor Author

Thank you for the review! PTAL

rules/select_file.bzl Outdated Show resolved Hide resolved
@irengrig
Copy link
Contributor Author

Hi:) We spent time reviewing and improving this - let's merge it? :)

@c-parsons c-parsons merged commit 6970e21 into bazelbuild:master Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants