summaryrefslogtreecommitdiffstats
path: root/src/src.pro
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2016-10-21 19:14:16 +0200
committerMichal Klocek <michal.klocek@qt.io>2016-12-08 13:56:12 +0000
commit0c6c48da2ad5c60f5404636290eb82f492c2a1a8 (patch)
tree219a3d6ac11ce07cf3873181fc0b4dd285b52970 /src/src.pro
parent72242c614378a43c4563c05678d8e46d6fcbaa8d (diff)
Add gn bootstrap to build system
Bootstraps gn wihout rebuild. Change-Id: I09ee4d6b6f458f16f0d9ac18433823153ab75995 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/src.pro')
-rw-r--r--src/src.pro56
1 files changed, 30 insertions, 26 deletions
diff --git a/src/src.pro b/src/src.pro
index 9b5373181..3f793474f 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -7,33 +7,37 @@ webengine_plugin.subdir = webengine/plugin
webengine_plugin.target = sub-webengine-plugin
webengine_plugin.depends = webengine
-SUBDIRS += core \
- process \
- webengine \
- webengine_plugin \
- plugins
+SUBDIRS += core
-# allow only desktop builds of qwebengine_convert_dict
-contains(WEBENGINE_CONFIG, use_spellchecker):!contains(WEBENGINE_CONFIG, use_native_spellchecker):!cross_compile {
- SUBDIRS += qwebengine_convert_dict
- qwebengine_convert_dict.subdir = tools/qwebengine_convert_dict
- qwebengine_convert_dict.depends = core
-}
+!contains(WEBENGINE_CONFIG, use_gn) {
+ SUBDIRS += process \
+ webengine \
+ webengine_plugin \
+ plugins
-isQMLTestSupportApiEnabled() {
- webengine_testsupport_plugin.subdir = webengine/plugin/testsupport
- webengine_testsupport_plugin.target = sub-webengine-testsupport-plugin
- webengine_testsupport_plugin.depends = webengine
- SUBDIRS += webengine_testsupport_plugin
-}
-# FIXME: We probably want a bit more control over config options to tweak what to build/ship or not.
-# Another example of where this could be necessary is to make it easy to build proprietery codecs support.
-!contains(WEBENGINE_CONFIG, no_ui_delegates) {
- SUBDIRS += webengine/ui \
- webengine/ui2
-}
-qtHaveModule(widgets) {
- SUBDIRS += webenginewidgets
- plugins.depends = webenginewidgets
+ # allow only desktop builds of qwebengine_convert_dict
+ contains(WEBENGINE_CONFIG, use_spellchecker):!contains(WEBENGINE_CONFIG, use_native_spellchecker):!cross_compile {
+ SUBDIRS += qwebengine_convert_dict
+ qwebengine_convert_dict.subdir = tools/qwebengine_convert_dict
+ qwebengine_convert_dict.depends = core
+ }
+
+ isQMLTestSupportApiEnabled() {
+ webengine_testsupport_plugin.subdir = webengine/plugin/testsupport
+ webengine_testsupport_plugin.target = sub-webengine-testsupport-plugin
+ webengine_testsupport_plugin.depends = webengine
+ SUBDIRS += webengine_testsupport_plugin
+ }
+
+ # FIXME: We probably want a bit more control over config options to tweak what to build/ship or not.
+ # Another example of where this could be necessary is to make it easy to build proprietery codecs support.
+ !contains(WEBENGINE_CONFIG, no_ui_delegates) {
+ SUBDIRS += webengine/ui \
+ webengine/ui2
+ }
+ qtHaveModule(widgets) {
+ SUBDIRS += webenginewidgets
+ plugins.depends = webenginewidgets
+ }
}