From 4e5158867493ef24508594f30eb056bbba9369b5 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 21 Jan 2013 21:25:49 -0800 Subject: [PATCH] Add build scripts for iOS, Android and MSYS. --- dist-build/android.sh | 20 ++++++++++++++++++++ dist-build/iphone.sh | 10 ++++++++++ dist-build/msys.sh | 5 +++++ 3 files changed, 35 insertions(+) create mode 100755 dist-build/android.sh create mode 100755 dist-build/iphone.sh create mode 100755 dist-build/msys.sh diff --git a/dist-build/android.sh b/dist-build/android.sh new file mode 100755 index 00000000..e7886020 --- /dev/null +++ b/dist-build/android.sh @@ -0,0 +1,20 @@ +#! /bin/sh + +export CFLAGS="-Os -mthumb" +export DROID_HOST=darwin-x86 +export LDFLAGS="-mthumb" +export NDK_PLATFORM=8 +export NDK_ROOT=/usr/local/Cellar/android-ndk/r8d +export TARGET_TOOLCHAIN_VERSION=4.4.3 +export TARGET=arm-linux-androideabi +export NDK_TARGET="arm-linux-androideabi-${TARGET_TOOLCHAIN_VERSION}" +export AR=droid-ar +export AS=droid-as +export CC=droid-gcc +export LD=droid-ld +export NM=droid-nm +export OBJCOPY=droid-objcopy +export RANLIB=droid-ranlib +export STRIP=droid-strip + +./configure --host=arm-linux-androideabi && make -j3 diff --git a/dist-build/iphone.sh b/dist-build/iphone.sh new file mode 100755 index 00000000..d4137732 --- /dev/null +++ b/dist-build/iphone.sh @@ -0,0 +1,10 @@ +#! /bin/sh + +export XCODEDIR="/Applications/Xcode46-DP2.app/Contents/Developer" +export BASEDIR="${XCODEDIR}/Platforms/iPhoneOS.platform/Developer" +export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH" +export SDK="${BASEDIR}/SDKs/iPhoneOS6.1.sdk" +export CFLAGS="-Oz -mthumb -arch armv7 -isysroot ${SDK}" +export LDFLAGS="-mthumb -arch armv7 -isysroot ${SDK}" + +./configure --host=arm-apple-darwin10 && make -j3 diff --git a/dist-build/msys.sh b/dist-build/msys.sh new file mode 100755 index 00000000..d30d6102 --- /dev/null +++ b/dist-build/msys.sh @@ -0,0 +1,5 @@ +#! /bin/sh + +export CFLAGS="-Os -march=pentium2 -mtune=nocona" + +./configure --disable-ssp && make -j3