summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2016-11-08 13:48:53 +0200
committerKari Oikarinen <kari.oikarinen@qt.io>2016-11-10 09:51:17 +0000
commit9f8a4a7898e6de5ab53d496bb322170c57605835 (patch)
tree297593f184050f154df4bda30a4cf87ef2f7758a
parent02a7d1ab030b83feb3300df5149b9ec0518975f4 (diff)
Use qt_parts.prf in order to follow conventions
This allows builds to leave or include the tests in the same way that is used for all the Qt modules. daemon_only builds also don't need libusb-1.0 which is only required by the host part. Change-Id: I3860dc01faa0bb7ca2a3f4d30a8a426f81c7f364 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r--qdb.pro12
1 files changed, 5 insertions, 7 deletions
diff --git a/qdb.pro b/qdb.pro
index a09f470..519e42f 100644
--- a/qdb.pro
+++ b/qdb.pro
@@ -1,17 +1,15 @@
-TEMPLATE = subdirs
-
load(configure)
-!qtCompileTest(libusb10): error("Could not find libusb-1.0, which is mandatory")
+!daemon_only:!qtCompileTest(libusb10): error("Could not find libusb-1.0, which is mandatory for host parts of QDB")
+
+load(qt_parts)
SUBDIRS += libqdb
+sub_tests.depends += libqdb
!daemon_only {
- SUBDIRS += \
- qdb \
- tests \
+ SUBDIRS += qdb
qdb.depends += libqdb
- tests.depends += libqdb
}
unix {