diff options
author | Craig Scott <craig.scott@qt.io> | 2021-09-22 15:57:09 +1000 |
---|---|---|
committer | Craig Scott <craig.scott@qt.io> | 2021-09-24 22:07:24 +1000 |
commit | 3ce0672143d2eb3c3809f82998a4d71c5800d77a (patch) | |
tree | 134336d69dcb8692c59b8c2c26bba30de0322551 /src/corelib/Qt6CoreMacros.cmake | |
parent | d3a622f8173c3c9cde4b29f7c984c7c48bfc18cc (diff) | |
download | qtbase-3ce0672143d2eb3c3809f82998a4d71c5800d77a.tar.gz |
Add docs for qt_set_finalizer_mode()
Task-number: QTBUG-95712
Pick-to: 6.2 6.2.0
Change-Id: Ie7b9282cfc6a27415db5e623a66317c9681c3991
Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/Qt6CoreMacros.cmake')
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index 8e3564e36e..526738b16a 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -954,26 +954,6 @@ if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS) endif() # This function is currently in Technical Preview. It's signature may change or be removed entirely. - -# This function allows enabling or disabling finalizer modes for a specific target. -# Currently, the only supported finalizer mode is for plugin importing in static Qt builds which -# is called 'static_plugins'. You can enable / disable it by calling -# -# qt6_set_finalizer_mode(${target} ENABLE MODES "static_plugins") -# qt6_set_finalizer_mode(${target} DISABLE MODES "static_plugins") -# -# When the "static_plugins" finalizer mode is enabled, all plugins initializer object libraries are -# directly linked to the given ${target} (executable or shared library). -# This prevents cycles between Qt provided static libraries and reduces link time, thanks to the -# libraries not being repeated on the link line because they are not part of a cycle anymore. -# -# When the finalizer mode is disabled, each plugin initializer is propagated via usage requirements -# of its associated module, which may cause cycles in the current build system implementation. -# -# The "static_plugins" finalizer mode is enabled by default if: -# - the project calls qt_finalize_target explicitly at the end of the project file or -# - the project uses qt_add_executable and a CMake version greater than or equal to 3.19 -# (which will DEFER CALL qt_finalize_target) function(qt6_set_finalizer_mode target) cmake_parse_arguments(arg "ENABLE;DISABLE" "" "MODES" ${ARGN}) if(NOT arg_ENABLE AND NOT arg_DISABLE) |