qt5base-lts/mkspecs/features
Alexandru Croitor e9a797799e CMake: Add Qt6 forward compatible CMake API and targets
Create Qt:: versionless targets for libraries and tools. So
Qt::Core will link to Qt5::Core.

Add additional feature properties to targets, with the same name
they have in Qt6: QT_ENABLED_PUBLIC_FEATURES,
QT_DISABLED_PUBLIC_FEATURES, QT_ENABLED_PRIVATE_FEATURES,
QT_DISABLED_PRIVATE_FEATURES, to be forward-compatible with Qt6.
Prefix properties with INTERFACE_ for interface libraries.

Create functions with no major version in their prefix, so qt_foo
instead of qt5_foo.
The non-versioned functions will call the versioned functions,
depending on the value of QT_DEFAULT_MAJOR_VERSION, which can be
set by an application developer before finding the Qt package.

Set QT_DEFAULT_MAJOR_VERSION to 5 if the value has not been defined
in the current scope.

Application developers can set QT_NO_CREATE_VERSIONLESS_FUNCTIONS to
TRUE before calling find_package(Qt5) to suppress creation of the
non-versioned functions.

Application developers can set QT_NO_CREATE_VERSIONLESS_TARGETS to
TRUE before calling find_package(Qt5) to suppress creation of the
non-versioned targets.

Setting these can be useful when both find_package(Qt5) and
find_package(Qt6) are in the same project.
If none of these are set by the user, then the first find_package(Qt5)
will create versionless targets with the major version being "5",
which means the second find_package(Qt6) will not create versionless
targets.

Handle versionless plugin names in qt_import_plugins, so both
Qt::QCocoaIntegrationPlugin and Qt5/6::QCocoaIntegrationPlugin
are recognized by the function.

Allow specifying multiple types in EXCLUDE_BY_TYPE in
qt_import_plugins, to be consitent with the Qt 6 version.

Make sure to set the QT_PLUGIN_CLASS_NAME property to compatible with
Qt 6.

