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 = "4e72c3a2a4e550f99430d1f37a8ef693d2daa8c3"
19 PV = "dab+git${SRCPV}"
23 inherit cmake pkgconfig
25 CFLAGS_append_agl-devel = " -DAGL_DEVEL"
27 pkg_postinst_${PN}() {
28 mkdir -p "$D${libdir}/afb"
31 #############################################
33 #############################################
34 PACKAGES += "${PN}-tools ${PN}-meta"
36 FILES_${PN} += "${datadir}"
38 ALLOW_EMPTY_${PN}-meta = "1"
40 FILES_${PN}-tools = "\
41 ${bindir}/afb-client-demo \
42 ${bindir}/afb-genskel \
45 RDEPENDS_${PN}-dev += "libafbwsc-dev"
47 #############################################
48 # setup sample binding packages
49 #############################################
50 PACKAGES_DYNAMIC = "${PN}-binding-*"
52 python populate_packages_prepend () {
53 afb_libdir = d.expand('${libdir}/afb')
54 postinst = d.getVar('binding_postinst', True)
58 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}'))
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}'))
61 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}'))
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}'))
64 metapkg = d.getVar('PN', True) + '-meta'
65 d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
68 #############################################
69 # setup libafbwsc package
70 #############################################
71 PACKAGES =+ "libafbwsc libafbwsc-dev libafbwsc-dbg"
74 ${libdir}/libafbwsc.so.* \
76 FILES_libafbwsc-dev = "\
77 ${includedir}/afb/afb-wsj1.h \
78 ${includedir}/afb/afb-ws-client.h \
79 ${libdir}/libafbwsc.so \
80 ${libdir}/pkgconfig/libafbwsc.pc \
82 FILES_libafbwsc-dbg = "\
83 ${libdir}/.debug/libafbwsc.so.* \
84 ${bindir}/.debug/afb-client-demo \
86 RDEPENDS_libafbwsc-dbg += "${PN}-dbg libafbwsc-dev"