Files
eepp/projects/ios/compile-x86.sh
Martín Lucas Golini 0064985072 Improved IOS compilation.
2013-12-24 01:44:43 -03:00

19 lines
548 B
Bash
Executable File

#!/bin/sh
cd $(dirname "$0")
CLANGPATH=`xcrun -find -sdk iphoneos clang`
export TOOLCHAINPATH=`dirname $CLANGPATH`/
if [ -z "$IOSVERSION" ]; then
export IOSVERSION=7.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-freetype --with-static-eepp --with-gles1 --with-gles2 --with-static-backend gmake
cd ../../make/ios-x86/
make $@ eepp-static