| 1 |
################################################################################ |
| 2 |
# |
| 3 |
# Script to build Qt 6 - config for Linux |
| 4 |
# See option details on config-help text file |
| 5 |
# |
| 6 |
# Copyright (c) 2015-2026 by Gilles Caulier <caulier dot gilles at gmail dot com> |
| 7 |
# |
| 8 |
# Redistribution and use is allowed according to the terms of the BSD license. |
| 9 |
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. |
| 10 |
# |
| 11 |
################################################################################ |
| 12 |
|
| 13 |
LIST(APPEND QT_CONFIG |
| 14 |
|
| 15 |
-cmake-generator Ninja # Qt6 use Ninja build system by default. |
| 16 |
|
| 17 |
-prefix ${EXTPREFIX_qt} # Framework install path. |
| 18 |
|
| 19 |
-release # no debug symbols |
| 20 |
-opensource # Build open-source framework edition |
| 21 |
-confirm-license # Silency ack the license |
| 22 |
|
| 23 |
-sql-mysql # Compile MySql SQL plugin |
| 24 |
-sql-sqlite # Compile Sqlite SQL plugin |
| 25 |
-fontconfig |
| 26 |
-system-freetype # Use system font rendering lib https://doc.qt.io/qt-5/qtgui-attribution-freetype.html |
| 27 |
-openssl-linked # Use last ssl libraries previously compiled as static. |
| 28 |
-system-zlib # Do not share the internal zlib and promote system lib instead to prevent mixed versions in client area. |
| 29 |
-icu |
| 30 |
|
| 31 |
# Compilation rules to disable. |
| 32 |
|
| 33 |
-nomake tests # Do not build test codes |
| 34 |
-nomake examples # Do not build basis example codes |
| 35 |
-no-qml-debug |
| 36 |
|
| 37 |
# Compilation rules to disable. |
| 38 |
|
| 39 |
-no-mtdev |
| 40 |
-no-journald |
| 41 |
-no-syslog |
| 42 |
-no-tslib |
| 43 |
-no-directfb |
| 44 |
-no-linuxfb |
| 45 |
-no-libproxy |
| 46 |
-no-pch |
| 47 |
|
| 48 |
# Specific 3rdParty libraries to enable. |
| 49 |
|
| 50 |
-qt-pcre |
| 51 |
-qt-harfbuzz |
| 52 |
-xcb |
| 53 |
|
| 54 |
# Qt components to disable |
| 55 |
# https://doc.qt.io/qt-6/qtmodules.html |
| 56 |
|
| 57 |
-skip qt3d |
| 58 |
-skip qtactiveqt |
| 59 |
-skip qtcanvas3d |
| 60 |
-skip qtcoap |
| 61 |
-skip qtconnectivity |
| 62 |
-skip qtdatavis3d |
| 63 |
-skip qtdoc |
| 64 |
-skip qtfeedback |
| 65 |
-skip qtgamepad |
| 66 |
-skip qtgraphs |
| 67 |
-skip qtgraphicaleffects |
| 68 |
-skip qtlanguageserver |
| 69 |
-skip qtlottie |
| 70 |
-skip qtopcua |
| 71 |
-skip qtpim |
| 72 |
-skip qtqa |
| 73 |
-skip qtpurchasing |
| 74 |
-skip qtquick3d |
| 75 |
-skip qtquick3dphysics |
| 76 |
-skip qtquickcontrols2 # QtQuick support for QML |
| 77 |
-skip qtquickeffectmaker |
| 78 |
-skip qtscript # No need scripting (deprecated) |
| 79 |
-skip qtquicktimeline |
| 80 |
-skip qtremoteobjects |
| 81 |
-skip qtrepotools |
| 82 |
-skip qtserialbus |
| 83 |
-skip qtvirtualkeyboard |
| 84 |
-skip qtwinextras # For Windows devices only |
| 85 |
-skip qtandroidextras # For embedded devices only |
| 86 |
-skip qtmacextras # For MacOS devices only |
| 87 |
-skip qtwebglplugin # No need browser OpenGL extension support |
| 88 |
) |
| 89 |
|
| 90 |
MESSAGE(STATUS "Use Linux configuration:") |
| 91 |
MESSAGE(STATUS ${QT_CONFIG}) |