Skip to content

Commit

Permalink
SPIRV-Cross is no longer needed for Apple targets
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Nov 5, 2024
1 parent 158c5bb commit 1dd0768
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions build-fnalibs-apple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ gh -R FNA-XNA/Theorafile run download ${workflow_id} -p 'Theorafile-osx'
gh -R FNA-XNA/Theorafile run download ${workflow_id} -p 'Theorafile-iphoneos'
gh -R FNA-XNA/Theorafile run download ${workflow_id} -p 'Theorafile-appletvos'

workflow_id=$(gh -R KhronosGroup/SPIRV-Cross run list -b main --json databaseId --jq '.[0].databaseId')
gh -R KhronosGroup/SPIRV-Cross run download ${workflow_id} -p 'macos-latest-binaries'
gh -R KhronosGroup/SPIRV-Cross run download ${workflow_id} -p 'appletvos-binaries'
gh -R KhronosGroup/SPIRV-Cross run download ${workflow_id} -p 'iphoneos-binaries'

mkdir -p fnalibs-apple
cp fnalibs-apple.README fnalibs-apple/README.txt

Expand All @@ -41,7 +36,6 @@ hdiutil detach /Volumes/SDL3\ 3.$SDL_MINOR_VERSION.$SDL_PATCH_VERSION
mv FAudio-SDL3-osx/libFAudio.0.dylib fnalibs-apple/osx/
mv FNA3D-SDL3-osx/libFNA3D.0.dylib fnalibs-apple/osx/
mv Theorafile-osx/libtheorafile.dylib fnalibs-apple/osx/
mv macos-latest-binaries/lib/libspirv-cross-c-shared.0.dylib fnalibs-apple/osx/
xattr -c fnalibs-apple/osx/*.dylib

mkdir -p fnalibs-apple/iphoneos
Expand All @@ -51,7 +45,6 @@ mv FAudio-SDL3-iphoneos/libFAudio.a fnalibs-apple/iphoneos/
mv FNA3D-SDL3-iphoneos/libFNA3D.a fnalibs-apple/iphoneos/
mv FNA3D-SDL3-iphoneos/libmojoshader.a fnalibs-apple/iphoneos/
mv Theorafile-iphoneos/libtheorafile.a fnalibs-apple/iphoneos/
# TODO: Which libspirv-cross libraries do we need?

mkdir -p fnalibs-apple/appletvos
tar xvfz SDL-tvos-arm64/dist/SDL3-3.$SDL_MINOR_VERSION.$SDL_PATCH_VERSION-tvOS.tar.gz SDL3-3.$SDL_MINOR_VERSION.$SDL_PATCH_VERSION-tvOS/lib/libSDL3.a
Expand All @@ -60,4 +53,3 @@ mv FAudio-SDL3-appletvos/libFAudio.a fnalibs-apple/appletvos/
mv FNA3D-SDL3-appletvos/libFNA3D.a fnalibs-apple/appletvos/
mv FNA3D-SDL3-appletvos/libmojoshader.a fnalibs-apple/appletvos/
mv Theorafile-appletvos/libtheorafile.a fnalibs-apple/appletvos/
# TODO: Which libspirv-cross libraries do we need?

0 comments on commit 1dd0768

Please sign in to comment.