bake icon indicating copy to clipboard operation
bake copied to clipboard

Add support for defining input/output files for CustomConfig

Open hbragge opened this issue 9 years ago • 0 comments

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)" } }

hbragge avatar Dec 02 '16 12:12 hbragge