aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qtdeclarative.pro5
-rw-r--r--src/src.pro3
-rw-r--r--tools/tools.pro4
3 files changed, 7 insertions, 5 deletions
diff --git a/qtdeclarative.pro b/qtdeclarative.pro
index 5b94da9b69..84120bfd07 100644
--- a/qtdeclarative.pro
+++ b/qtdeclarative.pro
@@ -1,4 +1,9 @@
CONFIG += tests_need_tools examples_need_tools
+
+# Otherwise we cannot compile src/qmltyperegistrar
+requires(qtConfig(commandlineparser))
+requires(qtConfig(temporaryfile))
+
load(qt_parts)
!python_available {
diff --git a/src/src.pro b/src/src.pro
index 2855102eff..c9de88e942 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -4,9 +4,6 @@ include($$OUT_PWD/qml/qtqml-config.pri)
include($$OUT_PWD/quick/qtquick-config.pri)
QT_FOR_CONFIG += qml qml-private quick-private
-# Otherwise we cannot compile qmltyperegistrar
-requires(qtConfig(commandlineparser))
-
# We need qmltyperegistrar for all type registrations, even in qml
SUBDIRS += \
qmltyperegistrar \
diff --git a/tools/tools.pro b/tools/tools.pro
index d16f78071c..07eaa0be70 100644
--- a/tools/tools.pro
+++ b/tools/tools.pro
@@ -7,11 +7,11 @@ qtConfig(qml-devtools) {
qmlimportscanner \
qmlformat
- qtConfig(commandlineparser):qtConfig(xmlstreamwriter): SUBDIRS += qmlcachegen
+ qtConfig(xmlstreamwriter): SUBDIRS += qmlcachegen
}
qtConfig(thread):!android|android_app:!wasm:!rtems {
- qtConfig(commandlineparser): SUBDIRS += qml
+ SUBDIRS += qml
qtConfig(qml-profiler): SUBDIRS += qmlprofiler
qtConfig(qml-preview): SUBDIRS += qmlpreview