a35b0fad4dc3b4bd6998097634b91d2b2bcec65e
[scm/bb/tizen-distro.git] / meta-qt5 / recipes-qt / qt5 / qtlocation.inc
1 require qt5.inc
2
3 DEPENDS += "qtbase qt3d"
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)}"
21
22 # older copyright year than what e.g. qtbase is using now
23 LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \
24                     file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \
25                     file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \
26                     file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e"