another attempt at fixing fab store submission build issues for ue 5.8 which also changes msvc third-binary selection behavior on windows

This commit is contained in:
Mamadou Babaei
2026-07-21 19:10:04 +02:00
parent 88ef165191
commit f971cbdb6e
15 changed files with 253 additions and 337 deletions
@@ -114,31 +114,25 @@ public class SGCommonThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -94,31 +94,25 @@ public class SGConnectShmThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -114,31 +114,25 @@ public class SGConnectThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -94,31 +94,25 @@ public class SGCoreShmThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -114,31 +114,25 @@ public class SGCoreThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -94,31 +94,25 @@ public class SGFakeShmThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -94,31 +94,25 @@ public class SGFlatBuffersThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -119,31 +119,25 @@ public class SGFmtThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -114,31 +114,25 @@ public class SGLogThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -119,31 +119,25 @@ public class SGLoguruThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -94,31 +94,25 @@ public class SGNngThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -97,31 +97,25 @@ public class SGRapidYamlThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -94,31 +94,25 @@ public class SGSerialThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
@@ -94,31 +94,25 @@ public class SGWjwwoodSerialThirdPartyLibs : ModuleRules
else if (bIsWin64)
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "windows"));
switch (Target.WindowsPlatform.Compiler)
Version compilerVersion = Version.Parse(Target.WindowsPlatform.CompilerVersion.ToString());
string toolsetVersion = $"{compilerVersion.Major}.{compilerVersion.Minor:D2}";
if (toolsetVersion == "14.50")
{
#if UE_5_7_OR_LATER
case WindowsCompiler.VisualStudio2026:
#if UE_5_8_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
#elif UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
#endif
case WindowsCompiler.VisualStudio2022:
#if UE_5_7_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
#elif UE_5_5_OR_LATER
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
#else
Debug.Assert(false, "Unsupported engine version or compiler!");
#endif
break;
default:
Debug.Assert(false, "Unsupported engine version or compiler!");
break;
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v145-1450"));
}
else if (toolsetVersion == "14.44")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1444"));
}
else if (toolsetVersion == "14.38")
{
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "v143-1438"));
}
else
{
Debug.Assert(false, "Unsupported MSVC toolset!");
}
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));