Skip to main content

compilebuildoutputs

Specify if generated file from buildcommands should be compiled or not.

compilebuildoutputs "value"

Parameters

value one of:

  • on - generated file should be compiled.
  • off - generated file should not be compiled.

Applies To

The config scope.

Availability

Premake 5.0.0 alpha 12 or later.

Examples

filter "files:**.cpp.in"
buildmessage "generate %{file.basename} from %{file.relpath}"
buildoutputs { "%{cfg.objdir}/%{file.basename}") }
buildcommands { "MyScript %[%{!file.abspath}] %[%{!cfg.objdir}/%{file.basename}]" }
compilebuildoutputs "on"
filter "files:**.h.in"
buildmessage "generate %{file.basename} from %{file.relpath}"
buildoutputs { "%{cfg.objdir}/%{file.basename}") }
buildcommands { "MyScript %[%{!file.abspath}] %[%{!cfg.objdir}/%{file.basename}]" }
compilebuildoutputs "off"
filter {}

See Also