Add support for Custom Define in Game Cooker for build scripts configuration

This commit is contained in:
Wojtek Figat
2021-02-16 13:54:57 +01:00
parent b742d0c326
commit f66b7ff785
7 changed files with 26 additions and 25 deletions

View File

@@ -217,6 +217,11 @@ bool CompileScriptsStep::Perform(CookingData& data)
args += TEXT(" -SkipTargets=FlaxGame");
}
#endif
for (auto& define : data.CustomDefines)
{
args += TEXT(" -D");
args += define;
}
if (ScriptsBuilder::RunBuildTool(args))
{
data.Error(TEXT("Failed to compile game scripts."));