Files
eepp/projects/ios/compile-debug.sh
spartanj@gmail.com 64d0256ea4 Now it's possible to compile with GLES1 and GLES2 support ( on platforms that support both of them ).
This enable switching renderers without the need of recompiling.
2012-06-12 13:56:58 -03:00

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