X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fandroid%2Fsigrok-cross-android;h=ffd61d32f90c1b0d6943dfef04dc5b821af0f699;hp=d024c7f6751b4eb3d26aeb6f918dd730e09c10e1;hb=8c7df9803dc795e641525b24f030281bd5a00198;hpb=a4c5908972c114c7c9608e599fe2ea05ec5db501 diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index d024c7f..ffd61d3 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -16,8 +16,7 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## set -e @@ -63,7 +62,7 @@ PARALLEL="-j 2" VER_LIBICONV=1.14 VER_GETTEXT=0.19.7 -VER_ZLIB=1.2.8 +VER_ZLIB=1.2.11 VER_PCRE=8.38 VER_LIBFFI=3.2.1 VER_GLIB=2.48.1 @@ -90,6 +89,8 @@ SF_MIRROR=download.sourceforge.net WGET="wget -c --quiet" GIT_CLONE="git clone --depth=1" +REPO_BASE="git://sigrok.org" + case "$TOOLCHAIN_TRIPLET" in arm*) TARGET_ARCH=armeabi;; mips*) TARGET_ARCH=mips;; @@ -226,6 +227,7 @@ ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no ac_cv_func_pipe2=no ac_cv_func_fd sed -i "s/^#zlib/zlib/g" Modules/Setup sed -i "s/^#math/math/g" Modules/Setup sed -i "s/^#time/time/g" Modules/Setup +sed -i "s/^#_struct/_struct/g" Modules/Setup make PYTHON_FOR_BUILD='_PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) ./hostpython' install $V cd .. @@ -271,7 +273,7 @@ make install $V cd .. # pcre (needed for glib) -$WGET ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$VER_PCRE.tar.gz +$WGET https://ftp.pcre.org/pub/pcre/pcre-$VER_PCRE.tar.gz tar xfz pcre-$VER_PCRE.tar.gz cd pcre-$VER_PCRE ./configure $C --disable-cpp --enable-utf --enable-unicode-properties @@ -330,7 +332,7 @@ make install $V cd .. # libserialport -$GIT_CLONE git://sigrok.org/libserialport +$GIT_CLONE $REPO_BASE/libserialport cd libserialport ./autogen.sh mkdir build @@ -367,7 +369,7 @@ if [ x"$CPPFLAGS_STL" != x ]; then fi # libsigrok -$GIT_CLONE git://sigrok.org/libsigrok +$GIT_CLONE $REPO_BASE/libsigrok cd libsigrok ./autogen.sh mkdir build @@ -378,7 +380,7 @@ make datadir='$(datarootdir)' install $V cd ../.. # libsigrokdecode -$GIT_CLONE git://sigrok.org/libsigrokdecode +$GIT_CLONE $REPO_BASE/libsigrokdecode cd libsigrokdecode ./autogen.sh mkdir build @@ -389,7 +391,7 @@ make install $V cd ../.. # sigrok-firmware -$GIT_CLONE git://sigrok.org/sigrok-firmware +$GIT_CLONE $REPO_BASE/sigrok-firmware cd sigrok-firmware ./autogen.sh mkdir build @@ -407,7 +409,7 @@ cp *.fw $PREFIX/share/sigrok-firmware/ cd .. # sigrok-cli -$GIT_CLONE git://sigrok.org/sigrok-cli +$GIT_CLONE $REPO_BASE/sigrok-cli cd sigrok-cli ./autogen.sh mkdir build @@ -441,7 +443,7 @@ $WGET http://$SF_MIRROR/project/boost/boost/$VER_BOOST/boost_${VER_BOOST//./_}.t tar xfj boost_${VER_BOOST//./_}.tar.bz2 cd boost_${VER_BOOST//./_} patch -p0 < ../../boost_wchar.patch -CC= ./bootstrap.sh --with-toolset=gcc --with-libraries=filesystem,system,thread,serialization,test --without-icu +CC= ./bootstrap.sh --with-toolset=gcc --with-libraries=filesystem,system,serialization,test --without-icu echo "using gcc : $NDK_TOOLCHAIN_VERSION : \"${TOOLCHAIN_TRIPLET}-g++\" : \"$SYSROOT -I$PREFIX/include $CPPFLAGS_STL\" \"$SYSROOT -L$PREFIX/lib $LDFLAGS_STL -lgnustl_shared\" ;" > user-config.jam ./b2 -q -d+2 --ignore-site-config --user-config=user-config.jam toolset=gcc variant=release link=shared threading=multi runtime-link=shared target-os=android --prefix=$PREFIX --layout=system install $PARALLEL cd .. @@ -482,7 +484,7 @@ make install $V cd .. # sigrok-androidutils -$GIT_CLONE git://sigrok.org/sigrok-androidutils +$GIT_CLONE $REPO_BASE/sigrok-androidutils cd sigrok-androidutils ./autogen.sh ./configure $C --with-android-sdk="${ANDROID_SDK}" --with-android-platform=android-$VER_AND_API @@ -494,9 +496,10 @@ cd .. find $PREFIX -iname "*.so" -exec ${TOOLCHAIN_TRIPLET}-strip -S {} \; # PulseView -$GIT_CLONE git://sigrok.org/pulseview +$GIT_CLONE $REPO_BASE/pulseview cd pulseview patch -p1 < ../../pv_cmake_pkgconfig_fix.patch +sed -i -e "s,\t\tandroid:versionName=.*$,\t\tandroid:versionName=\"`date -Iseconds`\"," android/AndroidManifest.xml cmake $CM -DENABLE_TESTS=y . make $PARALLEL $V ${TOOLCHAIN_TRIPLET}-strip -S libs/$TARGET_ARCH/libpulseview.so