summaryrefslogtreecommitdiffstats
path: root/app/app.pri
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2017-12-14 18:35:41 +0900
committerTasuku Suzuki <tasuku.suzuki@qt.io>2017-12-14 18:38:22 +0900
commit1fc5b34801d033a50a683687b18f05e250fee9d4 (patch)
treeac57a53693e2225a7a6adda4f85184cc00ee4373 /app/app.pri
parent06ca4be06cc082c77565f1828fedce11e3510b6b (diff)
Check if dependencies are available and make it run without them
To develop apps efficiently, apps should work on any platform that Qt supports. Change-Id: I559786d207663e023cfbbf1a3f6cf1770191a960 Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'app/app.pri')
-rw-r--r--app/app.pri15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/app.pri b/app/app.pri
index e535cbc..590c154 100644
--- a/app/app.pri
+++ b/app/app.pri
@@ -2,4 +2,19 @@ TEMPLATE = app
load(configure)
+qtCompileTest(libhomescreen)
+qtCompileTest(qlibwindowmanager)
+
+config_libhomescreen {
+ CONFIG += link_pkgconfig
+ PKGCONFIG += libhomescreen
+ DEFINES += HAVE_LIBHOMESCREEN
+}
+
+config_qlibwindowmanager {
+ CONFIG += link_pkgconfig
+ PKGCONFIG += qlibwindowmanager
+ DEFINES += HAVE_QLIBWINDOWMANAGER
+}
+
DESTDIR = $${OUT_PWD}/../package/root/bin