mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Deploy Qt style DLL
This commit is contained in:
parent
7acebbd6e8
commit
1c296a1a78
@ -325,6 +325,16 @@ add_qt_platform_dlls() {
|
|||||||
QT_PLATFORMS[$CONFIG]="${QT_PLATFORMS[$CONFIG]} $@"
|
QT_PLATFORMS[$CONFIG]="${QT_PLATFORMS[$CONFIG]} $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare -A QT_STYLES
|
||||||
|
QT_STYLES["Release"]=""
|
||||||
|
QT_STYLES["Debug"]=""
|
||||||
|
QT_STYLES["RelWithDebInfo"]=""
|
||||||
|
add_qt_style_dlls() {
|
||||||
|
local CONFIG=$1
|
||||||
|
shift
|
||||||
|
QT_STYLES[$CONFIG]="${QT_STYLES[$CONFIG]} $@"
|
||||||
|
}
|
||||||
|
|
||||||
if [ -z $PLATFORM ]; then
|
if [ -z $PLATFORM ]; then
|
||||||
PLATFORM="$(uname -m)"
|
PLATFORM="$(uname -m)"
|
||||||
fi
|
fi
|
||||||
@ -868,6 +878,7 @@ fi
|
|||||||
fi
|
fi
|
||||||
add_runtime_dlls $CONFIGURATION "$(pwd)/bin/Qt5"{Core,Gui,Network,OpenGL,Widgets}${DLLSUFFIX}.dll
|
add_runtime_dlls $CONFIGURATION "$(pwd)/bin/Qt5"{Core,Gui,Network,OpenGL,Widgets}${DLLSUFFIX}.dll
|
||||||
add_qt_platform_dlls $CONFIGURATION "$(pwd)/plugins/platforms/qwindows${DLLSUFFIX}.dll"
|
add_qt_platform_dlls $CONFIGURATION "$(pwd)/plugins/platforms/qwindows${DLLSUFFIX}.dll"
|
||||||
|
add_qt_style_dlls $CONFIGURATION "$(pwd)/plugins/styles/qwindowsvistastyle${DLLSUFFIX}.dll"
|
||||||
done
|
done
|
||||||
echo Done.
|
echo Done.
|
||||||
else
|
else
|
||||||
@ -883,6 +894,7 @@ fi
|
|||||||
DIR=$(windowsPathAsUnix "${QT_SDK}")
|
DIR=$(windowsPathAsUnix "${QT_SDK}")
|
||||||
add_runtime_dlls $CONFIGURATION "${DIR}/bin/Qt5"{Core,Gui,Network,OpenGL,Widgets}${DLLSUFFIX}.dll
|
add_runtime_dlls $CONFIGURATION "${DIR}/bin/Qt5"{Core,Gui,Network,OpenGL,Widgets}${DLLSUFFIX}.dll
|
||||||
add_qt_platform_dlls $CONFIGURATION "${DIR}/plugins/platforms/qwindows${DLLSUFFIX}.dll"
|
add_qt_platform_dlls $CONFIGURATION "${DIR}/plugins/platforms/qwindows${DLLSUFFIX}.dll"
|
||||||
|
add_qt_style_dlls $CONFIGURATION "${DIR}/plugins/styles/qwindowsvistastyle${DLLSUFFIX}.dll"
|
||||||
done
|
done
|
||||||
echo Done.
|
echo Done.
|
||||||
fi
|
fi
|
||||||
@ -1060,6 +1072,13 @@ fi
|
|||||||
cp "$DLL" "${DLL_PREFIX}platforms"
|
cp "$DLL" "${DLL_PREFIX}platforms"
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
|
echo "- Qt Style DLLs..."
|
||||||
|
mkdir -p ${DLL_PREFIX}styles
|
||||||
|
for DLL in ${QT_STYLES[$CONFIGURATION]}; do
|
||||||
|
echo " $(basename $DLL)"
|
||||||
|
cp "$DLL" "${DLL_PREFIX}styles"
|
||||||
|
done
|
||||||
|
echo
|
||||||
done
|
done
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user