Task-number: QTBUG-74137
Task-number: QTBUG-80477
Change-Id: Ib89d090ea6f7794d7debd64f03f29da963a17ca7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-01-25 18:10:26 +01:00
..
android Android: make sure we don't add _$${QT_ARCH} twice 2020-01-09 08:25:42 +02:00
data CMake: Add Qt6 forward compatible CMake API and targets 2020-01-25 18:10:26 +01:00
mac Fix isysroot for simulator only builds on ios 2020-01-13 14:48:09 +00:00
uikit Fix PRE_TARGETDEPS for iOS projects 2019-10-08 17:24:57 +02:00
unix macOS: Don't try to install lldb debug script unless the module provides one 2018-07-20 06:40:05 +00:00
unsupported Revert "Disable Docker-based test servers on Windows temporarily" 2019-07-09 13:49:18 +02:00
wasm wasm: do not use clamp mode for upstream LLVM 2019-12-16 18:31:02 +10:00
win32 dumpcpp: Use tblCopy to ensure the path is detected correctly 2020-01-02 14:26:26 +00:00
winrt Merge remote-tracking branch 'origin/5.12' into dev 2018-11-27 01:00:36 +01:00
benchmark.prf mkspecs: Add a benchmark "feature". 2016-03-02 21:24:54 +00:00
build_pass.prf
cmake_functions.prf Remove leading '/' from target paths. 2013-11-27 08:24:50 +01:00
cmdline.prf Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
configure_base.prf configure: cache test output as well 2018-04-10 18:51:13 +00:00
configure.prf make handling of built-in configure options data-driven 2016-12-13 18:55:28 +00:00
coverage.prf configure: Add switch for adding coverage info 2018-10-31 15:08:59 +00:00
create_cmake.prf CMake: Add Qt6 forward compatible CMake API and targets 2020-01-25 18:10:26 +01:00
ctest_testcase_common.prf ctest: Make cmake test pass if it has been run before 2018-11-30 11:30:13 +00:00
ctest_testcase_installed.prf Only run the cmake test in the install location if not already done. 2013-07-15 21:56:51 +02:00
ctest_testcase.prf Always use forward slashes in paths passed to cmake. 2013-07-10 13:05:01 +02:00
dbusadaptors.prf
dbuscommon.pri don't override user-provided dependencies for our extra compilers 2016-06-23 13:25:22 +00:00
dbusinterfaces.prf
declarative_debug.prf Rename quick1_debug back to declarative_debug 2012-10-04 03:03:00 +02:00
default_post.prf Add the c++latest CONFIG value to select the latest C++ standard 2019-05-14 08:01:40 +00:00
default_pre.prf Make it possible to undefine NDEBUG for nmake and VS projects 2019-09-18 08:24:38 +02:00
designer_defines.prf
device_config.prf nuke configure -host-option 2016-12-13 18:55:59 +00:00
egl.prf qmake: make CONFIG+=egl work again 2019-01-07 19:07:02 +00:00
exceptions_off.prf
exceptions.prf
exclusive_builds_post.prf Say hello to Android multi arch build in one go 2019-08-26 12:59:15 +03:00
exclusive_builds.prf Fix duplicates in QMAKE_DIR_REPLACE 2019-07-10 12:35:52 +02:00
file_copies.prf qmake: Fix COPIES for Visual Studio projects 2019-02-21 06:43:56 +00:00
gc_binaries.prf Make the use of -fdata-sections and --gc-sections more generic in Qt 2018-04-27 06:47:35 +00:00
gcov.prf Distinguish between Objective-C and Objective-C++ sources 2015-10-09 15:15:17 +00:00
include_source_dir.prf
incredibuild_xge.prf untangle use of system vs. shell path(-list) semantics 2014-04-30 16:56:54 +02:00
java.prf Android: remove support for local/debug deployment 2017-09-06 18:21:02 +00:00
lex.prf Fix parallel lex/yacc invocation for debug_and_release builds 2019-06-06 15:21:37 +02:00
link_ltcg.prf Support different job counts also for ICC LTO 2017-04-07 17:45:04 +00:00
link_pkgconfig.prf make the pkg-config error message more precise 2014-01-07 19:45:15 +01:00
lrelease.prf qmake: Add support for running lrelease 2018-07-28 14:43:28 +00:00
ltcg.prf Merge remote-tracking branch 'origin/5.13' into 5.14 2019-11-13 07:21:33 +01:00
metatypes.prf metatypes: Add no_check_exist to INSTALLS rule 2019-12-23 10:33:22 +01:00
moc.prf escape literal backslashes in qmake files 2018-12-12 17:24:39 +00:00
no_debug_info.prf qmake: Remove Windows CE support. 2016-03-10 13:33:44 +00:00
plugin_bundle.prf Ensure that CONFIG += plugin_bundle will create Mach-O bundles on OSX/iOS 2015-05-24 11:46:14 +00:00
precompile_header.prf Fix build with precompile headers 2014-01-14 10:38:29 +01:00
qgltf.prf don't override user-provided dependencies for our extra compilers 2016-06-23 13:25:22 +00:00
qlalr.prf fix qlalr invocation in silent builds 2016-12-07 06:54:33 +00:00
qmake_use.prf Revert "configure: actually resolve libraries into full filepaths" 2019-09-13 10:47:38 +02:00
qml_debug.prf
qml_module.prf Android: install qmlfiles only for first ABI 2019-08-28 13:50:31 +03:00
qml_plugin.prf Don't create duplicate plugins.qmltypes rules 2019-11-11 10:20:13 +01:00
qmltestcase.prf Say hello to androidtestrunner 2019-06-06 15:25:07 +03:00
qt_android_deps.prf Say hello to Android multi arch build in one go 2019-08-26 12:59:15 +03:00
qt_app.prf Make the use of -fdata-sections and --gc-sections more generic in Qt 2018-04-27 06:47:35 +00:00
qt_build_config.prf macOS: Prevent warnings about object files without any symbols 2019-09-25 15:39:02 +02:00
qt_build_extra.prf Merge remote-tracking branch 'origin/5.7' into 5.8 2016-08-29 15:30:17 +02:00
qt_build_paths.prf syncqt: fix forwarding injected headers, take ~3 2018-09-12 06:53:02 +00:00
qt_clear_installs.prf disable install targets for non-prefix builds 2016-01-12 15:16:37 +00:00
qt_common.prf Merge remote-tracking branch 'origin/5.13' into dev 2019-06-14 13:45:18 +02:00
qt_config.prf stop exporting QT.*.{libexecs,plugins,imports,qml} in module pris 2017-02-06 16:33:25 +00:00
qt_configure.prf Fix passing FOO_LIBS variables to configure 2019-11-19 18:35:49 +01:00
qt_docs_targets.prf generalize references to exclusive builds 2016-07-13 14:27:07 +00:00
qt_docs.prf Get make docs working better on macOS 2019-11-25 17:43:23 +01:00
qt_example_installs.prf qmake: Disallow building Qt examples inside the source tree 2019-10-24 10:41:29 +02:00
qt_functions.prf MinGW: Allow debug-and-release builds 2020-01-06 12:58:16 +01:00
qt_helper_lib.prf Say hello to Android multi arch build in one go 2019-08-26 12:59:15 +03:00
qt_installs.prf Fix install targets for generated private headers 2019-02-06 07:17:46 +00:00
qt_module_headers.prf Unbreak the -silent build 2019-07-04 13:16:52 +02:00
qt_module_pris.prf Say hello to Android multi arch build in one go 2019-08-26 12:59:15 +03:00
qt_module.prf Remove dead QMakeSourceFileInfo caching feature from QMake 2019-08-20 20:27:52 +02:00
qt_parts.prf nuke {tests,examples}_need_tools flags 2018-05-30 10:57:45 +00:00
qt_plugin.prf Android: Fix plugins naming 2019-10-01 11:36:24 +03:00
qt_prefix_build_check.prf Fix prefix_build check for top-level builds 2019-06-05 13:02:22 +02:00
qt_targets.prf Bump copyright year 2020-01-09 14:41:53 +02:00
qt_test_helper.prf Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qt_tool.prf Windows: Automatically set metadata for all Qt apps 2017-07-31 06:19:06 +00:00
qt_tracepoints.prf Fix QMake build system to support trace points in a cross-compiled build 2019-10-09 16:20:08 +02:00
qt.prf Merge remote-tracking branch 'origin/5.12' into 5.13 2019-04-16 09:34:50 +02:00
resolve_config.prf Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
resolve_target.prf Merge remote-tracking branch 'origin/5.8' into dev 2017-01-25 20:06:06 +01:00
resources_functions.prf Fix calls to qtFlattenResources from outside resources.prf 2019-12-10 16:13:51 +01:00
resources.prf Fix calls to qtFlattenResources from outside resources.prf 2019-12-10 16:13:51 +01:00
rtti_off.prf qmake: enable rtti config option for g++/clang 2018-12-13 20:51:39 +00:00
rtti.prf qmake: enable rtti config option for g++/clang 2018-12-13 20:51:39 +00:00
sanitizer.prf configure: Add sanitizer "fuzzer-no-link" 2019-11-14 15:45:02 +01:00
silent.prf Fix CONFIG+=silent for MSVC non-inference rules 2017-07-14 18:49:56 +00:00
simd.prf QRandom: add support for RDSEED 2019-10-09 07:31:28 -07:00
spec_post.prf Qmake: Introduce and use QMAKE_{SYSTEM,SHELL}_NULL_DEVICE variable, take 2 2017-10-13 13:32:36 +00:00
spec_pre.prf factor out QMAKE_USE* processing to a separate prf file 2016-10-04 20:20:06 +00:00
static_runtime.prf escape literal backslashes in qmake files 2018-12-12 17:24:39 +00:00
testcase_targets.prf mkspecs: Add a benchmark "feature". 2016-03-02 21:24:54 +00:00
testcase.prf Fix CONFIG += cmdline testcase creating app bundle paths in Makefiles 2019-11-27 22:38:02 -05:00
testcocoon.prf
testlib_defines.prf Fixed compilation of auto tests using vc(x)proj files 2015-05-22 14:13:00 +00:00
toolchain.prf qmake: Always split QMAKE_DEFAULT_LIBDIRS using ; with clang on windows 2019-04-25 09:29:23 +00:00
uic.prf Ignore non-existent .ui file dependencies 2019-09-18 08:24:46 +02:00
use_c_linker.prf
vxworks.prf
warn_off.prf Distinguish between Objective-C and Objective-C++ sources 2015-10-09 15:15:17 +00:00
warn_on.prf Distinguish between Objective-C and Objective-C++ sources 2015-10-09 15:15:17 +00:00
wayland-scanner.prf waylandscanner: use --include-core-only 2018-10-05 08:15:38 +00:00
xctest.prf Allow using Xcode Command Line Tools to build Qt 2017-06-29 02:00:12 +00:00
yacc.prf Fix parallel lex/yacc invocation for debug_and_release builds 2019-06-06 15:21:37 +02:00