summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_build_config.prf
diff options
context:
space:
mode:
authorAmir Masoud Abdol <amir.abdol@qt.io>2023-02-21 15:31:18 +0100
committerAmir Masoud Abdol <amir.abdol@qt.io>2023-02-27 10:10:09 +0100
commit863eb576c879e0284e794b60ff8450c468f6ae3a (patch)
treed181c3e8af8f018deee0b3837ad5c959b3cf1463 /mkspecs/features/qt_build_config.prf
parentf75b29fbbde79d66ee539162441a007a90035b96 (diff)
Remove qmake files that provide support for building Qt modules
Repeating the body of the reported bug, "Building Qt modules with qmake is unsupported in Qt6 and since 6.5's switch to syncqt.cpp broken." [ChangeLog][qmake] Support for building Qt modules with qmake was removed. Pick-to: 6.5 Fixes: QTBUG-110134 Change-Id: Iee5aa5c85f7106bce742df448ec502e6cc039454 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'mkspecs/features/qt_build_config.prf')
-rw-r--r--mkspecs/features/qt_build_config.prf153
1 files changed, 0 insertions, 153 deletions
diff --git a/mkspecs/features/qt_build_config.prf b/mkspecs/features/qt_build_config.prf
deleted file mode 100644
index 1eab561ef7..0000000000
--- a/mkspecs/features/qt_build_config.prf
+++ /dev/null
@@ -1,153 +0,0 @@
-#
-# W A R N I N G
-# -------------
-#
-# This file is not part of the Qt API. It exists purely as an
-# implementation detail. It may change from version to version
-# without notice, or even be removed.
-#
-# We mean it.
-#
-
-!contains(QMAKE_INTERNAL_INCLUDED_FILES, .*qmodule\\.pri) {
- QMAKE_QT_MODULE = $$[QT_HOST_DATA/get]/mkspecs/qmodule.pri
- !exists($$QMAKE_QT_MODULE)|!include($$QMAKE_QT_MODULE, "", true) {
- debug(1, "Cannot load qmodule.pri!")
- } else {
- debug(1, "Loaded qmodule.pri from ($$QMAKE_QT_MODULE)")
- }
-} else {
- debug(1, "Not loading qmodule.pri twice")
-}
-
-PRECOMPILED_DIR = .pch
-OBJECTS_DIR = .obj
-MOC_DIR = .moc
-RCC_DIR = .rcc
-UI_DIR = .uic
-TRACEGEN_DIR = .tracegen
-QMLCACHE_DIR = .qmlcache
-LRELEASE_DIR = .qm
-intel_icl {
- # ICL 14.0 has a bug that makes it not find #includes in dirs starting with .
- MOC_DIR = tmp/moc
- RCC_DIR = tmp/rcc
- UI_DIR = tmp/uic
-}
-
-QMAKE_DIR_REPLACE_SANE = PRECOMPILED_DIR OBJECTS_DIR MOC_DIR RCC_DIR UI_DIR
-
-load(qt_prefix_build_check)
-
-# force_independent can be set externally. prefix_build not.
-qtIsPrefixBuild($$[QT_HOST_DATA]): \
- CONFIG += prefix_build force_independent
-
-!build_pass:!isEmpty(_QMAKE_SUPER_CACHE_):force_independent {
- # When doing a -prefix build of top-level qt5/qt.pro, we need to announce
- # this repo's output dir to the other repos.
- MODULE_BASE_OUTDIR = $$shadowed($$dirname(_QMAKE_CONF_))
- !contains(QTREPOS, $$MODULE_BASE_OUTDIR): \
- cache(QTREPOS, add super, MODULE_BASE_OUTDIR)
- # This repo's module pris' location needs to be made known to qmake.
- isEmpty(MODULE_QMAKE_OUTDIR): MODULE_QMAKE_OUTDIR = $$MODULE_BASE_OUTDIR
- modpath = $$MODULE_QMAKE_OUTDIR/mkspecs/modules
- !contains(QMAKEMODULES, $$modpath): \
- cache(QMAKEMODULES, add super, modpath)
- unset(modpath)
-}
-
-defineTest(qtSetQmlPath) {
- !qtConfig(static)|host_build|no_import_scan: \
- return()
- deps = $$replace(QT, -private$, _private)
- deps = $$resolve_depends(deps, "QT.")
- !contains(deps, qml): \
- return()
-
- isEmpty(QTREPOS): \
- QTREPOS = $$shadowed($$dirname(_QMAKE_CONF_))
- for (qrep, QTREPOS): \
- exists($$qrep/qml): \
- QMLPATHS += $$qrep/qml
- export(QMLPATHS)
-}
-
-# Apply extra compiler flags passed via configure last.
-CONFIG = qt_build_extra $$CONFIG
-
-# Don't actually try to install anything in non-prefix builds.
-# This is much easier and safer than making every single INSTALLS
-# assignment conditional.
-!prefix_build: \
- CONFIG += qt_clear_installs
-
-cross_compile: \
- CONFIG += force_bootstrap
-
-android|uikit: \
- CONFIG += builtin_testdata
-
-# Prevent warnings about object files without any symbols
-macos: CONFIG += no_warn_empty_obj_files
-
-# Make sure the doc features are loaded last since they depend on other
-# features setting up things like includepaths to find everything.
-CONFIG = prepare_docs qt_docs_targets $$CONFIG
-
-CONFIG += \
- utf8_source \
- create_prl link_prl \
- no_private_qt_headers_warning QTDIR_build \
- qt_example_installs \
- # Qt modules get compiled without exceptions enabled by default.
- # However, testcases should be still built with exceptions.
- exceptions_off testcase_exceptions
-
-# Under Windows, this is neither necessary (transitive deps are automatically
-# resolved), nor functional (.res files end up in .prl files and break things).
-unix: CONFIG += explicitlib
-
-# By default we want tests on macOS to be built as standalone executables
-macos: CONFIG += testcase_no_bundle
-
-# Override MinGW's definition in _mingw.h
-mingw: DEFINES += WINVER=0x0A00 _WIN32_WINNT=0x0A00
-
-defineTest(qtBuildPart) {
- bp = $$eval($$upper($$section(_QMAKE_CONF_, /, -2, -2))_BUILD_PARTS)
- isEmpty(bp): bp = $$QT_BUILD_PARTS
- contains(bp, $$1): return(true)
- return(false)
-}
-
-defineTest(qtNomakeTools) {
- qtBuildPart(tools): return()
- for (d, 1) {
- $${d}.CONFIG += no_default_target no_default_install
- export($${d}.CONFIG)
- }
-}
-
-# This overloads the same function from qt_functions.prf.
-# This is not in qt_module.prf, as that gets loaded too late.
-defineTest(qtConfig) {
- modules = $$QT $$QT_PRIVATE $$QT_FOR_PRIVATE $$QT_FOR_CONFIG
- modules ~= s,-private$,_private,g
- modules = $$resolve_depends(modules, "QT.", ".depends")
- isEmpty(MODULE): \
- MODULE = $$section($$list($$basename(_PRO_FILE_)), ., 0, 0)
- exists($$OUT_PWD/qt$${MODULE}-config.pri) {
- include($$OUT_PWD/qt$${MODULE}-config.pri)
- modules += $${MODULE} $${MODULE}_private
- }
- modules += global global_private
- modules = $$reverse(modules)
- for (module, modules) {
- contains(QT.$${module}.enabled_features, $$1): \
- return(true)
- contains(QT.$${module}.disabled_features, $$1): \
- return(false)
- }
- error("Could not find feature $${1}.")
-}