From: Jonathan Liu Date: Sun, 20 Apr 2014 14:01:23 +0000 (+1000) Subject: qtlocation: add packageconfig for geoclue and gypsy X-Git-Tag: rev_ivi_2015_02_04~911 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec98db4972328c8eb44d20f97402f95975c2a23b;p=scm%2Fbb%2Ftizen-distro.git qtlocation: add packageconfig for geoclue and gypsy (From meta-qt5 rev: 12a40b841225b0d669b330dbdec1a01b0a99ddaa) Signed-off-by: Jonathan Liu Signed-off-by: Martin Jansa Signed-off-by: Patrick Ohly --- diff --git a/meta-qt5/recipes-qt/qt5/qtlocation.inc b/meta-qt5/recipes-qt/qt5/qtlocation.inc index 70a4375..41f2d19 100644 --- a/meta-qt5/recipes-qt/qt5/qtlocation.inc +++ b/meta-qt5/recipes-qt/qt5/qtlocation.inc @@ -2,3 +2,19 @@ require qt5.inc DEPENDS += "qtbase qt3d" # qtsystems qtmultimedia + +PACKAGECONFIG ??= "" +# older geoclue 0.x is needed +PACKAGECONFIG[geoclue] = "OE_GEOCLUE_ENABLED,,gconf geoclue" +PACKAGECONFIG[gypsy] = "OE_GYPSY_ENABLED,,gconf gypsy" + +do_configure_prepend() { + # disable geoclue tests if it isn't enabled by PACKAGECONFIG + sed -i -e 's/^\(qtCompileTest(geoclue)\)/OE_GEOCLUE_ENABLED:\1/' ${S}/qtlocation.pro + sed -i -e 's/^\(qtCompileTest(geoclue-satellite)\)/OE_GEOCLUE_ENABLED:\1/' ${S}/qtlocation.pro + # disable gypsy test if it isn't enabled by PACKAGECONFIG + sed -i -e 's/^\(qtCompileTest(gypsy)\)/OE_GYPSY_ENABLED:\1/' ${S}/qtlocation.pro +} + +EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'geoclue', 'CONFIG+=OE_GEOCLUE_ENABLED', '', d)}" +EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gypsy', 'CONFIG+=OE_GYPSY_ENABLED', '', d)}"