Add option to compile C#-only scripts on Linux when cooking for Windows

This commit is contained in:
Wojtek Figat
2021-10-05 15:56:04 +02:00
parent a72ac91ebc
commit 590c75f4cb

View File

@@ -222,14 +222,18 @@ bool CompileScriptsStep::Perform(CookingData& data)
target, platform, architecture, configuration, logFile);
#if PLATFORM_WINDOWS
if (data.Platform == BuildPlatform::LinuxX64)
#elif PLATFORM_LINUX
if (data.Platform == BuildPlatform::Windows64 || data.Platform == BuildPlatform::Windows32)
#else
if (false)
#endif
{
// Skip building C++ for Linux on Windows (no need to install cross-toolchain to build C# game)
// Skip building C++ (no need to install cross-toolchain to build C#-only game)
args += TEXT(" -BuildBindingsOnly");
// Assume FlaxGame was prebuilt for Linux
// Assume FlaxGame was prebuilt for target platform
args += TEXT(" -SkipTargets=FlaxGame");
}
#endif
for (auto& define : data.CustomDefines)
{
args += TEXT(" -D");