summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Jeremie Guichard <djebrest@gmail.com>2017-03-11 12:06:22 +0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-11 08:05:22 -0800
commit2e53faa8b4140e84869d558169eaaccedc314f3b (patch)
treed840706fa48bcc870a6ec7cdefc11057b66b0711 /packaging
parent1ff0aeed4c0cb5f682e0f16f7ac7b298a72ed3ef (diff)
downloadsubsurface-2e53faa8b4140e84869d558169eaaccedc314f3b.tar.gz
Add missing dependencies for Windows run of tests
Qt plugins and some other dependencies cannot be copied by CMake install targets. They need to be manually deployed to staging_tests directory too. Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/windows/mxe-based-build.sh32
1 files changed, 24 insertions, 8 deletions
diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh
index 8087c3b14..06db171ac 100755
--- a/packaging/windows/mxe-based-build.sh
+++ b/packaging/windows/mxe-based-build.sh
@@ -257,17 +257,33 @@ echo "Starting Subsurface Build"
rm -rf subsurface
# first copy the Qt plugins in place
-mkdir -p subsurface/staging/plugins
-cd subsurface/staging/plugins
-cp -a "$BASEDIR"/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/iconengines .
-cp -a "$BASEDIR"/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/imageformats .
-cp -a "$BASEDIR"/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/platforms .
-cp -a "$BASEDIR"/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/printsupport .
+QT_PLUGIN_DIRECTORIES="$BASEDIR/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/iconengines \
+$BASEDIR/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/imageformats \
+$BASEDIR/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/platforms \
+$BASEDIR/mxe/usr/i686-w64-mingw32.shared/qt5/plugins/printsupport"
# for some reason we aren't installing libssrfmarblewidget.dll and # Qt5Xml.dll
# I need to figure out why and fix that, but for now just manually copy that as well
-cp "$BASEDIR"/mxe/usr/i686-w64-mingw32.shared/lib/libssrfmarblewidget.dll "$BUILDDIR"/subsurface/staging
-cp "$BASEDIR"/mxe/usr/i686-w64-mingw32.shared/qt5/bin/Qt5Xml.dll "$BUILDDIR"/subsurface/staging
+EXTRA_MANUAL_DEPENDENCIES="$BASEDIR/mxe/usr/i686-w64-mingw32.shared/lib/libssrfmarblewidget.dll \
+$BASEDIR/mxe/usr/i686-w64-mingw32.shared/qt5/bin/Qt5Xml.dll"
+
+STAGING_DIR=$BUILDDIR/subsurface/staging
+STAGING_TESTS_DIR=$BUILDDIR/subsurface/staging_tests
+
+mkdir -p $STAGING_DIR/plugins
+mkdir -p $STAGING_TESTS_DIR
+
+for d in $QT_PLUGIN_DIRECTORIES
+do
+ cp -a $d $STAGING_DIR/plugins
+ cp -a $d $STAGING_TESTS_DIR
+done
+
+for f in $EXTRA_MANUAL_DEPENDENCIES
+do
+ cp $f $STAGING_DIR
+ cp $f $STAGING_TESTS_DIR
+done
cd "$BUILDDIR"/subsurface