1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Update Dotnet iOS Export Process

Update iOS export to allow for hybrid globalization introduced in .NET 9 while preserving .NET 8 settings. Also allows for custom ICU or no ICU.
This commit is contained in:
Justin Sasso
2024-12-08 13:29:18 -05:00
committed by Justin Sasso
parent e1b4101e34
commit aa0ed1b469

View File

@@ -15,7 +15,12 @@
<Target Name="PrepareBeforeIlcCompile" <Target Name="PrepareBeforeIlcCompile"
BeforeTargets="IlcCompile"> BeforeTargets="IlcCompile">
<Copy SourceFiles="%(ResolvedRuntimePack.PackageDirectory)/runtimes/$(RuntimeIdentifier)/native/icudt.dat" DestinationFolder="$(PublishDir)"/> <PropertyGroup>
<IcuTargetDir>%(ResolvedRuntimePack.PackageDirectory)/runtimes/$(RuntimeIdentifier)/native/icudt.dat</IcuTargetDir>
<IcuEnabled Condition="Exists('$(IcuTargetDir)')">true</IcuEnabled>
</PropertyGroup>
<Copy SourceFiles="$(IcuTargetDir)" DestinationFolder="$(PublishDir)" Condition=" '$(IcuEnabled)' == 'true' "/>
<!-- We need to find the path to Xcode so we can set manual linker args to the correct SDKs <!-- We need to find the path to Xcode so we can set manual linker args to the correct SDKs
Once https://github.com/dotnet/runtime/issues/88737 is released, we can take this out Once https://github.com/dotnet/runtime/issues/88737 is released, we can take this out