quakeforge/tools/cross/droid/cross-configure.sh
Bill Currie 568b719c1b Make a bunch of improvements to the droid cross scripts.
Native versions of qfcc and pak are now built automatically, and the
android toolchain now defaults to a more sensible place. Also, the separate
pkg-config replacement is no longer necessary.
2012-11-29 10:30:36 +09:00

23 lines
633 B
Bash
Executable file

#!/bin/sh -x
set -e
mkdir -p native android-ndk-r7
cd native
../../configure \
--disable-shared \
--without-clients \
--without-servers \
--with-tools=qfcc,pak
cd ../android-ndk-r7
export ANDROID_NDK_ROOT=/opt/android-ndk-r7
export ANDROID_SYSROOT=$ANDROID_NDK_ROOT/android-14-toolchain/sysroot
export PKG_CONFIG_LIBDIR=$ANDROID_SYSROOT
export PKG_CONFIG_PATH=$ANDROID_SYSROOT/usr/local/lib/pkgconfig
export PATH=$ANDROID_NDK_ROOT/android-14-toolchain/bin:$PATH
../../configure \
--build=x86_64-unknown-linux-gnu \
--with-sysroot=$ANDROID_SYSROOT \
--host=arm-linux-androideabi \
--with-endian=little \
--disable-sdl \
$*