# Exec

Exec

Runs a custom executable as a build step. The executable can be one defined by another build step, or a prebuilt executable. The executable will be run if the outputfile is out of date (with respect to the input files or executable) or if it is missing.

Exec( alias ) ; (optional) Alias { .ExecExecutable ; Executable to run .ExecInput ; Input file(s) to pass to executable .ExecOutput ; Output file generated by executable .ExecArguments ; (optional) Arguments to pass to executable .ExecWorkingDir ; (optional) Working dir to set for executable .ExecReturnCode ; (optional) Expected return code from executable (default 0) .ExecUseStdOutAsOutput ; (optional) Write the standard output from the executable to the output file ; Additional options .PreBuildDependencies ; (optional) Force targets to be built before this Exec (Rarely needed, ; but useful when Exec relies on externally generated files). }

Build-Time Substitutions

- ExecArguments

- %1 - Input file(s) as provided via ExecInput argument.
- %2 - Output file as provided by ExecOutput argument.