android's target

This commit is contained in:
Vítor Santos Costa 2015-02-17 20:28:05 +00:00
parent e4b0b8c0df
commit 2ebf6a5f0e

View File

@ -24,7 +24,10 @@ else
ANDROID_BUILD=linux
fi
# what android to compile for
# use `android list target` to check for available targets
export ANDROID_TARGET=3
# what android to compile for, use
ANDROID_IMAGE=first
# YAP_SRC="$HOME/Yap/yap-6.3"
@ -63,6 +66,18 @@ else
export GMPDIR="$HOME"/Yap/gmp-android
fi
# fetch SQLITE3 from https://github.com/Rupan/gmp,
# and have two versions: one to build myddas, the
# other to build the app.
#
# This one is used to build myddas
if test -d /scratch
then
export SQLITE3DIR=/scratch/vitor/sqlite3-android
else
export SQLITE3DIR="$HOME"/Yap/sqlite3-android
fi
#where I want to compile
#export BUILDTOOLCHAIN="$HOME/Yap/my-android-toolchain"
if test -d /scratch
@ -140,7 +155,16 @@ else
startemulator
rm -rf "$BUILDDROID"/*
cd "$BUILDDROID"
"$YAP_SRC"/configure --host="$ANDROID_ARCH"-linux-androideabi --prefix=`pwd` --enable-low-level-tracer --enable-debug-yap --enable-dynamic-loading --with-swig --with-gmp=$GMPDIR --with-sqlite=no --disable-chr #--enable-threads
"$YAP_SRC"/configure \
--host="$ANDROID_ARCH"-linux-androideabi \
--prefix=`pwd` \
--enable-low-level-tracer \
--enable-debug-yap \
--enable-dynamic-loading \
--with-swig \
--with-gmp=$GMPDIR \
--with-sqlite3=$SQLITE3DIR \
--with-chr=no #--enable-threads
make depend
make -j install
fi