iOS build fixes.

This commit is contained in:
Martín Lucas Golini
2020-01-17 16:32:25 -03:00
parent 0f2ceab767
commit a9edcf7e04
11 changed files with 108 additions and 41 deletions

View File

@@ -1,15 +1,15 @@
#!/bin/sh
cd $(dirname "$0")
./compile-arm7.sh $1 $2 $3 $4 $5
./compile-x86.sh $1 $2 $3 $4 $5
./compile-arm64.sh $@
./compile-x86_64.sh $@
cd ../../libs/ios/
if [ -f arm7/libeepp-static-debug.a ] && [ -f x86/libeepp-static-debug.a ]; then
lipo -create -arch armv7 arm7/libeepp-static-debug.a -arch i386 x86/libeepp-static-debug.a -output ./libeepp-debug.a
if [ -f arm64/libeepp-static-debug.a ] && [ -f x86_64/libeepp-static-debug.a ]; then
lipo -create -arch arm64 arm64/libeepp-static-debug.a -arch x86_64 x86_64/libeepp-static-debug.a -output ./libeepp-debug.a
fi
if [ -f arm7/libeepp-static.a ] && [ -f x86/libeepp-static.a ]; then
lipo -create -arch armv7 arm7/libeepp-static.a -arch i386 x86/libeepp-static.a -output ./libeepp.a
fi
lipo -create -arch arm64 arm64/libeepp-static.a -arch x86_64 x86_64/libeepp-static.a -output ./libeepp.a
fi

View File

@@ -5,14 +5,14 @@ CLANGPATH=`xcrun -find -sdk iphoneos clang`
export TOOLCHAINPATH=`dirname $CLANGPATH`/
if [ -z "$IOSVERSION" ]; then
export IOSVERSION=5.0
export IOSVERSION=12.1
fi
if [ -z "$SYSROOTPATH" ]; then
export SYSROOTPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$IOSVERSION.sdk/
fi
premake4 --file=../../premake4.lua --platform=ios-arm7 --with-static-eepp --with-gles1 --with-gles2 --with-static-backend gmake
premake4 --file=../../premake4.lua --platform=ios-arm64 --with-static-eepp --with-gles1 --with-gles2 --with-static-backend --use-frameworks gmake
cd ../../make/ios-arm7/
make $@ eepp-static
cd ../../make/ios-arm64/
make -j`nproc` $@ eepp-static

View File

@@ -5,14 +5,14 @@ CLANGPATH=`xcrun -find -sdk iphoneos clang`
export TOOLCHAINPATH=`dirname $CLANGPATH`/
if [ -z "$IOSVERSION" ]; then
export IOSVERSION=7.0
export IOSVERSION=10.0
fi
if [ -z "$SYSROOTPATH" ]; then
export SYSROOTPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$IOSVERSION.sdk/
fi
premake4 --file=../../premake4.lua --platform=ios-x86 --with-static-eepp --with-gles1 --with-gles2 --with-static-backend gmake
premake4 --file=../../premake4.lua --platform=ios-x86 --with-static-eepp --with-gles1 --with-gles2 --with-static-backend --use-frameworks gmake
cd ../../make/ios-x86/
make $@ eepp-static
make -j`nproc` $@ eepp-static

18
projects/ios/compile-x86_64.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
cd $(dirname "$0")
CLANGPATH=`xcrun -find -sdk iphoneos clang`
export TOOLCHAINPATH=`dirname $CLANGPATH`/
if [ -z "$IOSVERSION" ]; then
export IOSVERSION=12.1
fi
if [ -z "$SYSROOTPATH" ]; then
export SYSROOTPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$IOSVERSION.sdk/
fi
premake4 --file=../../premake4.lua --platform=ios-x86_64 --with-static-eepp --with-gles1 --with-gles2 --with-static-backend --use-frameworks gmake
cd ../../make/ios-x86_64/
make -j`nproc` $@ eepp-static