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 support for defining input/output files for CustomConfig #119

Open
hbragge opened this issue Dec 2, 2016 · 0 comments
Open

Add support for defining input/output files for CustomConfig #119

hbragge opened this issue Dec 2, 2016 · 0 comments

Comments

@hbragge
Copy link

hbragge commented Dec 2, 2016

Currently there is no way to define input files or output artifacts in CustomConfig, thus there is no way for bake to notice if input files have changes and prevent unnecessary runs. Commands something like below could be added to introduce this.

Probably also a new keyword for the actual steps is needed (I used "Commands" in the example), because normally PreSteps/PostSteps are run regardless if input files have changed or not.

CustomConfig generate {
Set MyScript, value: "myscript.rb"
Set InputFile1, value: "input1.txt"
Set InputFile2, value: "input2.txt"
Set OutputFile1, value: "output1.h"
Set OutputFile2, value: "output2.h"
InputFiles "$(MyScript)"
InputFiles "$(InputFile1)"
InputFiles "$(InputFile2)"
OutputFiles "$(OutputFile1)"
OutputFiles "$(OutputFile2)"
Commands {
CommandLine "$(MyScript) -i $(InputFile1),$(InputFile2) -o $(OutputFile1),$(OutputFile2)"
}
}

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

No branches or pull requests

1 participant