1 SUMMARY = "HTTP REST interface to automotive backends for HTML5 UI support"
2 DESCRIPTION = "Automotive-Framework-Binder Daemon provides a HTTP REST \
3 interface to various automotive-oriented bindings, \
4 allowing HTML5 UIs to send platform-specific requests in a secure way."
5 HOMEPAGE = "https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder"
8 LIC_FILES_CHKSUM = "file://LICENSE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
10 DEPENDS = "file json-c libmicrohttpd systemd util-linux openssl cynara"
12 SRC_URI_git = "git://gerrit.automotivelinux.org/gerrit/src/app-framework-binder;protocol=https;branch=${AGL_BRANCH}"
14 SRC_URI = "${SRC_URI_git} \
18 SRCREV = "3a3ee2aa68333fce13fb2611b0165def47573c5d"
19 PV = "master+git${SRCPV}"
23 inherit cmake pkgconfig
25 EXTRA_OECMAKE_append_agl-devel = " -DAGL_DEVEL=ON -DINCLUDE_MONITORING=ON"
27 pkg_postinst_${PN}() {
28 mkdir -p "$D${libdir}/afb"
31 #############################################
33 #############################################
34 PACKAGES += "${PN}-tools ${PN}-meta"
36 FILES_${PN} += "${datadir}"
38 FILES_${PN}_append_agl-devel = " ${libdir}/afb/monitoring"
40 ALLOW_EMPTY_${PN}-meta = "1"
42 FILES_${PN}-tools = "\
43 ${bindir}/afb-client-demo \
44 ${bindir}/afb-genskel \
47 RDEPENDS_${PN}-dev += "libafbwsc-dev"
49 #############################################
50 # setup sample binding packages
51 #############################################
52 PACKAGES_DYNAMIC = "${PN}-binding-*"
54 python populate_packages_prepend () {
55 afb_libdir = d.expand('${libdir}/afb')
56 postinst = d.getVar('binding_postinst', True)
60 pkgs += do_split_packages(d, afb_libdir, '(.*)-api\.so$', d.expand('${PN}-binding-%s'), 'AFB binding for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
61 pkgs += do_split_packages(d, afb_libdir, '(.*(?!-api))\.so$', d.expand('${PN}-binding-%s'), 'AFB binding for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
63 pkgs_dbg += do_split_packages(d, oe.path.join(afb_libdir, ".debug"), '(.*)-api\.so$', d.expand('${PN}-binding-%s-dbg'), 'AFB binding for %s, debug info', postinst=postinst, extra_depends=d.expand('${PN}'))
64 pkgs_dbg += do_split_packages(d, oe.path.join(afb_libdir, ".debug"), '(.*(?!-api))\.so$', d.expand('${PN}-binding-%s-dbg'), 'AFB binding for %s, debug info', postinst=postinst, extra_depends=d.expand('${PN}'))
66 metapkg = d.getVar('PN', True) + '-meta'
67 d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
70 #############################################
71 # setup libafbwsc package
72 #############################################
73 PACKAGES =+ "libafbwsc libafbwsc-dev libafbwsc-dbg"
76 ${libdir}/libafbwsc.so.* \
78 FILES_libafbwsc-dev = "\
79 ${includedir}/afb/afb-wsj1.h \
80 ${includedir}/afb/afb-ws-client.h \
81 ${libdir}/libafbwsc.so \
82 ${libdir}/pkgconfig/libafbwsc.pc \
84 FILES_libafbwsc-dbg = "\
85 ${libdir}/.debug/libafbwsc.so.* \
86 ${bindir}/.debug/afb-client-demo \
88 RDEPENDS_libafbwsc-dbg += "${PN}-dbg libafbwsc-dev"