| 1 |
# Script to build Qt for digiKam bundle. |
| 2 |
# |
| 3 |
# Copyright (c) 2015-2026 by Gilles Caulier <caulier dot gilles at gmail dot com> |
| 4 |
# |
| 5 |
# Redistribution and use is allowed according to the terms of the BSD license. |
| 6 |
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. |
| 7 |
# |
| 8 |
|
| 9 |
SET(EXTPREFIX_qt "${EXTPREFIX}") |
| 10 |
|
| 11 |
# NOTE: even if OpenSSL libs paths are passed as arguments, an hardcoded patch is necessary else linking fail. |
| 12 |
|
| 13 |
ExternalProject_Add(ext_qt5 |
| 14 |
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} |
| 15 |
|
| 16 |
URL https://download.qt.io/archive/qt/5.15/5.15.18/single/qt-everywhere-opensource-src-5.15.18.tar.xz |
| 17 |
URL_MD5 51d97438bd33f8f0042593cf6cc4490c |
| 18 |
|
| 19 |
PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/qt-appimage-support.patch |
| 20 |
&& ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/qt-appimage-openssl-linked.patch |
| 21 |
# && ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/qt-icu-hack.patch |
| 22 |
|
| 23 |
CMAKE_ARGS -DOPENSSL_LIBS='-l${EXTPREFIX}/local/lib/libssl.a -l${EXTPREFIX}/local/lib/libcrypto.a -lpthread -ldl' |
| 24 |
-DOPENSSL_INCDIR='${EXTPREFIX}/local/include/openssl/' |
| 25 |
-DOPENSSL_LIBDIR='${EXTPREFIX}/local/lib' |
| 26 |
|
| 27 |
CONFIGURE_COMMAND <SOURCE_DIR>/configure |
| 28 |
-prefix ${EXTPREFIX_qt} |
| 29 |
-verbose |
| 30 |
-release |
| 31 |
-opensource |
| 32 |
-confirm-license |
| 33 |
-sql-sqlite # Compile Sqlite SQL plugin |
| 34 |
-sql-mysql # Compile Mysql SQL plugin |
| 35 |
# -iconv # International string conversion |
| 36 |
-icu |
| 37 |
-fontconfig |
| 38 |
-system-freetype # Use system font rendering lib https://doc.qt.io/qt-5/qtgui-attribution-freetype.html |
| 39 |
-openssl-linked # hard link to static version of ssl libraries |
| 40 |
-nomake tests # Do not build test codes |
| 41 |
-nomake examples # Do not build basis example codes |
| 42 |
-no-compile-examples # Do not build extra example codes |
| 43 |
-no-qml-debug |
| 44 |
-no-mtdev |
| 45 |
-no-journald |
| 46 |
-no-syslog |
| 47 |
-no-tslib |
| 48 |
-no-directfb |
| 49 |
-no-linuxfb |
| 50 |
-no-libproxy |
| 51 |
-no-pch |
| 52 |
-qt-zlib |
| 53 |
-qt-pcre |
| 54 |
-qt-harfbuzz |
| 55 |
-xcb |
| 56 |
-skip qt3d # 3D core |
| 57 |
-skip qtactiveqt # No need ActiveX support |
| 58 |
-skip qtandroidextras # For embedded devices only |
| 59 |
-skip qtcharts # No need data models charts support |
| 60 |
-skip qtconnectivity # For embedded devices only |
| 61 |
-skip qtdatavis3d # no need 3D data visualizations support |
| 62 |
-skip qtdoc # No need documentation |
| 63 |
-skip qtgamepad # No need gamepad hardware support. |
| 64 |
-skip qtgraphicaleffects # No need Advanced graphical effects in GUI |
| 65 |
-skip qtlocation # No need geolocation |
| 66 |
-skip qtlottie # No need Adobe QtQuick After Effect animations integration |
| 67 |
-skip qtmacextras # For MacOS devices only |
| 68 |
-skip qtpurchasing # No need in-app purchase of products support |
| 69 |
-skip qtquickcontrols2 # QtQuick support for QML |
| 70 |
-skip qtremoteobjects # No need sharing QObject properties between processes support |
| 71 |
-skip qtscript # No need scripting (deprecated) |
| 72 |
-skip qtscxml # No need SCXML state machines support |
| 73 |
-skip qtsensors # For embedded devices only |
| 74 |
-skip qtserialbus # No need serial bus support |
| 75 |
-skip qtserialport # No need serial port support |
| 76 |
-skip qtvirtualkeyboard # No need virtual keyboard support |
| 77 |
-skip qtwayland # No support of Wayland in AppImage with Qt5 |
| 78 |
-skip qtwebglplugin # No need browser OpenGL extension support |
| 79 |
-skip qtwebsockets # No need websocket support |
| 80 |
-skip qtwebview # QML extension for QWebEngine |
| 81 |
-skip qtwinextras # For Windows devices only |
| 82 |
|
| 83 |
UPDATE_COMMAND "" |
| 84 |
BUILD_IN_SOURCE 1 |
| 85 |
ALWAYS 0 |
| 86 |
) |