mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
b919a9d700
commit
12c5a3db69
1 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue