summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2021-09-28 14:51:23 +0200
committerMichal Klocek <michal.klocek@qt.io>2021-10-28 11:42:08 +0200
commitde15db17eccbc42d5d867973e7af3b95debff186 (patch)
tree230b2e14329bb4d3eca19de3840de49f598c54e1 /configure.cmake
parent6b66108d2604d70f357e20a480eb127266fe7e24 (diff)
downloadqtwebengine-de15db17eccbc42d5d867973e7af3b95debff186.tar.gz
Clean up build options
We can configure webenigne repository with FEATURE_qtpdf_build and FEATURE_qtwebegine_build so make them public. The handling is still affected by QTBUG-96936,however private vs public features will most likely get better handling soon. Fix build summary to better reflect build options. Pick-to: 6.2 Change-Id: Ic6ef54a68b68d0f05c520a058665e6294efbe041 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake49
1 files changed, 31 insertions, 18 deletions
diff --git a/configure.cmake b/configure.cmake
index 172831c69..35ab05981 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -189,42 +189,46 @@ int main(void){
#### Features
-qt_feature("qtwebengine-build" PRIVATE
- LABEL "Build Qt WebEngine"
+qt_feature("qtwebengine-build" PUBLIC
+ LABEL "Build QtWebEngine Modules"
PURPOSE "Enables building the Qt WebEngine modules."
)
+qt_feature("qtwebengine-core-build" PRIVATE
+ LABEL "Build QtWebEngineCore"
+ PURPOSE "Enables building the Qt WebEngineCore module."
+ CONDITION QT_FEATURE_qtwebengine_build
+)
qt_feature("qtwebengine-widgets-build" PRIVATE
- LABEL "Build Qt WebEngineWidgets"
+ LABEL "Build QtWebEngineWidgets"
PURPOSE "Enables building the Qt WebEngineWidgets module."
- CONDITION TARGET Qt::Widgets
+ CONDITION TARGET Qt::Widgets AND QT_FEATURE_qtwebengine_build
)
qt_feature("qtwebengine-quick-build" PRIVATE
- LABEL "Build Qt WebEngineQuick"
+ LABEL "Build QtWebEngineQuick"
PURPOSE "Enables building the Qt WebEngineQuick module."
- CONDITION TARGET Qt::Quick AND TARGET Qt::Qml
+ CONDITION TARGET Qt::Quick AND TARGET Qt::Qml AND QT_FEATURE_qtwebengine_build
)
-qt_feature("qtpdf-build" PRIVATE
+qt_feature("qtpdf-build" PUBLIC
LABEL "Build Qt PDF"
PURPOSE "Enables building the Qt Pdf modules."
)
qt_feature("qtpdf-widgets-build" PRIVATE
- LABEL "Build Qt PdfWidgets"
+ LABEL "Build QtPdfWidgets"
PURPOSE "Enables building the Qt Pdf module."
- CONDITION TARGET Qt::Widgets
+ CONDITION TARGET Qt::Widgets AND QT_FEATURE_qtpdf_build
)
qt_feature("qtpdf-quick-build" PRIVATE
- LABEL "Build Qt PdfQuick"
- PURPOSE "Enables building the Qt Pdf module."
- CONDITION TARGET Qt::Quick AND TARGET Qt::Qml
+ LABEL "Build QtPdfQuick"
+ PURPOSE "Enables building the QtPdfQuick module."
+ CONDITION TARGET Qt::Quick AND TARGET Qt::Qml AND QT_FEATURE_qtpdf_build
)
qt_feature("webengine-system-ninja" PRIVATE
- LABEL "Use system ninja"
- CONDITION Ninja_FOUND
+ LABEL "Build Ninja"
+ AUTODETECT NOT Ninja_FOUND OR Ninja_EXECUTABLE MATCHES ${WEBENGINE_ROOT_BUILD_DIR}
)
qt_feature("webengine-system-gn" PRIVATE
- LABEL "Use system gn"
- AUTODETECT FALSE
- CONDITION Gn_FOUND
+ LABEL "Build Gn"
+ AUTODETECT NOT Gn_FOUND OR Gn_EXECUTABLE MATCHES ${WEBENGINE_ROOT_BUILD_DIR}
)
# default assumed merge limit (should match the one in qt_cmdline.cmake)
set(jumbo_merge_limit 8)
@@ -463,11 +467,20 @@ add_check_for_support(
#### Summary
# > Qt WebEngine Build Features
-qt_configure_add_summary_section(NAME "Qt WebEngine")
+qt_configure_add_summary_section(NAME "WebEngine Repository Build Options")
qt_configure_add_summary_entry(ARGS "webengine-system-ninja")
qt_configure_add_summary_entry(ARGS "webengine-system-gn")
qt_configure_add_summary_entry(ARGS "webengine-jumbo-build")
qt_configure_add_summary_entry(ARGS "webengine-developer-build")
+qt_configure_add_summary_section(NAME "Build QtWebEngine Modules")
+qt_configure_add_summary_entry(ARGS "qtwebengine-core-build")
+qt_configure_add_summary_entry(ARGS "qtwebengine-widgets-build")
+qt_configure_add_summary_entry(ARGS "qtwebengine-quick-build")
+qt_configure_end_summary_section()
+qt_configure_add_summary_section(NAME "Build QtPdf Modules")
+qt_configure_add_summary_entry(ARGS "qtpdf-widgets-build")
+qt_configure_add_summary_entry(ARGS "qtpdf-quick-build")
+qt_configure_end_summary_section()
# >> Optional system libraries
if(UNIX)
qt_configure_add_summary_section(NAME "Optional system libraries")