diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-08-11 14:33:42 +0200 |
---|---|---|
committer | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-08-12 11:12:20 +0200 |
commit | d1ddc17b0fcb9ce809a81ddd71d0bc864b2738c9 (patch) | |
tree | 3a46ec58e08c02813a76c96924bb71ad9548f162 /src | |
parent | da4ea674c75579f2040acd0ec55c68b00898f4d0 (diff) |
Opt-out of the build on platforms where we won't build successfully
To allow the qt5.git integration, allow the build to succeed if the
repository is checked out on a platform that we don't maintain.
This is the initial list of platforms that we want the integration
to succeed and we can add new ones once we start maintaining them.
Change-Id: Idce2a84eb8d5b1ef7f14d399fe013f666b479108
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/src.pro | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/src/src.pro b/src/src.pro index ed402c582..5b31a22f8 100644 --- a/src/src.pro +++ b/src/src.pro @@ -1,26 +1,30 @@ TEMPLATE = subdirs -process.depends = core -webengine.depends = core -webenginewidgets.depends = core webengine -webengine_plugin.subdir = webengine/plugin -webengine_plugin.target = sub-webengine-plugin -webengine_plugin.depends = webengine -webengine_experimental_plugin.subdir = webengine/plugin/experimental -webengine_experimental_plugin.target = sub-webengine-experimental-plugin -webengine_experimental_plugin.depends = webengine +isPlatformSupported() { + process.depends = core + webengine.depends = core + webenginewidgets.depends = core webengine + webengine_plugin.subdir = webengine/plugin + webengine_plugin.target = sub-webengine-plugin + webengine_plugin.depends = webengine + webengine_experimental_plugin.subdir = webengine/plugin/experimental + webengine_experimental_plugin.target = sub-webengine-experimental-plugin + webengine_experimental_plugin.depends = webengine -SUBDIRS += core \ - process \ - webengine \ - webengine_plugin \ - webengine_experimental_plugin + SUBDIRS += core \ + process \ + webengine \ + webengine_plugin \ + webengine_experimental_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 + # 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 -qtHaveModule(widgets) { - SUBDIRS += webenginewidgets + qtHaveModule(widgets) { + SUBDIRS += webenginewidgets + } +} else { + warning("QtWebEngine is not maintained on this platform and is therefore disabled.") } |