summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-17 11:47:21 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-18 13:29:25 +0900
commit7eddaeea21ceda9a5066ccfc07b1ba3961eca0e5 (patch)
tree53c2cd6acf074930b2bafa763fc30cd749238f12 /packaging
parentfa8c7ecc58a945ae6e6d72e0e8b239d0f11c2eb7 (diff)
downloadsubsurface-7eddaeea21ceda9a5066ccfc07b1ba3961eca0e5.tar.gz
build-system: iOS, change location of 3rd party builds
move location of 3rd build to follow same pattern as desktop/mobile build update central .gitignore to silence libdivecomputer/build-ios, this should really be in libdivecomputer, but it is more easy to put it in a subsurface controlled file. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/ios/Subsurface-mobile.pro2
-rwxr-xr-xpackaging/ios/build.sh30
2 files changed, 16 insertions, 16 deletions
diff --git a/packaging/ios/Subsurface-mobile.pro b/packaging/ios/Subsurface-mobile.pro
index 5eeee4aee..5ed283869 100644
--- a/packaging/ios/Subsurface-mobile.pro
+++ b/packaging/ios/Subsurface-mobile.pro
@@ -136,7 +136,7 @@ LIBS += ../../../../install-root/ios/lib/libdivecomputer.a \
../../../../install-root/ios/lib/libgit2.a \
../../../../install-root/ios/lib/libzip.a \
../../../../install-root/ios/lib/libxslt.a \
- ../build-ios/googlemaps-build/libqtgeoservices_googlemaps.a \
+ ../../../../googlemaps/build-ios/libqtgeoservices_googlemaps.a \
-liconv \
-lsqlite3 \
-lxml2
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index ae687c721..93ccd6b09 100755
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -145,8 +145,8 @@ for ARCH in $ARCHS; do
autoreconf --install
popd
if [ ! -e $PKG_CONFIG_LIBDIR/libxslt.pc ] ; then
- mkdir -p build-ios/libxslt-build-$ARCH_NAME
- pushd build-ios/libxslt-build-$ARCH_NAME
+ mkdir -p ${SSRF_CLONE}/libxslt/build-ios/$ARCH_NAME
+ pushd ${SSRF_CLONE}/libxslt/build-ios/$ARCH_NAME
${SSRF_CLONE}/libxslt/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --without-python --without-crypto --enable-static --disable-shared
make
make install
@@ -157,8 +157,8 @@ for ARCH in $ARCHS; do
pushd ${SSRF_CLONE}/libzip
# don't waste time on building command line tools, examples, manual, and regression tests - and don't build the BZIP2 support we don't need
sed -i.bak 's/ADD_SUBDIRECTORY(src)//;s/ADD_SUBDIRECTORY(examples)//;s/ADD_SUBDIRECTORY(man)//;s/ADD_SUBDIRECTORY(regress)//' CMakeLists.txt
- mkdir -p build-ios/libzip-build-$ARCH_NAME
- pushd build-ios/libzip-build-$ARCH_NAME
+ mkdir -p ${SSRF_CLONE}/libzip/build-ios/$ARCH_NAME
+ pushd ${SSRF_CLONE}/libzip/build-ios/$ARCH_NAME
cmake -DBUILD_SHARED_LIBS="OFF" \
-DCMAKE_TOOLCHAIN_FILE="$TOOLCHAIN_FILE" \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
@@ -182,8 +182,8 @@ for ARCH in $ARCHS; do
popd
if [ ! -e $PKG_CONFIG_LIBDIR/libgit2.pc ] ; then
- mkdir -p build-ios/libgit2-build-$ARCH
- pushd build-ios/libgit2-build-$ARCH
+ mkdir -p ${SSRF_CLONE}/libgit2/build-ios/$ARCH
+ pushd ${SSRF_CLONE}/libgit2/build-ios/$ARCH
cmake ${SSRF_CLONE}/libgit2 \
-G "Unix Makefiles" \
-DBUILD_SHARED_LIBS="OFF" \
@@ -216,16 +216,16 @@ for ARCH in $ARCHS; do
autoreconf --install
popd
fi
- if [ ! -f build-ios/libdivecomputer-${ARCH}.SHA ] ; then
- echo "" > build-ios/libdivecomputer-${ARCH}.SHA
+ mkdir -p ../../libdivecomputer/build-ios/$ARCH
+ if [ ! -f ../../libdivecomputer/build-ios/${ARCH}/git.SHA ] ; then
+ echo "" > ../../libdivecomputer/build-ios/${ARCH}/git.SHA
fi
CURRENT_SHA=$(cd ../../libdivecomputer ; git describe)
- PREVIOUS_SHA=$(cat build-ios/libdivecomputer-${ARCH}.SHA)
+ PREVIOUS_SHA=$(cat ../../libdivecomputer/build-ios/${ARCH}/git.SHA)
if [ ! "$CURRENT_SHA" = "$PREVIOUS_SHA" ] ; then
- echo $CURRENT_SHA > build-ios/libdivecomputer-${ARCH}.SHA
- mkdir -p build-ios/libdivecomputer-build-$ARCH
- pushd build-ios/libdivecomputer-build-$ARCH
- ../../../../libdivecomputer/configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi --enable-ble
+ echo $CURRENT_SHA > ../../libdivecomputer/build-ios/${ARCH}/git.SHA
+ pushd ../../libdivecomputer/build-ios/$ARCH
+ ../../configure --host=${BUILDCHAIN} --prefix=${PREFIX} --enable-static --disable-shared --enable-examples=no --without-libusb --without-hidapi --enable-ble
make
make install
popd
@@ -234,8 +234,8 @@ for ARCH in $ARCHS; do
done
# build googlemaps
-mkdir -p build-ios/googlemaps-build
-pushd build-ios/googlemaps-build
+mkdir -p ${SSRF_CLONE}/googlemaps/build-ios
+pushd ${SSRF_CLONE}/googlemaps/build-ios
${IOS_QT}/${QT_VERSION}/ios/bin/qmake ${SSRF_CLONE}/googlemaps/googlemaps.pro CONFIG+=release
make
if [ "$DEBUGRELEASE" != "Release" ] ; then