summaryrefslogtreecommitdiffstats
path: root/packaging/ios
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-05 17:31:55 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-05 17:54:01 -0700
commit7b4d661ff2127de7adc6b46521687d178439365d (patch)
tree6651d9dc024fd11d814ac07273b6ffcdc51aec07 /packaging/ios
parent81ca29e688d941cb02a350201d0ad7481b816aee (diff)
downloadsubsurface-7b4d661ff2127de7adc6b46521687d178439365d.tar.gz
iOS: quiet verbose warnings for libzip
And don't try to build manuals, regression tests and examples, while we are at it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ios')
-rwxr-xr-xpackaging/ios/build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index 64a2d97c4..5286a3631 100755
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -150,6 +150,9 @@ for ARCH in $ARCHS; do
fi
if [ ! -e $PKG_CONFIG_LIBDIR/libzip.pc ] ; then
+ 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)//;s/FIND_PACKAGE(BZip2)/# FIND_PACKAGE(BZip2)/' CMakeLists.txt
mkdir -p build-ios/libzip-build-$ARCH_NAME
pushd build-ios/libzip-build-$ARCH_NAME
cmake -DBUILD_SHARED_LIBS="OFF" \
@@ -157,9 +160,13 @@ for ARCH in $ARCHS; do
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DCMAKE_PREFIX_PATH=${PREFIX} \
${SSRF_CLONE}/libzip
+ # quiet the super noise warnings
+ sed -i.bak 's/C_FLAGS = /C_FLAGS = -Wno-nullability-completeness -Wno-expansion-to-defined /' lib/CMakeFiles/zip.dir/flags.make
make
make install
popd
+ mv CMakeLists.txt.bak CMakeLists.txt
+ popd
fi
pushd ${SSRF_CLONE}/libgit2