diff options
-rw-r--r-- | recipes-qt/qt5/qtlocation.inc | 16 |
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 | ||
3 | DEPENDS += "qtbase qt3d" | 3 | DEPENDS += "qtbase qt3d" |
4 | # qtsystems qtmultimedia | 4 | # qtsystems qtmultimedia |
5 | |||
6 | PACKAGECONFIG ??= "" | ||
7 | # older geoclue 0.x is needed | ||
8 | PACKAGECONFIG[geoclue] = "OE_GEOCLUE_ENABLED,,gconf geoclue" | ||
9 | PACKAGECONFIG[gypsy] = "OE_GYPSY_ENABLED,,gconf gypsy" | ||
10 | |||
11 | do_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 | |||
19 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'geoclue', 'CONFIG+=OE_GEOCLUE_ENABLED', '', d)}" | ||
20 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gypsy', 'CONFIG+=OE_GYPSY_ENABLED', '', d)}" | ||