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=dab"
14 SRC_URI = "${SRC_URI_git} \
18 SRCREV = "b2a1f5f40ec0663d57a18f97e04d1ce4901af468"
19 PV = "dab+git${SRCPV}"
23 inherit cmake pkgconfig
25 EXTRA_OECMAKE_append_agl-devel = " -DAGL_DEVEL=1"
26 CFLAGS_append_agl-devel = " -DAGL_DEVEL"
28 pkg_postinst_${PN}() {
29 mkdir -p "$D${libdir}/afb"
32 #############################################
34 #############################################
35 PACKAGES += "${PN}-tools ${PN}-meta"
37 FILES_${PN} += "${datadir}"
39 ALLOW_EMPTY_${PN}-meta = "1"
41 FILES_${PN}-tools = "\
42 ${bindir}/afb-client-demo \
43 ${bindir}/afb-genskel \
46 RDEPENDS_${PN}-dev += "libafbwsc-dev"
48 #############################################
49 # setup sample binding packages
50 #############################################
51 PACKAGES_DYNAMIC = "${PN}-binding-*"
53 python populate_packages_prepend () {
54 afb_libdir = d.expand('${libdir}/afb')
55 postinst = d.getVar('binding_postinst', True)
59 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}'))
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}'))
62 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}'))
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}'))
65 metapkg = d.getVar('PN', True) + '-meta'
66 d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
69 #############################################
70 # setup libafbwsc package
71 #############################################
72 PACKAGES =+ "libafbwsc libafbwsc-dev libafbwsc-dbg"
75 ${libdir}/libafbwsc.so.* \
77 FILES_libafbwsc-dev = "\
78 ${includedir}/afb/afb-wsj1.h \
79 ${includedir}/afb/afb-ws-client.h \
80 ${libdir}/libafbwsc.so \
81 ${libdir}/pkgconfig/libafbwsc.pc \
83 FILES_libafbwsc-dbg = "\
84 ${libdir}/.debug/libafbwsc.so.* \
85 ${bindir}/.debug/afb-client-demo \
87 RDEPENDS_libafbwsc-dbg += "${PN}-dbg libafbwsc-dev"