summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-04-21 00:01:23 +1000
committerMartin Jansa <Martin.Jansa@gmail.com>2014-05-09 14:40:09 +0200
commit12a40b841225b0d669b330dbdec1a01b0a99ddaa (patch)
tree8cac3890142963a030e95c447a22bd5f4b537865
parent7a8f5fe098c4a553249710f6869c01bac888d398 (diff)
downloadmeta-qt5-12a40b841225b0d669b330dbdec1a01b0a99ddaa.tar.gz
qtlocation: add packageconfig for geoclue and gypsy
Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--recipes-qt/qt5/qtlocation.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtlocation.inc b/recipes-qt/qt5/qtlocation.inc
index 70a43755..41f2d199 100644
--- a/recipes-qt/qt5/qtlocation.inc
+++ b/recipes-qt/qt5/qtlocation.inc
@@ -2,3 +2,19 @@ require qt5.inc
2 2
3DEPENDS += "qtbase qt3d" 3DEPENDS += "qtbase qt3d"
4# qtsystems qtmultimedia 4# qtsystems qtmultimedia
5
6PACKAGECONFIG ??= ""
7# older geoclue 0.x is needed
8PACKAGECONFIG[geoclue] = "OE_GEOCLUE_ENABLED,,gconf geoclue"
9PACKAGECONFIG[gypsy] = "OE_GYPSY_ENABLED,,gconf gypsy"
10
11do_configure_prepend() {
12 # disable geoclue tests if it isn't enabled by PACKAGECONFIG
13 sed -i -e 's/^\(qtCompileTest(geoclue)\)/OE_GEOCLUE_ENABLED:\1/' ${S}/qtlocation.pro
14 sed -i -e 's/^\(qtCompileTest(geoclue-satellite)\)/OE_GEOCLUE_ENABLED:\1/' ${S}/qtlocation.pro
15 # disable gypsy test if it isn't enabled by PACKAGECONFIG
16 sed -i -e 's/^\(qtCompileTest(gypsy)\)/OE_GYPSY_ENABLED:\1/' ${S}/qtlocation.pro
17}
18
19EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'geoclue', 'CONFIG+=OE_GEOCLUE_ENABLED', '', d)}"
20EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gypsy', 'CONFIG+=OE_GYPSY_ENABLED', '', d)}"