diff --git a/tools/cross/droid/arm-linux-androideabi-pkg-config b/tools/cross/droid/arm-linux-androideabi-pkg-config new file mode 100755 index 000000000..e66fc9b1f --- /dev/null +++ b/tools/cross/droid/arm-linux-androideabi-pkg-config @@ -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 $@ diff --git a/tools/cross/droid/cross-configure.sh b/tools/cross/droid/cross-configure.sh new file mode 100755 index 000000000..79b273000 --- /dev/null +++ b/tools/cross/droid/cross-configure.sh @@ -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 \ + $* + diff --git a/tools/cross/droid/cross-make.sh b/tools/cross/droid/cross-make.sh new file mode 100755 index 000000000..3dd44fd1d --- /dev/null +++ b/tools/cross/droid/cross-make.sh @@ -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 $* + diff --git a/tools/cross/cross-configure.sh b/tools/cross/mingw/cross-configure.sh similarity index 100% rename from tools/cross/cross-configure.sh rename to tools/cross/mingw/cross-configure.sh diff --git a/tools/cross/cross-make.sh b/tools/cross/mingw/cross-make.sh similarity index 100% rename from tools/cross/cross-make.sh rename to tools/cross/mingw/cross-make.sh diff --git a/tools/cross/cross.sh b/tools/cross/mingw/cross.sh similarity index 100% rename from tools/cross/cross.sh rename to tools/cross/mingw/cross.sh