Add a stub iOS build script to drive autoconf

This commit is contained in:
Landon Fuller
2010-09-18 14:44:24 -07:00
parent 84e8de6e9f
commit a82e6c354e

12
build-iphone.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
PLATFORM_IOS=/Developer/Platforms/iPhoneOS.platform/
PLATFORM_IOS_SIM=/Developer/Platforms/iPhoneSimulator.platform/
SDK_IOS_VERSION="4.1"
mkdir -p "build-ios"
pushd "build-ios"
export CC="${PLATFORM_IOS}"/Developer/usr/bin/gcc-4.2
export CFLAGS="-arch armv6 -isysroot ${PLATFORM_IOS}/Developer/SDKs/iPhoneOS${SDK_IOS_VERSION}.sdk/"
../configure --host=armv6-apple-darwin && make
popd