|
|
|
@ -87,6 +87,12 @@ case "$QT_PACKAGE" in |
|
|
|
*) log " ERROR: invalid configured Qt package: $QT_PACKAGE"; exit 1 ;; |
|
|
|
*) log " ERROR: invalid configured Qt package: $QT_PACKAGE"; exit 1 ;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
log " Runtime package: $QT_PACKAGE" |
|
|
|
log " Runtime package: $QT_PACKAGE" |
|
|
|
|
|
|
|
QT_COMPONENTS=(Core Gui Network Widgets) |
|
|
|
|
|
|
|
QT_PLUGINS=(platforms/qwindows.dll imageformats/qjpeg.dll imageformats/qwebp.dll) |
|
|
|
|
|
|
|
if [ -f "$BUILD_DIR/chatgui_capture_enabled.txt" ] && [ "$(tr -d '\r\n' < "$BUILD_DIR/chatgui_capture_enabled.txt")" = 1 ]; then |
|
|
|
|
|
|
|
QT_COMPONENTS+=(Multimedia MultimediaWidgets) |
|
|
|
|
|
|
|
QT_PLUGINS+=(multimedia/ffmpegmediaplugin.dll) |
|
|
|
|
|
|
|
fi |
|
|
|
MAIN_DLLS=( |
|
|
|
MAIN_DLLS=( |
|
|
|
"Qt${QT_MAJOR}Core.dll" "Qt${QT_MAJOR}Gui.dll" "Qt${QT_MAJOR}Network.dll" "Qt${QT_MAJOR}Widgets.dll" |
|
|
|
"Qt${QT_MAJOR}Core.dll" "Qt${QT_MAJOR}Gui.dll" "Qt${QT_MAJOR}Network.dll" "Qt${QT_MAJOR}Widgets.dll" |
|
|
|
"platforms/qwindows.dll" "imageformats/qjpeg.dll" "imageformats/qwebp.dll" |
|
|
|
"platforms/qwindows.dll" "imageformats/qjpeg.dll" "imageformats/qwebp.dll" |
|
|
|
@ -95,6 +101,8 @@ MAIN_DLLS=( |
|
|
|
if [ -d "$FFMPEG_BIN" ]; then |
|
|
|
if [ -d "$FFMPEG_BIN" ]; then |
|
|
|
MAIN_DLLS+=("avcodec-*.dll" "avformat-*.dll" "avutil-*.dll" "swscale-*.dll" "swresample-*.dll") |
|
|
|
MAIN_DLLS+=("avcodec-*.dll" "avformat-*.dll" "avutil-*.dll" "swscale-*.dll" "swresample-*.dll") |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
for component in "${QT_COMPONENTS[@]}"; do MAIN_DLLS+=("Qt${QT_MAJOR}${component}.dll"); done |
|
|
|
|
|
|
|
MAIN_DLLS+=("${QT_PLUGINS[@]}") |
|
|
|
DLLS_PRESENT=1 |
|
|
|
DLLS_PRESENT=1 |
|
|
|
for d in "${MAIN_DLLS[@]}"; do |
|
|
|
for d in "${MAIN_DLLS[@]}"; do |
|
|
|
if ! compgen -G "$BUILD_DIR/$d" >/dev/null; then |
|
|
|
if ! compgen -G "$BUILD_DIR/$d" >/dev/null; then |
|
|
|
@ -126,11 +134,11 @@ done |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Основные Qt DLL и динамические плагины всегда берём из выбранного комплекта. |
|
|
|
# Основные Qt DLL и динамические плагины всегда берём из выбранного комплекта. |
|
|
|
for component in Core Gui Network Widgets; do |
|
|
|
for component in "${QT_COMPONENTS[@]}"; do |
|
|
|
qt_dll="Qt${QT_MAJOR}${component}.dll" |
|
|
|
qt_dll="Qt${QT_MAJOR}${component}.dll" |
|
|
|
cp "$RUNTIME_PREFIX/bin/$qt_dll" "$BUILD_DIR/" || { log " ERROR: cannot deploy $qt_dll from $RUNTIME_PREFIX/bin"; exit 1; } |
|
|
|
cp "$RUNTIME_PREFIX/bin/$qt_dll" "$BUILD_DIR/" || { log " ERROR: cannot deploy $qt_dll from $RUNTIME_PREFIX/bin"; exit 1; } |
|
|
|
done |
|
|
|
done |
|
|
|
for plugin in platforms/qwindows.dll imageformats/qjpeg.dll imageformats/qwebp.dll; do |
|
|
|
for plugin in "${QT_PLUGINS[@]}"; do |
|
|
|
plugin_source="" |
|
|
|
plugin_source="" |
|
|
|
for dir in "$RUNTIME_PREFIX/share/qt${QT_MAJOR}/plugins" "$RUNTIME_PREFIX/lib/qt${QT_MAJOR}/plugins"; do |
|
|
|
for dir in "$RUNTIME_PREFIX/share/qt${QT_MAJOR}/plugins" "$RUNTIME_PREFIX/lib/qt${QT_MAJOR}/plugins"; do |
|
|
|
[ -f "$dir/$plugin" ] && { plugin_source="$dir/$plugin"; break; } |
|
|
|
[ -f "$dir/$plugin" ] && { plugin_source="$dir/$plugin"; break; } |
|
|
|
|