mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
iOS: removed local build of libxml2
script/build.sh uses the builtin libxml2 and do not build locally, updated build.sh and Subsurface-mobile.pro to to the same. sadly enough xslt is not distributed for iOS so it must be built. Apart from simplifying the script it saves build time Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
5aa5398624
commit
6019688b98
2 changed files with 6 additions and 36 deletions
|
@ -109,20 +109,20 @@ LIBS += ../install-root/lib/libdivecomputer.a \
|
||||||
../install-root/lib/libgit2.a \
|
../install-root/lib/libgit2.a \
|
||||||
../install-root/lib/libzip.a \
|
../install-root/lib/libzip.a \
|
||||||
../install-root/lib/libxslt.a \
|
../install-root/lib/libxslt.a \
|
||||||
../install-root/lib/libxml2.a \
|
|
||||||
../googlemaps-build/libqtgeoservices_googlemaps.a \
|
../googlemaps-build/libqtgeoservices_googlemaps.a \
|
||||||
-liconv \
|
-liconv \
|
||||||
-lsqlite3
|
-lsqlite3 \
|
||||||
|
-lxml2
|
||||||
|
|
||||||
INCLUDEPATH += ../install-root/include/ \
|
INCLUDEPATH += ../install-root/include/ \
|
||||||
../install-root/lib/libzip/include \
|
../install-root/lib/libzip/include \
|
||||||
../install-root/include/libxml2 \
|
|
||||||
../install-root/include/libxstl \
|
../install-root/include/libxstl \
|
||||||
../install-root/include/libexstl \
|
../install-root/include/libexstl \
|
||||||
../install-root/include/openssl \
|
../install-root/include/openssl \
|
||||||
../../.. \
|
../../.. \
|
||||||
../../../core \
|
../../../core \
|
||||||
../../../mobile-widgets/qml/kirigami/src/libkirigami
|
../../../mobile-widgets/qml/kirigami/src/libkirigami \
|
||||||
|
/usr/include/libxml2
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
../../../core/libdivecomputer.h \
|
../../../core/libdivecomputer.h \
|
||||||
|
|
|
@ -44,7 +44,6 @@ if [ -z $QT_VERSION ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Which versions are we building against?
|
# Which versions are we building against?
|
||||||
LIBXML2_VERSION=2.9.2
|
|
||||||
LIBXSLT_VERSION=1.1.28
|
LIBXSLT_VERSION=1.1.28
|
||||||
LIBZIP_VERSION=0.11.2
|
LIBZIP_VERSION=0.11.2
|
||||||
LIBGIT2_VERSION=0.26.0
|
LIBGIT2_VERSION=0.26.0
|
||||||
|
@ -65,10 +64,8 @@ LIBFTDI_VERSION=1.2
|
||||||
# CURRENT_LIBSSH2="libssh2-1.8.0" (not used)
|
# CURRENT_LIBSSH2="libssh2-1.8.0" (not used)
|
||||||
# CURRENT_LIBGIT2="v0.26.0" (different, remark the v, which is the branch name)
|
# CURRENT_LIBGIT2="v0.26.0" (different, remark the v, which is the branch name)
|
||||||
#
|
#
|
||||||
# LIBXSLT and LIBXML2 are only used on this platform
|
# LIBXSLT are only used on this platform
|
||||||
#
|
#
|
||||||
# LIBXML2 states a version number, but the repo, does not contain a branch pr release
|
|
||||||
# so master is used.
|
|
||||||
|
|
||||||
|
|
||||||
# set up the Subsurface versions by hand
|
# set up the Subsurface versions by hand
|
||||||
|
@ -152,37 +149,10 @@ echo next building for $ARCH
|
||||||
target=$ARCH
|
target=$ARCH
|
||||||
hosttarget=$ARCH
|
hosttarget=$ARCH
|
||||||
|
|
||||||
if [ ! -d libxml2 ] ; then
|
|
||||||
git clone https://github.com/GNOME/libxml2.git libxml2
|
|
||||||
fi
|
|
||||||
pushd libxml2
|
|
||||||
if ! git checkout v$LIBXML2_VERSION ; then
|
|
||||||
echo "Can't find the right tag in libxml2 - giving up"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
autoreconf --install
|
|
||||||
popd
|
|
||||||
if [ ! -e $PKG_CONFIG_LIBDIR/libxml-2.0.pc ] ; then
|
|
||||||
mkdir -p libxml2-build-$ARCH
|
|
||||||
pushd libxml2-build-$ARCH
|
|
||||||
if [ "$ARCH_NAME" == "x86_64" ]; then
|
|
||||||
../libxml2/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --without-python --without-iconv --enable-static --disable-shared
|
|
||||||
else
|
|
||||||
../libxml2/configure --host=arm-apple-darwin --prefix=${PREFIX} --without-python --without-iconv --enable-static --disable-shared
|
|
||||||
fi
|
|
||||||
perl -pi -e 's/runtest\$\(EXEEXT\)//' Makefile
|
|
||||||
perl -pi -e 's/testrecurse\$\(EXEEXT\)//' Makefile
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d libxslt ] ; then
|
if [ ! -d libxslt ] ; then
|
||||||
git clone https://github.com/GNOME/libxslt.git libxslt
|
git clone https://github.com/GNOME/libxslt.git libxslt
|
||||||
fi
|
fi
|
||||||
# libxslt have too old config.sub
|
# libxslt have too old config.sub
|
||||||
cp libxml2/config.sub libxslt
|
|
||||||
pushd libxslt
|
pushd libxslt
|
||||||
if ! git checkout v$LIBXSLT_VERSION ; then
|
if ! git checkout v$LIBXSLT_VERSION ; then
|
||||||
echo "Can't find the right tag in libxslt - giving up"
|
echo "Can't find the right tag in libxslt - giving up"
|
||||||
|
@ -193,7 +163,7 @@ echo next building for $ARCH
|
||||||
if [ ! -e $PKG_CONFIG_LIBDIR/libxslt.pc ] ; then
|
if [ ! -e $PKG_CONFIG_LIBDIR/libxslt.pc ] ; then
|
||||||
mkdir -p libxslt-build-$ARCH_NAME
|
mkdir -p libxslt-build-$ARCH_NAME
|
||||||
pushd libxslt-build-$ARCH_NAME
|
pushd libxslt-build-$ARCH_NAME
|
||||||
../libxslt/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --with-libxml-prefix=${PREFIX} --without-python --without-crypto --enable-static --disable-shared
|
../libxslt/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --without-python --without-crypto --enable-static --disable-shared
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in a new issue