################################################################################ # # Script to build Qt 6 - config for MacOS # See option details on config-help text file # # Copyright (c) 2015-2026 by Gilles Caulier # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # ################################################################################ LIST(APPEND QT_CONFIG -cmake-generator Ninja # Qt6 use Ninja build system by default. -prefix ${EXTPREFIX_qt} # Framework install path. -release # no debug symbols -opensource # Build open-source framework edition -confirm-license # Silency ack the license -sql-mysql # Compile MySql SQL plugin -sql-sqlite # Compile Sqlite SQL plugin -fontconfig -system-freetype # Use system font rendering lib https://doc.qt.io/qt-5/qtgui-attribution-freetype.html -system-zlib # Do not share the internal zlib and promote system lib instead to prevent mixed versions in client area. -icu # Compilation rules to disable. -nomake tests # Do not build test codes -nomake examples # Do not build basis example codes -no-qml-debug # Compilation rules to disable. -no-mtdev -no-journald -no-syslog -no-tslib -no-directfb -no-linuxfb -no-libproxy -no-pch # Specific 3rdParty libraries to enable. -qt-pcre -qt-harfbuzz # Qt components to disable # https://doc.qt.io/qt-6/qtmodules.html -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtfeedback -skip qtgamepad -skip qtgraphs -skip qtgraphicaleffects -skip qtlanguageserver -skip qtlottie -skip qtopcua -skip qtpim -skip qtqa -skip qtpurchasing -skip qtquick3d -skip qtquick3dphysics -skip qtquickcontrols2 # QtQuick support for QML -skip qtquickeffectmaker -skip qtscript # No need scripting (deprecated) -skip qtquicktimeline -skip qtremoteobjects -skip qtrepotools -skip qtserialbus -skip qtvirtualkeyboard -skip qtwinextras # For Windows devices only -skip qtandroidextras # For embedded devices only -skip qtmacextras # For MacOS devices only -skip qtwebglplugin # No need browser OpenGL extension support ) MESSAGE(STATUS "Use MacOS configuration:") MESSAGE(STATUS ${QT_CONFIG})