set -e
# The path where Android NDK is located.
-ANDROID_NDK=/usr/local/android-ndk-r9d
+ANDROID_NDK=$HOME/android/android-ndk-r9d
# The path where Android SDK is located.
-ANDROID_SDK=/usr/local/android
+ANDROID_SDK=$HOME/android/android-sdk-linux
# The path where your Android toolchain directory is located.
TOOLCHAIN=$HOME/android/android-arm-toolchain
cd Python-$VER_PYTHON
./configure
make python $PARALLEL
-make Parser/pgen $PARALLEL
mv python hostpython
-mv Parser/pgen Parser/hostpgen
cd ..
# -----------------------------------------------------------------------------
patch -p1 < ../../Python-$VER_PYTHON.patch
ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no ac_cv_func_pipe2=no ac_cv_func_fdatasync=no ac_cv_func_killpg=no ac_cv_func_waitid=no ac_cv_func_sigaltstack=no ./configure $C --build=x86_64-linux-gnu --disable-ipv6
sed -i "s/^#zlib/zlib/g" Modules/Setup
-make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen install $PARALLEL
+make PYTHON_FOR_BUILD=./hostpython install $PARALLEL
cd ..
# libiconv (needed for glib)
cd ..
# sigrok-androidutils
-$GIT_CLONE git://github.com/zeldin/sigrok-androidutils
+$GIT_CLONE git://sigrok.org/sigrok-androidutils
cd sigrok-androidutils
./autogen.sh
./configure $C --with-android-sdk="${ANDROID_SDK}"
cd ..
# PulseView
-$GIT_CLONE -b android git://github.com/zeldin/pulseview
-# $GIT_CLONE git://sigrok.org/pulseview
+$GIT_CLONE git://sigrok.org/pulseview
cd pulseview
cmake $CM -DANDROID_STL_PATH=${ANDROID_NDK}/sources/cxx-stl .
make $PARALLEL