bUseRelease

v10.0.1
crazytuzi 3 months ago
parent 961d29e25e
commit 043f264604
  1. 20
      Mono.Build.cs

@ -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"));

Loading…
Cancel
Save