bUseRelease

This commit is contained in:
crazytuzi committed 2026-05-28 12:55:54 +08:00
1 parent 961d29e25e
commit 043f264604
1 file changed
+8 -12
+8 -12
View File
@@ -15,8 +15,11 @@ public class Mono : ModuleRules
"DOTNET_PATCH_VERSION=1" "DOTNET_PATCH_VERSION=1"
}); });
var bIsDebug = Target.Configuration == UnrealTargetConfiguration.Debug || var bUseRelease = true;
Target.Configuration == UnrealTargetConfiguration.DebugGame;
var bIsDebug = !bUseRelease &&
(Target.Configuration == UnrealTargetConfiguration.Debug ||
Target.Configuration == UnrealTargetConfiguration.DebugGame);
var MonoConfiguration = bIsDebug ? "Debug" : "Release"; var MonoConfiguration = bIsDebug ? "Debug" : "Release";
@@ -56,20 +59,13 @@ public class Mono : ModuleRules
PublicSystemLibraries.Add("msvcrtd.lib"); PublicSystemLibraries.Add("msvcrtd.lib");
} }
RuntimeDependencies.Add( RuntimeDependencies.Add("$(BinaryOutputDir)/coreclr.dll",
Target.bIsEngineInstalled ? "$(BinaryOutputDir)/coreclr.dll" : "$(TargetOutputDir)/coreclr.dll",
Path.Combine(PlatformLibraryPath, "coreclr.dll")); Path.Combine(PlatformLibraryPath, "coreclr.dll"));
RuntimeDependencies.Add( RuntimeDependencies.Add("$(BinaryOutputDir)/System.IO.Compression.Native.dll",
Target.bIsEngineInstalled
? "$(BinaryOutputDir)/System.IO.Compression.Native.dll"
: "$(TargetOutputDir)/System.IO.Compression.Native.dll",
Path.Combine(PlatformLibraryPath, "System.IO.Compression.Native.dll")); Path.Combine(PlatformLibraryPath, "System.IO.Compression.Native.dll"));
RuntimeDependencies.Add( RuntimeDependencies.Add("$(BinaryOutputDir)/System.Globalization.Native.dll",
Target.bIsEngineInstalled
? "$(BinaryOutputDir)/System.Globalization.Native.dll"
: "$(TargetOutputDir)/System.Globalization.Native.dll",
Path.Combine(PlatformLibraryPath, "System.Globalization.Native.dll")); Path.Combine(PlatformLibraryPath, "System.Globalization.Native.dll"));
var Files = GetFiles(Path.Combine(PlatformLibraryPath, "net")); var Files = GetFiles(Path.Combine(PlatformLibraryPath, "net"));