summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-11-11 19:11:52 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-11-12 10:38:29 +0000
commit73c53941e0f4563be266076dd8fd8838039d4d27 (patch)
tree965cff4a0523321af64cd9451a2539f6f25101c1
parent6dc51c56c3ddba8ecd127644ed239ec9eff20b90 (diff)
declare dependencies properly
don't try to build the example when the library is missing. also, don't try to build the whole module if it will be entirely empty. Change-Id: I4de9b6c2454bbfea60dc6b747cd995cfab6c7617 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
-rw-r--r--examples/webview/webview.pro2
-rw-r--r--qtwebview.pro2
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/webview/webview.pro b/examples/webview/webview.pro
index 0ece824..cd4c70e 100644
--- a/examples/webview/webview.pro
+++ b/examples/webview/webview.pro
@@ -1,2 +1,2 @@
TEMPLATE = subdirs
-SUBDIRS += minibrowser
+qtHaveModule(webview): SUBDIRS += minibrowser
diff --git a/qtwebview.pro b/qtwebview.pro
index 58c33f2..0f09d1d 100644
--- a/qtwebview.pro
+++ b/qtwebview.pro
@@ -1 +1,3 @@
+requires(android|ios|winrt|osx_webview_experimental|qtHaveModule(webengine))
+
load(qt_parts)