0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-22 18:31:27 +00:00

Support more than just mingw cross compiling.

This is the beginnings of android support :)
This commit is contained in:
Bill Currie 2012-02-05 11:34:11 +09:00
parent 44c6aad7fe
commit 5fdad1c79c
6 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/bin/bash
# This file has no copyright assigned and is placed in the Public Domain.
# No warranty is given.
# When using the android cross compiler tools, the native Linux
# pkg-config executable works fine as long as the default PKG_CONFIG_LIBDIR
# is overridden.
export PKG_CONFIG_LIBDIR=$ANDROID_SYSROOT
# Also want to override the standard user defined PKG_CONFIG_PATH with
# a android specific one.
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH_ANDROID
# Now just execute pkg-config with the given command line args.
pkg-config $@

View file

@ -0,0 +1,10 @@
#!/bin/sh -x
export ANDROID_NDK_ROOT=/home/bill/Downloads/android-ndk-r7
export ANDROID_SYSROOT=$ANDROID_NDK_ROOT/android-14-toolchain/sysroot
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 \
$*

View file

@ -0,0 +1,8 @@
#!/bin/sh -x
HOST_CC=gcc
export HOST_CC
ANDROID_NDK_ROOT=/home/bill/Downloads/android-ndk-r7
export PATH=$ANDROID_NDK_ROOT/android-14-toolchain/bin:$PATH
make PAK=pak QFCC=qfcc $*