fix linux aarch64 build issues and for older unreal engine versions

This commit is contained in:
Mamadou Babaei
2023-05-19 18:04:34 +02:00
parent 66031095dd
commit 6be4ab7a5b
2 changed files with 12 additions and 0 deletions
@@ -159,7 +159,11 @@ public class SenseGloveConnectImpl : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
} }
#if UE_5_1_OR_LATER
else if (Target.Platform == UnrealTargetPlatform.LinuxArm64) else if (Target.Platform == UnrealTargetPlatform.LinuxArm64)
#else
else if (Target.Platform == UnrealTargetPlatform.LinuxAArch64)
#endif
{ {
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "linux")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "linux"));
LibraryName = string.Format("lib{0}.a", LibraryName); LibraryName = string.Format("lib{0}.a", LibraryName);
@@ -309,7 +313,11 @@ public class SenseGloveConnectImpl : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
} }
#if UE_5_1_OR_LATER
else if (Target.Platform == UnrealTargetPlatform.LinuxArm64) else if (Target.Platform == UnrealTargetPlatform.LinuxArm64)
#else
else if (Target.Platform == UnrealTargetPlatform.LinuxAArch64)
#endif
{ {
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "linux")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "linux"));
LibraryName = string.Format("lib{0}.a", LibraryName); LibraryName = string.Format("lib{0}.a", LibraryName);
@@ -165,7 +165,11 @@ public class SenseGloveCoreImpl : ModuleRules
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64"));
} }
#if UE_5_1_OR_LATER
else if (Target.Platform == UnrealTargetPlatform.LinuxArm64) else if (Target.Platform == UnrealTargetPlatform.LinuxArm64)
#else
else if (Target.Platform == UnrealTargetPlatform.LinuxAArch64)
#endif
{ {
LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "linux")); LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "linux"));
LibraryName = string.Format("lib{0}.a", LibraryName); LibraryName = string.Format("lib{0}.a", LibraryName);