summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-26 14:24:34 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-26 14:24:34 -0700
commitc6ec742d113f609604fc5fb76dcb2a214a50f3d8 (patch)
tree363d3f9f8aae7d9524948e962503d997a449852c
parent755ecf607a546cbaa24d80e0e990a460ef483052 (diff)
downloadsubsurface-c6ec742d113f609604fc5fb76dcb2a214a50f3d8.tar.gz
Build libzip with cmake when cross building for Windows
This seems to fix our issues with being able to create zip files on the fly (needed for the divelogs.de access). Fixes #955 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-xpackaging/windows/mxe-based-build.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh
index ec9deee91..1f0898b02 100755
--- a/packaging/windows/mxe-based-build.sh
+++ b/packaging/windows/mxe-based-build.sh
@@ -224,10 +224,9 @@ if [[ ! -d libzip || -f build.libzip ]] ; then
rm -f build.libzip
mkdir -p libzip
cd libzip
-# cmake -DCMAKE_TOOLCHAIN_FILE="$BASEDIR"/mxe/usr/i686-w64-mingw32.shared/share/cmake/mxe-conf.cmake \
-# -DCMAKE_BUILD_TYPE=Release \
-# "$BASEDIR"/libzip
- "$BASEDIR"/libzip/configure --host=i686-w64-mingw32.shared --prefix="$BASEDIR"/mxe/usr/i686-w64-mingw32.shared
+ cmake -DCMAKE_TOOLCHAIN_FILE=$BASEDIR/mxe/usr/i686-w64-mingw32.shared/share/cmake/mxe-conf.cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ $BASEDIR/libzip
make $JOBS
make install
fi