Fix mxe-build script to copy correct plugin DLLs for debug and release

For the plugin DDLs:
Debug: Only copy *d.DLLs
Release: Only copy *.DLLs

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-03-31 22:34:57 +02:00 committed by Dirk Hohndel
parent b919a9d700
commit 12c5a3db69

View file

@ -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