2022-01-28 05:58:37 +00:00
|
|
|
set(QT_REPO_MODULE_VERSION "6.4.0")
|
2021-05-27 08:24:35 +00:00
|
|
|
set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1")
|
2020-11-30 07:46:49 +00:00
|
|
|
|
2021-10-04 10:20:26 +00:00
|
|
|
# Minimum requirement for building Qt
|
2021-07-22 14:23:51 +00:00
|
|
|
set(QT_SUPPORTED_MIN_CMAKE_VERSION_FOR_BUILDING_QT_SHARED "3.16")
|
2021-08-05 11:28:38 +00:00
|
|
|
set(QT_SUPPORTED_MIN_CMAKE_VERSION_FOR_BUILDING_QT_STATIC "3.21")
|
2021-07-22 14:23:51 +00:00
|
|
|
|
2021-10-04 10:20:26 +00:00
|
|
|
# Minimum requirement for consuming Qt in a user project.
|
2021-07-22 14:23:51 +00:00
|
|
|
# This might be different in the future, e.g. be lower than the requirement for
|
|
|
|
# building Qt.
|
|
|
|
set(QT_SUPPORTED_MIN_CMAKE_VERSION_FOR_USING_QT_SHARED "3.16")
|
2021-08-05 11:28:38 +00:00
|
|
|
set(QT_SUPPORTED_MIN_CMAKE_VERSION_FOR_USING_QT_STATIC "3.21")
|
2020-11-30 07:46:49 +00:00
|
|
|
|
|
|
|
# Policy settings for commands defined by qtbase. These will also be injected
|
|
|
|
# into the top level policy scope of each Qt module when building Qt so that
|
|
|
|
# modules have the same policy settings as qtbase by default. They can be
|
|
|
|
# overridden by individual Qt modules in their own .cmake.conf files if needed.
|
|
|
|
#
|
|
|
|
# NOTE: These two values are also hard-coded in QtBuildInternalsConfig.cmake
|
|
|
|
# because that file is used in-place by a superbuild, so there is no
|
|
|
|
# opportunity for substituting the values from here. Keep both locations
|
|
|
|
# in sync.
|
2021-07-06 15:55:30 +00:00
|
|
|
set(QT_MIN_NEW_POLICY_CMAKE_VERSION "3.16")
|
2021-08-05 11:28:38 +00:00
|
|
|
set(QT_MAX_NEW_POLICY_CMAKE_VERSION "3.21")
|
QVariant: reduce transitive includes
Forward declare more types in qvariant.h, and do the same for qdebug.h
(which will be removed from qvariant in a separate patch).
As we now only forward declare containers (e.g. QMap, QList, ...), code
which includes <QVariantMap>, <QVariantList>... breaks without further
adjustment: So far, those headers simply included qvariant.h. However,
by introducing new actual headers for those types and adjusting
sync.profile, we can avoid this issue.
To avoid breaking leaf modules and user code, we make the change opt-in:
Unless QT_LEAN_HEADERS is defined to a value of >= 1, we still
include the superfluous headers. We also set this macro in qtbase via
QT_EXTRA_INTERNAL_TARGET_DEFINES.
[ChangeLog][Potentially Source-Incompatible Changes] qvariant.h no
longer includes <QList>, <QMap>, <QHash>, <QVarLengthArray>, <QSet> and
<QObject>. Code that relied on transitive includes might need to
explicitly include those headers now. Notably, including <QVariant> (or
qvariant.h) is no longer sufficient when using QVariant(List|Map|Hash).
Using them now requires including respectively <QVariantList>,
<QVariantMap>, or <QVariantHash>. Alternatively, including <QVariant>
and the <QList>, <QMap> or <QHash> header also works.
[ChangeLog][Potentially Source-Incompatible Changes] qdebug.h no longer
includes <QSet>, <QHash>, <QVarLengthArray> and <QMap>. Code that relied
on transitive includes might need to explicitly include those headers
now.
Task-number: QTBUG-97601
Change-Id: I142e5de709ed0b305716369a3266389ab7fbbb71
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2022-02-06 19:09:54 +00:00
|
|
|
|
|
|
|
# set (git) module specific defines
|
|
|
|
set(QT_EXTRA_INTERNAL_TARGET_DEFINES "QT_LEAN_HEADERS=1")
|