mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Add build scripts for iOS, Android and MSYS.
This commit is contained in:
parent
d541144327
commit
4e51588674
20
dist-build/android.sh
Executable file
20
dist-build/android.sh
Executable file
@ -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
|
10
dist-build/iphone.sh
Executable file
10
dist-build/iphone.sh
Executable file
@ -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
|
5
dist-build/msys.sh
Executable file
5
dist-build/msys.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#! /bin/sh
|
||||
|
||||
export CFLAGS="-Os -march=pentium2 -mtune=nocona"
|
||||
|
||||
./configure --disable-ssp && make -j3
|
Loading…
Reference in New Issue
Block a user