Hack to include macOS SDK components for libjsound

This commit is contained in:
PojavLauncherTeam 2023-01-29 22:18:05 +00:00
parent 5c5ec9ed00
commit 89ba13ac64
2 changed files with 4 additions and 1 deletions

View File

@ -46,6 +46,8 @@ if [ "$BUILD_IOS" != "1" ]; then
ar cru dummy_libs/libthread_db.a ar cru dummy_libs/libthread_db.a
else else
ln -s -f /opt/X11/include/X11 $ANDROID_INCLUDE/ ln -s -f /opt/X11/include/X11 $ANDROID_INCLUDE/
ln -sfn $themacsysroot/System/Library/Frameworks/CoreAudio.framework/Headers $ANDROID_INCLUDE/CoreAudio
ln -sfn $themacsysroot/System/Library/Frameworks/IOKit.framework/Headers $ANDROID_INCLUDE/IOKit
if [ "$(uname -p)" == "arm" ]; then if [ "$(uname -p)" == "arm" ]; then
ln -s -f /opt/homebrew/include/fontconfig $ANDROID_INCLUDE/ ln -s -f /opt/homebrew/include/fontconfig $ANDROID_INCLUDE/
else else

View File

@ -1,9 +1,10 @@
#!/bin/bash #!/bin/bash
set -e set -e
args=$@
# hack: remove iOS CFLAGS # hack: remove iOS CFLAGS
if [ "$(uname -m)" == "x86_64" ]; then if [ "$(uname -m)" == "x86_64" ]; then
args=${@/arm64/x86_64} args=${args/arm64/x86_64}
fi fi
args=${args/"-isysroot $thesysroot"/} args=${args/"-isysroot $thesysroot"/}
args=${args/"-miphoneos-version-min=12.0"/} args=${args/"-miphoneos-version-min=12.0"/}