From de70333227709d289a96718009aa7851db5f5df5 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 30 Jul 2012 10:13:55 +0200 Subject: Only build qml components/examples if qtdeclarative is present Change-Id: I31e1873e9ef243c86c07b0a39edc9d1d61820944 Reviewed-by: Lorn Potter --- examples/sensors/grue/grue.pro | 3 ++- examples/sensors/sensors.pro | 22 ++++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) (limited to 'examples') diff --git a/examples/sensors/grue/grue.pro b/examples/sensors/grue/grue.pro index de917bf..cc6d11c 100644 --- a/examples/sensors/grue/grue.pro +++ b/examples/sensors/grue/grue.pro @@ -1,7 +1,8 @@ TEMPLATE = subdirs SUBDIRS += lib plugin console_app -SUBDIRS += import qml.pro + +!isEmpty(QT.quick.name): SUBDIRS += import qml.pro plugin.depends = lib import.depends = lib diff --git a/examples/sensors/sensors.pro b/examples/sensors/sensors.pro index 0c894d6..7fe9a09 100644 --- a/examples/sensors/sensors.pro +++ b/examples/sensors/sensors.pro @@ -1,15 +1,17 @@ TEMPLATE = subdirs -SUBDIRS += \ - accel \ - accelbubble \ - cubehouse \ - grue \ - qmlsensorgestures \ - maze \ - qmlqtsensors \ - sensor_explorer \ - shakeit +SUBDIRS += accel grue + +!isEmpty(QT.quick.name) { + SUBDIRS += \ + accelbubble \ + cubehouse \ + qmlsensorgestures \ + maze \ + qmlqtsensors \ + sensor_explorer \ + shakeit +} !isEmpty(QT.widgets.name):SUBDIRS += \ sensorgestures -- cgit v1.2.1