summaryrefslogtreecommitdiffstats
path: root/packaging/windows/mxe-based-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/windows/mxe-based-build.sh')
-rwxr-xr-xpackaging/windows/mxe-based-build.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh
index 154d64237..a6d6a1930 100755
--- a/packaging/windows/mxe-based-build.sh
+++ b/packaging/windows/mxe-based-build.sh
@@ -291,8 +291,18 @@ mkdir -p $STAGING_TESTS_DIR
for d in $QT_PLUGIN_DIRECTORIES
do
- cp -a $d $STAGING_DIR/plugins
- cp -a $d $STAGING_TESTS_DIR
+ mkdir -p $STAGING_DIR/plugins/$(basename $d)
+ mkdir -p $STAGING_TESTS_DIR/$(basename $d)
+ for f in $d/*
+ do
+ if [[ "$RELEASE" == "Release" ]] && ([[ ! -f ${f//d.dll/.dll} || "$f" == "${f//d.dll/.dll}" ]]) ; then
+ cp $f $STAGING_DIR/plugins/$(basename $d)
+ cp $f $STAGING_TESTS_DIR/$(basename $d)
+ elif [[ "$RELEASE" == "Debug" && ! -f ${f//.dll/d.dll} ]] ; then
+ cp $f $STAGING_DIR/plugins/$(basename $d)
+ cp $f $STAGING_TESTS_DIR/$(basename $d)
+ fi
+ done
done
for f in $EXTRA_MANUAL_DEPENDENCIES