android's target
This commit is contained in:
parent
e4b0b8c0df
commit
2ebf6a5f0e
@ -6,7 +6,7 @@
|
|||||||
#
|
#
|
||||||
# SDK_ROOT: where is the SDK
|
# SDK_ROOT: where is the SDK
|
||||||
# NDK_ROOT: and the NDK
|
# NDK_ROOT: and the NDK
|
||||||
# GMPDIR: get your copy of GMP from
|
# GMPDIR: get your copy of GMP from
|
||||||
# BUILDDROID: where we want to compile yap
|
# BUILDDROID: where we want to compile yap
|
||||||
|
|
||||||
|
|
||||||
@ -24,7 +24,10 @@ else
|
|||||||
ANDROID_BUILD=linux
|
ANDROID_BUILD=linux
|
||||||
fi
|
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
|
ANDROID_IMAGE=first
|
||||||
|
|
||||||
# YAP_SRC="$HOME/Yap/yap-6.3"
|
# YAP_SRC="$HOME/Yap/yap-6.3"
|
||||||
@ -63,6 +66,18 @@ else
|
|||||||
export GMPDIR="$HOME"/Yap/gmp-android
|
export GMPDIR="$HOME"/Yap/gmp-android
|
||||||
fi
|
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
|
#where I want to compile
|
||||||
#export BUILDTOOLCHAIN="$HOME/Yap/my-android-toolchain"
|
#export BUILDTOOLCHAIN="$HOME/Yap/my-android-toolchain"
|
||||||
if test -d /scratch
|
if test -d /scratch
|
||||||
@ -106,10 +121,10 @@ fi
|
|||||||
|
|
||||||
mkdir -p $BUILDDROID
|
mkdir -p $BUILDDROID
|
||||||
|
|
||||||
startemulator () {
|
startemulator () {
|
||||||
EMS=`ps -ef | grep emulator64| grep -v grep`
|
EMS=`ps -ef | grep emulator64| grep -v grep`
|
||||||
if test x"$EMS" = x
|
if test x"$EMS" = x
|
||||||
then
|
then
|
||||||
nohup emulator -avd $IMAGE &
|
nohup emulator -avd $IMAGE &
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -130,7 +145,7 @@ then
|
|||||||
make
|
make
|
||||||
elif test x$1 = xgo
|
elif test x$1 = xgo
|
||||||
then
|
then
|
||||||
echo "In make I believe"
|
echo "In make I believe"
|
||||||
elif test x$1 = xeclipse
|
elif test x$1 = xeclipse
|
||||||
then
|
then
|
||||||
startemulator
|
startemulator
|
||||||
@ -139,8 +154,17 @@ then
|
|||||||
else
|
else
|
||||||
startemulator
|
startemulator
|
||||||
rm -rf "$BUILDDROID"/*
|
rm -rf "$BUILDDROID"/*
|
||||||
cd "$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 depend
|
||||||
make -j install
|
make -j install
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user