libsodium/dist-build/iphone.sh
Frank Denis faf6f5cbc1 iPhone / Android targets: issue an explicit make clean every time.
Often useful to automatically wipe forgotten leftovers from a different target.
2013-09-07 17:06:56 -07:00

17 lines
589 B
Bash
Executable File

#! /bin/sh
export XCODEDIR="/Applications/Xcode5-DP.app/Contents/Developer"
export BASEDIR="${XCODEDIR}/Platforms/iPhoneOS.platform/Developer"
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
export SDK="${BASEDIR}/SDKs/iPhoneOS7.0.sdk"
export CFLAGS="-Oz -mthumb -arch armv7 -isysroot ${SDK}"
export LDFLAGS="-mthumb -arch armv7 -isysroot ${SDK}"
export PREFIX="$(pwd)/libsodium-ios"
./configure --host=arm-apple-darwin10 \
--disable-shared \
--prefix="$PREFIX" && \
make clean && \
make -j3 install && \
echo "libsodium has been installed into $PREFIX"