Skip to content

Commit 6fb14d2

Browse files
Update build.cs
- Wrap VisionOS in a preprocessor - Change Target.Architecture to Target.Architectures to allow multi architecture detection Signed-off-by: Nicholas St. Germain <nick@cajun.pro>
1 parent 4f8ad7e commit 6fb14d2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Source/Thirdweb/Thirdweb.Build.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ public class Thirdweb : ModuleRules
88
private bool IsWin64 => Target.Platform.Equals(UnrealTargetPlatform.Win64);
99

1010
private bool IsIOSIsh =>
11-
Target.Platform.IsInGroup(UnrealPlatformGroup.IOS); // || Target.Platform.Equals(UnrealTargetPlatform.VisionOS);
11+
Target.Platform.IsInGroup(UnrealPlatformGroup.IOS)
12+
#if UE_5_4_OR_LATER
13+
|| Target.Platform.Equals(UnrealTargetPlatform.VisionOS)
14+
#endif
15+
;
1216

1317
private bool IsApple => Target.Platform.IsInGroup(UnrealPlatformGroup.Apple);
1418

1519
private bool IsMobile => IsIOSIsh || Target.Platform.Equals(UnrealTargetPlatform.Android);
1620

17-
private string LibExt => IsWin64 ? ".lib" : Target.Architecture == UnrealArch.IOSSimulator ? ".sim.a" : ".a";
21+
private string LibExt =>
22+
IsWin64 ? ".lib" : Target.Architectures.Contains(UnrealArch.IOSSimulator) ? ".sim.a" : ".a";
1823

1924
private string LibDir => Path.Combine(Path.Combine(ModuleDirectory, "..", "ThirdParty"),
2025
IsIOSIsh ? "IOS" : Target.Platform.ToString());
@@ -84,4 +89,4 @@ public Thirdweb(ReadOnlyTargetRules target) : base(target)
8489
"SlateCore"
8590
});
8691
}
87-
}
92+
}

0 commit comments

Comments
 (0)