COvenBakeConfig_Base
All ovens inherit from COvenBakeConfig_Base
, and share these base properties
Property name | Default value | Description |
BakeTarget | <empty> | Contains the name of the build target this config applies to. An empty string means all build targets |
CommandLine_PreBake_Windows | <empty> | Command-line executed BEFORE the file has been baked, when the baker is run on a windows OS |
CommandLine_PreBake_Linux | <empty> | Command-line executed BEFORE the file has been baked, when the baker is run on a linux OS |
CommandLine_PreBake_MacOsX | <empty> | Command-line executed BEFORE the file has been baked, when the baker is run on a MacOsX OS |
CommandLine_Windows | <empty> | Command-line executed AFTER the file has been baked, when the baker is run on a windows OS |
CommandLine_Linux | <empty> | Command-line executed AFTER the file has been baked, when the baker is run on a linux OS |
CommandLine_MacOsX | <empty> | Command-line executed AFTER the file has been baked, when the baker is run on a MacOsX OS |
OverrideDefaultBakeWithCmdline | false | Do not execute default baking, only the CommandLine_* commands |
AlwaysMkdirTarget | false | Always create the $(TargetDir) directory chain just after CommandLine_PreBake, even if OverrideDefaultBakeWithCmdline is active |
The command-lines can contain the following special tokens:
$(InputPath)
: Full path to the source asset, including the extension$(InputDir)
: Full path to the source directory$(InputExt)
: Extension of the original file, without the dot ‘.’$(FileName)
: Filename, without the extension$(TargetPath)
: Full path to the target file, with the extension$(TargetDir)
: Full path to the target directory$(SelfDir)
: Directory of the asset$(BakeTarget)
: BakeTarget of the COvenBakeConfig (can be empty if unspecialized)$(BakeKey)
: Randomly generated bake key for COvenBakeConfig_ParticleCompiler
You can use environment variables in the command-line, using the regular platform’s syntax, and invoke SDK-specific texture conversion tools based on the platform (like gxt/gnf converters, do not hesitate to contact us if you have any trouble with this)
(See the Texture oven for a specific example)