X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-ivi-common%2Frecipes-automotive%2Fautomotive-message-broker%2Fautomotive-message-broker_git.bb;h=4873f12a06ba55cd1998716c03e0c166544c4da7;hb=8fc3dc485d876f7e98b7ecc25650d7f011960e97;hp=b921b99c8dbd982a00e89352d6f93949c669c763;hpb=7017d4f847b2ce243540c5554dd72661a4a02865;p=AGL%2Fmeta-agl.git diff --git a/meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker_git.bb b/meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker_git.bb index b921b99c8..4873f12a0 100644 --- a/meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker_git.bb +++ b/meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker_git.bb @@ -4,34 +4,29 @@ away from applications and provides a standard API for applications to easily \ get the required information" HOMEPAGE = "https://github.com/otcshare/automotive-message-broker/wiki" -LICENSE = "LGPL-2.1" -LIC_FILES_CHKSUM = "file://COPYING;md5=b42382de5d854b9bb598acf2e8827de3" -inherit cmake systemd +require automotive-message-broker_git.inc -PV = "0.12+git${SRCPV}" +CMAKE_QT5_CLASS = "${@bb.utils.contains('BBFILE_COLLECTIONS','qt5-layer','cmake_qt5','',d)}" +inherit cmake systemd ${CMAKE_QT5_CLASS} -# The 'gpsd' cause conflict bluez4 and bluez5 because -# meta-openembedded/meta-oe/recipes-navigation/gpsd/gpsd_3.10.bb is able to -# select bluez4 only instead AGL Distro choosed bluez5 at Changes 4141. -# -# -# As temporary treatment, removing 'gpsd' from DEPENDS will let bitbake to build correctly. -# -#DEPENDS = "glib-2.0 util-linux sqlite3 qtbase boost json-c libtool gpsd" DEPENDS = "glib-2.0 util-linux sqlite3 boost json-c libtool" +RDEPENDS_${PN} = "python-misc python-json" -SRC_URI = "git://github.com/otcshare/automotive-message-broker.git" -SRCREV = "ac3fe53327a13afc571efe079a31a0472ea285a3" - -SRC_URI += "file://amb_allow_sessionbus.patch \ - file://ambd.service \ - " +PACKAGECONFIG ??= " use_gps \ + ${@bb.utils.contains('BBFILE_COLLECTIONS','qt5-layer','use_qt5','', d)} \ + " +PACKAGECONFIG[use_gps] = "-Dgpsd_plugins=On,,gpsd" +PACKAGECONFIG[use_qt5] = "-Dqtmainloop=On -Dqt_bindings=On,,qtbase qtdeclarative" SYSTEMD_PACKAGES = "${PN}" SYSTEMD_SERVICE_${PN} = "ambd.service" -S = "${WORKDIR}/git" +# amb detects icecc in cmake and would override the +# compiler selection of yocto. This breaks the build +# if icecc is installed on the host. +# -> Disable the detection in cmake. +EXTRA_OECMAKE += " -Denable_icecc=OFF" do_install_append() { mv ${D}/usr/include/amb/* ${D}/usr/include @@ -40,4 +35,9 @@ do_install_append() { install -m 0644 ${WORKDIR}/ambd.service ${D}${systemd_unitdir}/system } -FILES_${PN} += "${systemd_unitdir}/ambd.service" +FILES_${PN} += " ${systemd_unitdir}/ambd.service \ + ${@bb.utils.contains('BBFILE_COLLECTIONS','qt5-layer','${libdir}/qt5/qml/amb/','',d)} \ + " +FILES_${PN}-dbg += " \ + ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', '${libdir}/qt5/qml/amb/.debug', '', d)} \ + "