Skip to content

Commit

Permalink
Native/MoltenVK: Build and package tvOS binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed May 11, 2024
1 parent 97f9ce9 commit c72b7a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/nuke/Native/MoltenVK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ partial class Build {
{
var runtimes = RootDirectory / "src" / "Native" / "Silk.NET.MoltenVK.Native" / "runtimes";
InheritedShell($"./fetchDependencies --ios --iossim --maccat --macos", MoltenVKPath).AssertZeroExitCode();
InheritedShell($"make ios iossim maccat macos", MoltenVKPath).AssertZeroExitCode();
InheritedShell($"./fetchDependencies --all", MoltenVKPath).AssertZeroExitCode();
InheritedShell($"make", MoltenVKPath).AssertZeroExitCode();
var xcFrameworkDir = MoltenVKPath / "Package" / "Release" / "MoltenVK" / "static" / "MoltenVK.xcframework";
CopyFile(xcFrameworkDir / "ios-arm64" / "libMoltenVK.a", runtimes / "ios" / "native" / "libMoltenVK.a", FileExistsPolicy.Overwrite);
CopyFile(xcFrameworkDir / "ios-arm64_x86_64-simulator" / "libMoltenVK.a", runtimes / "iossimulator" / "native" / "libMoltenVK.a", FileExistsPolicy.Overwrite);
CopyFile(xcFrameworkDir / "ios-arm64_x86_64-maccatalyst" / "libMoltenVK.a", runtimes / "maccatalyst" / "native" / "libMoltenVK.a", FileExistsPolicy.Overwrite);
CopyFile(xcFrameworkDir / "tvos-arm64_arm64e" / "libMoltenVK.a", runtimes / "tvos" / "native" / "libMoltenVK.a", FileExistsPolicy.Overwrite);
CopyFile(xcFrameworkDir / "tvos-arm64_x86_64-simulator" / "libMoltenVK.a", runtimes / "tvossimulator" / "native" / "libMoltenVK.a", FileExistsPolicy.Overwrite);
var macOsDylib = runtimes / "osx" / "native" / "libMoltenVK.dylib";
Expand Down

0 comments on commit c72b7a3

Please sign in to comment.