From a82e6c354ea805114642a6e440abd0832cb1d23f Mon Sep 17 00:00:00 2001 From: Landon Fuller Date: Sat, 18 Sep 2010 14:44:24 -0700 Subject: [PATCH] Add a stub iOS build script to drive autoconf --- build-iphone.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 build-iphone.sh diff --git a/build-iphone.sh b/build-iphone.sh new file mode 100755 index 0000000..a3593aa --- /dev/null +++ b/build-iphone.sh @@ -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