aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/configure.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-06-04 18:55:51 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-06-04 22:27:33 +0200
commitded331ce62698369855511cd266d857d6d677fd3 (patch)
treefdbe33bbf4321eb07ad043afb4901603af23a933 /src/qml/configure.cmake
parent70dd5e24ce29adeab48932082863b3e3e3e4ba47 (diff)
CMake: Regenerate configure.cmake files
This will cause cmake to show the usual configure reports. Needed to add a custom function to find python (not currently used though, except for the configure report). Change-Id: Id68efc5badeaa30834a37fe751c1d5b6bfd96d92 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'src/qml/configure.cmake')
-rw-r--r--src/qml/configure.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/qml/configure.cmake b/src/qml/configure.cmake
index 00936ff53c..21acf9efa7 100644
--- a/src/qml/configure.cmake
+++ b/src/qml/configure.cmake
@@ -187,3 +187,25 @@ qt_feature("qml-itemmodel" PRIVATE
PURPOSE "Provides the item model for item views in QML"
CONDITION QT_FEATURE_itemmodel
)
+
+# special case begin
+qt_qml_find_python(__qt_qml_python_path __qt_qml_python_found)
+# special case end
+
+qt_feature("qml-python" PRIVATE
+ LABEL "python"
+ CONDITION __qt_qml_python_found # special case
+)
+qt_configure_add_summary_section(NAME "Qt QML")
+qt_configure_add_summary_entry(ARGS "qml-network")
+qt_configure_add_summary_entry(ARGS "qml-debug")
+qt_configure_add_summary_entry(ARGS "qml-jit")
+qt_configure_add_summary_entry(ARGS "qml-sequence-object")
+qt_configure_add_summary_entry(ARGS "qml-xml-http-request")
+qt_configure_add_summary_entry(ARGS "qml-locale")
+qt_configure_end_summary_section() # end of "Qt QML" section
+qt_configure_add_report_entry(
+ TYPE ERROR
+ MESSAGE "Python is required to build QtQml."
+ CONDITION NOT QT_FEATURE_qml_python
+)