From d8ad5946227c7546b8daef71c139ac38be4c5617 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 6 Mar 2017 15:22:34 +0100 Subject: Don't build weatherinfo example without bearermanagement bearermanagement is a platform-driven feature as lack of QLibrary disables it. We should thus check for it. Change-Id: Ia8c44f85293e528b54bef90c689bc409bc04aa86 Reviewed-by: Paolo Angelelli Reviewed-by: Alex Blasche --- examples/positioning/positioning.pro | 5 ++++- examples/positioning/weatherinfo/weatherinfo.pro | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/positioning/positioning.pro b/examples/positioning/positioning.pro index 0e436b46..bbdc1a42 100644 --- a/examples/positioning/positioning.pro +++ b/examples/positioning/positioning.pro @@ -1,4 +1,7 @@ TEMPLATE = subdirs qtHaveModule(widgets): SUBDIRS += logfilepositionsource -qtHaveModule(quick): SUBDIRS += geoflickr weatherinfo satelliteinfo +qtHaveModule(quick) { + SUBDIRS += geoflickr satelliteinfo + qtHaveModule(network): SUBDIRS += weatherinfo +} diff --git a/examples/positioning/weatherinfo/weatherinfo.pro b/examples/positioning/weatherinfo/weatherinfo.pro index e2b2102d..d8f9675a 100644 --- a/examples/positioning/weatherinfo/weatherinfo.pro +++ b/examples/positioning/weatherinfo/weatherinfo.pro @@ -2,6 +2,7 @@ TEMPLATE = app TARGET = weatherinfo QT += core network positioning qml quick +requires(qtConfig(bearermanagement)) SOURCES += main.cpp \ appmodel.cpp -- cgit v1.2.1