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

Add multi-inputs tool #2527

Merged
merged 1 commit into from
Nov 23, 2024
Merged

Add multi-inputs tool #2527

merged 1 commit into from
Nov 23, 2024

Conversation

freand76
Copy link
Contributor

@freand76 freand76 commented Nov 12, 2024

The 'multi-inputs' option will list all + for the given targets.

Run:
ninja -t multi-inputs target1 target2 target3

Ninja will then output:
target1 input_x
target1 input_y
target2 input_x
target2 input_z
target3 input_y

@freand76
Copy link
Contributor Author

Replaces PR #2524

doc/manual.asciidoc Outdated Show resolved Hide resolved
src/ninja.cc Outdated Show resolved Hide resolved
src/ninja.cc Outdated Show resolved Hide resolved
src/ninja.cc Outdated Show resolved Hide resolved
src/ninja.cc Outdated Show resolved Hide resolved
misc/output_test.py Outdated Show resolved Hide resolved
misc/output_test.py Outdated Show resolved Hide resolved
src/ninja.cc Outdated Show resolved Hide resolved
@freand76 freand76 force-pushed the multiinputs branch 2 times, most recently from 15db702 to a4b6b5e Compare November 12, 2024 19:43
@digit-google
Copy link
Contributor

Thanks a lot, apart from my last documentation nit, this looks good to me. @jhasse, what do you think?

@freand76
Copy link
Contributor Author

Thanks a lot, apart from my last documentation nit, this looks good to me. @jhasse, what do you think?

Any progress on this? (looking forward to having this in the next release ;-)

@jhasse jhasse added this to the 1.13.0 milestone Nov 22, 2024
@jhasse
Copy link
Collaborator

jhasse commented Nov 22, 2024

doc should mention Available since Ninja 1.13.

The 'multi-inputs' option will list all <target> + <inputs> for
the given targets.

Run:
ninja -t multi-inputs <target1> <target2> <target3>

Ninja will then output:
<target1> <input_x>
<target1> <input_y>
<target2> <input_x>
<target2> <input_z>
<target3> <input_y>
@freand76
Copy link
Contributor Author

doc should mention Available since Ninja 1.13.

Of course :-) Fixed and pushed.

@jhasse jhasse merged commit b40052c into ninja-build:master Nov 23, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants