mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
27 lines
642 B
Bash
27 lines
642 B
Bash
#!/bin/sh
|
|
|
|
cd $(dirname "$0")/../../
|
|
|
|
rm ./libs/ios/debug/libeepp-armv7.a
|
|
rm ./libs/ios/debug/libeepp-i386.a
|
|
rm ./libs/ios/debug/libeepp.a
|
|
|
|
if [ -z $1 ]; then
|
|
if [ "$1" == 'GLES2' ]; then
|
|
BACKEND="GLES2=yes"
|
|
else
|
|
if [ "$1" == 'GLES2' ]; then
|
|
BACKEND="GLES1=yes"
|
|
else
|
|
BACKEND="GLES1=yes GLES2=yes"
|
|
fi
|
|
fi
|
|
else
|
|
BACKEND="GLES1=yes GLES2=yes"
|
|
fi
|
|
|
|
make -j2 -e IOS=yes STATIC_FT2=yes SIMULATOR=yes DEBUGBUILD=yes $BACKEND
|
|
|
|
make -j2 -e IOS=yes STATIC_FT2=yes SIMULATOR=no DEBUGBUILD=yes $BACKEND
|
|
|
|
lipo -create -arch armv7 ./libs/ios/debug/libeepp-armv7.a -arch i386 ./libs/ios/debug/libeepp-i386.a -output ./libs/ios/debug/libeepp.a |