2012-02-05 02:34:11 +00:00
|
|
|
#!/bin/sh -x
|
2012-11-29 01:28:46 +00:00
|
|
|
set -e
|
|
|
|
if test -d native; then
|
|
|
|
cd native
|
|
|
|
make $*
|
|
|
|
cd ../android-ndk-r7
|
|
|
|
ln -fs ../native/tools/qfcc/source/qfcc .
|
|
|
|
ln -fs ../native/tools/pak/pak .
|
|
|
|
fi
|
|
|
|
export ANDROID_NDK_ROOT=/opt/android-ndk-r7
|
2012-02-05 11:52:38 +00:00
|
|
|
export ANDROID_SYSROOT=$ANDROID_NDK_ROOT/android-14-toolchain/sysroot
|
2012-11-29 02:19:09 +00:00
|
|
|
export PKG_CONFIG_LIBDIR=$ANDROID_SYSROOT/lib/pkgconfig
|
|
|
|
export PKG_CONFIG_PATH=$ANDROID_SYSROOT/usr/local/lib/pkgconfig
|
2012-02-05 02:34:11 +00:00
|
|
|
export PATH=$ANDROID_NDK_ROOT/android-14-toolchain/bin:$PATH
|
|
|
|
|
2012-11-29 01:28:46 +00:00
|
|
|
make PAK='$(top_builddir)/pak' QFCC='$(top_builddir)/qfcc' $*
|