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:
parent
44c6aad7fe
commit
5fdad1c79c
6 changed files with 34 additions and 0 deletions
16
tools/cross/droid/arm-linux-androideabi-pkg-config
Executable file
16
tools/cross/droid/arm-linux-androideabi-pkg-config
Executable 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 $@
|
10
tools/cross/droid/cross-configure.sh
Executable file
10
tools/cross/droid/cross-configure.sh
Executable 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 \
|
||||
$*
|
||||
|
8
tools/cross/droid/cross-make.sh
Executable file
8
tools/cross/droid/cross-make.sh
Executable 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 $*
|
||||
|
Loading…
Reference in a new issue