mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
568b719c1b
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.
23 lines
633 B
Bash
Executable file
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 \
|
|
$*
|
|
|