Skip to content

Commit

Permalink
MoltenVK 编译 (IOS 构建 patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack253-png committed Jan 13, 2025
1 parent a9c2908 commit 7a8dd5c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ jobs:
if: matrix.plat == 'macos' || matrix.plat == 'ios'
run: |
cd extlibs/MoltenVK
git apply ../../moltenvk_dylib.gitpatch
./fetchDependencies --${{ matrix.plat }}
make ${{ matrix.plat }}
find . -name "*.dylib"
Expand Down
13 changes: 13 additions & 0 deletions patches/moltenvk_dylib.gitpatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/Scripts/package_dylibs.sh b/Scripts/package_dylibs.sh
index 5b288075..aad3d27e 100755
--- a/Scripts/package_dylibs.sh
+++ b/Scripts/package_dylibs.sh
@@ -39,7 +39,7 @@ mkdir -p "${mvk_pkg_prod_path}"

# App store distribution does not support naked dylibs, so only include a naked dylib for macOS.
copy_dylib "" "macOS"
-#copy_dylib "-iphoneos" "iOS"
+copy_dylib "-iphoneos" "iOS"
#copy_dylib "-iphonesimulator" "iOS-simulator"
#copy_dylib "-appletvos" "tvOS"
#copy_dylib "-appletvsimulator" "tvOS-simulator"

0 comments on commit 7a8dd5c

Please sign in to comment.