Fix build for blue platform four

This commit is contained in:
2026-07-15 23:00:08 +02:00
parent 0b5dcbb533
commit f89e74c3de
4 changed files with 9 additions and 20 deletions
+6
View File
@@ -121,3 +121,9 @@
#else
#define IF_CONSTEXPR
#endif
// Custom attribute for Clang on PS4
#if PLATFORM_PS4
#undef DLLEXPORT
#define DLLEXPORT __declspec(dllexport)
#endif
+1
View File
@@ -55,6 +55,7 @@ public class Platform : EngineModule
case TargetPlatform.PS4:
options.SourcePaths.Add(Path.Combine(FolderPath, "Unix"));
options.SourcePaths.Add(Path.Combine(Globals.EngineRoot, "Source", "Platforms", "PS4", "Engine", "Platform"));
options.PrivateIncludePaths.Add(Path.Combine(Globals.EngineRoot, "Source/Platforms/PS4/Binaries/ThirdParty/x64/include/mono-2.0"));
break;
case TargetPlatform.PS5:
options.SourcePaths.Add(Path.Combine(FolderPath, "Unix"));
+1 -5
View File
@@ -106,17 +106,13 @@ public class nethost : ThirdPartyModule
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libSystem.IO.Ports.Native.a"));
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libSystem.IO.Compression.Native.a"));
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libSystem.Globalization.Native.a"));
if (options.Platform.Target == TargetPlatform.PS5)
if (options.Platform.Target == TargetPlatform.PS5 || options.Platform.Target == TargetPlatform.PS4)
{
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libbrotlicommon.a"));
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libbrotlidec.a"));
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libbrotlienc.a"));
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libz.a"));
}
else if (options.Platform.Target == TargetPlatform.PS4)
{
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libz.a"));
}
}
break;
}
@@ -278,6 +278,7 @@ namespace Flax.Deps.Dependencies
};
break;
case TargetPlatform.PS5:
case TargetPlatform.PS4:
libs1 = new[]
{
"lib/libmonosgen-2.0.a",
@@ -295,21 +296,6 @@ namespace Flax.Deps.Dependencies
"lib/libz.a",
};
break;
case TargetPlatform.PS4:
libs1 = new[]
{
"lib/libmonosgen-2.0.a",
"lib/libmono-profiler-aot.a",
};
libs2 = new[]
{
"lib/libSystem.Globalization.Native.a",
"lib/libSystem.IO.Compression.Native.a",
"lib/libSystem.IO.Ports.Native.a",
"lib/libSystem.Native.a",
"lib/libz.a",
};
break;
default:
libs1 = new[]
{