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"
12 SRC_URI_git = "git://gerrit.automotivelinux.org/gerrit/src/app-framework-binder;protocol=https;branch=master"
14 SRC_URI = "${SRC_URI_git} \
18 SRCREV = "2db7c92c0b4f5840884481fa4c95facbdea63bb6"
21 inherit cmake pkgconfig
23 FILES_${PN} += "${datadir}"
25 pkg_postinst_${PN}() {
26 mkdir -p "$D${libdir}/afb"
29 #############################################
31 #############################################
32 PACKAGES += "${PN}-meta"
33 ALLOW_EMPTY_${PN}-meta = "1"
35 #############################################
36 # setup sample binding packages
37 #############################################
38 PACKAGES_DYNAMIC = "${PN}-binding-*"
40 python populate_packages_prepend () {
41 afb_libdir = d.expand('${libdir}/afb')
42 postinst = d.getVar('binding_postinst', True)
46 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}'))
47 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}'))
49 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}'))
50 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}'))
52 metapkg = d.getVar('PN', True) + '-meta'
53 d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
56 #############################################
57 # setup libafbwsc package
58 #############################################
59 PACKAGES =+ "libafbwsc libafbwsc-dev libafbwsc-dbg"
62 ${libdir}/libafbwsc.so.* \
64 FILES_libafbwsc-dev = "\
65 ${includedir}/afb/afb-wsj1.h \
66 ${includedir}/afb/afb-ws-client.h \
67 ${bindir}/afb-client-demo \
68 ${libdir}/libafbwsc.so \
69 ${libdir}/pkgconfig/libafbwsc.pc \
71 FILES_libafbwsc-dbg = "\
72 ${libdir}/.debug/libafbwsc.so.* \
73 ${bindir}/.debug/afb-client-demo \
75 RDEPENDS_libafbwsc-dbg += "${PN}-dbg libafbwsc-dev"
77 RDEPENDS_${PN}-dev += "libafbwsc-dev"