aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/ios/build.sh
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-05-08 17:27:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-10 20:43:22 -0700
commit5aa5398624c8d404abdf3a4023a5a504dd3e4366 (patch)
treedb886dc8a968e90c264870795227a8f626ffedf1 /packaging/ios/build.sh
parenta0030a488aafc74d36ce7511db9da229010ce528 (diff)
downloadsubsurface-5aa5398624c8d404abdf3a4023a5a504dd3e4366.tar.gz
iOS: removed local build of sqllite3
script/build.sh uses the builtin sqllite3 and do not build locally, updated build.sh and Subsurface-mobile.pro to to the same. Apart from simplifying the script it saves build time Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'packaging/ios/build.sh')
-rwxr-xr-xpackaging/ios/build.sh32
1 files changed, 2 insertions, 30 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index a6197fbe7..d37bd7107 100755
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -44,7 +44,6 @@ if [ -z $QT_VERSION ] ; then
fi
# Which versions are we building against?
-SQLITE_VERSION=3090200
LIBXML2_VERSION=2.9.2
LIBXSLT_VERSION=1.1.28
LIBZIP_VERSION=0.11.2
@@ -66,7 +65,7 @@ LIBFTDI_VERSION=1.2
# CURRENT_LIBSSH2="libssh2-1.8.0" (not used)
# CURRENT_LIBGIT2="v0.26.0" (different, remark the v, which is the branch name)
#
-# SQLITE, LIBXSLT and LIBXML2 are only used on this platform
+# LIBXSLT and LIBXML2 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.
@@ -134,7 +133,7 @@ echo next building for $ARCH
declare -x LD=`xcrun -sdk $SDK_NAME -find ld`
declare -x CFLAGS="-arch $ARCH_NAME -isysroot $SDK_DIR -miphoneos-version-min=6.0 -I$SDK_DIR/usr/include -fembed-bitcode"
declare -x CXXFLAGS="$CFLAGS"
- declare -x LDFLAGS="$CFLAGS -lpthread -lc++ -L$SDK_DIR/usr/lib -fembed-bitcode"
+ declare -x LDFLAGS="$CFLAGS -lsqlite3 -lpthread -lc++ -L$SDK_DIR/usr/lib -fembed-bitcode"
# openssl build stuff.
@@ -153,33 +152,6 @@ echo next building for $ARCH
target=$ARCH
hosttarget=$ARCH
- if [ ! -e sqlite-autoconf-${SQLITE_VERSION}.tar.gz ] ; then
- curl -O http://www.sqlite.org/2015/sqlite-autoconf-${SQLITE_VERSION}.tar.gz
- fi
- if [ ! -e sqlite-autoconf-${SQLITE_VERSION} ] ; then
- tar -zxf sqlite-autoconf-${SQLITE_VERSION}.tar.gz
- fi
- if [ ! -e $PKG_CONFIG_LIBDIR/sqlite3.pc ] ; then
- mkdir -p sqlite-build-$ARCH_NAME
- pushd sqlite-build-$ARCH_NAME
- CFLAGS="${CFLAGS} -DSQLITE_ENABLE_LOCKING_STYLE=0"
-
- ../sqlite-autoconf-${SQLITE_VERSION}/configure \
- --prefix="$PREFIX" \
- --host="$BUILDCHAIN" \
- --enable-static \
- --disable-shared \
- --disable-readline \
- --disable-dynamic-extensions
-
- # running make tries to build the command line executable which fails
- # so let's hack around that
- make libsqlite3.la
- touch sqlite3
- make install-libLTLIBRARIES install-pkgconfigDATA
- popd
- fi
-
if [ ! -d libxml2 ] ; then
git clone https://github.com/GNOME/libxml2.git libxml2
fi