1 SUMMARY = "automotive message broker"
2 DESCRIPTION = "Automotive-message-broker abstracts the details of the network \
3 away from applications and provides a standard API for applications to easily \
4 get the required information"
6 HOMEPAGE = "https://github.com/otcshare/automotive-message-broker/wiki"
8 require automotive-message-broker_git.inc
10 CMAKE_QT5_CLASS = "${@bb.utils.contains('BBFILE_COLLECTIONS','qt5-layer','cmake_qt5','',d)}"
11 inherit cmake systemd ${CMAKE_QT5_CLASS}
13 DEPENDS = "glib-2.0 util-linux sqlite3 boost json-c libtool"
14 RDEPENDS_${PN} = "python-misc python-json python-curses"
16 PACKAGECONFIG ??= " use_gps \
17 ${@bb.utils.contains('BBFILE_COLLECTIONS','qt5-layer','use_qt5','', d)} \
19 PACKAGECONFIG[use_gps] = "-Dgpsnmea_plugin=On"
20 PACKAGECONFIG[use_qt5] = "-Dqtmainloop=On -Dqt_bindings=On,,qtbase qtdeclarative"
22 SYSTEMD_PACKAGES = "${PN}"
23 SYSTEMD_SERVICE_${PN} = "ambd.service"
25 # amb detects icecc in cmake and would override the
26 # compiler selection of yocto. This breaks the build
27 # if icecc is installed on the host.
28 # -> Disable the detection in cmake.
29 EXTRA_OECMAKE += " -Denable_icecc=OFF"
32 mv ${D}/usr/include/amb/* ${D}/usr/include
33 sed -i 's,/amb,,' ${D}${libdir}/pkgconfig/*.pc
35 install -d ${D}${systemd_unitdir}/system/
36 install -m 0644 ${WORKDIR}/ambd.service ${D}${systemd_unitdir}/system
38 if [ "${@bb.utils.contains('PACKAGECONFIG', 'use_gps', 'use_gps', '', d)}" = "use_gps" ]; then
39 install -m 0644 ${WORKDIR}/gps ${D}/${sysconfdir}/ambd/plugins.d
43 FILES_${PN} += " ${systemd_unitdir}/ambd.service \
44 ${@bb.utils.contains('BBFILE_COLLECTIONS','qt5-layer','${libdir}/qt5/qml/amb/','',d)} \
46 FILES_${PN}-dbg += " \
47 ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', '${libdir}/qt5/qml/amb/.debug', '', d)} \