blob: ef0330d9c5495b2f07b5b3b9ae8423e1058319ac [file] [log] [blame]
Brad Bishope3278032016-11-09 20:43:11 -05001SUMMARY = "C++ bindings for systemd dbus APIs"
2DESCRIPTION = "C++ bindings for systemd dbus APIs."
3HOMEPAGE = "http://github.com/openbmc/sdbusplus"
4PR = "r1"
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
7
8inherit autotools pkgconfig
Patrick Williams8fc96292016-11-22 07:01:14 -06009inherit obmc-phosphor-python-autotools
Brad Bishope3278032016-11-09 20:43:11 -050010
11DEPENDS += "autoconf-archive-native"
Brad Bishop13b8afa2017-01-12 14:06:43 -050012RDEPENDS_sdbus++ += " \
Brad Bishope3278032016-11-09 20:43:11 -050013 python-inflection \
14 python-mako \
15 python-pyyaml \
16 "
17
Brad Bishop6b4da622017-01-18 13:59:33 -050018# sdbus++ has a handful of runtime dependencies on other python packages.
19# Bitbake doesn't do anything with RDEPENDS in native context because
20# native context doesn't have packages.
21#
22# While technically sdbus++ doesn't require its runtime dependencies to be
23# installed to build, work around the above native context behavior
24# by adding a build dependency so that clients don't have to DEPEND
25# on sdbus++ runtime dependencies manually.
26
27DEPENDS_append_class-native = " \
28 python-inflection-native \
29 python-mako-native \
30 python-pyyaml-native \
31 "
32
Brad Bishope3278032016-11-09 20:43:11 -050033SRC_URI += "git://github.com/openbmc/sdbusplus"
Patrick Williams8c7336f2017-05-03 15:50:02 -050034SRCREV = "da25f34244f68ff00d3e4c5ee945b160e7c4b307"
Brad Bishope3278032016-11-09 20:43:11 -050035
Adriana Kobylak9bcfdbb2017-02-12 17:40:26 -060036PACKAGECONFIG ??= "libsdbusplus transaction"
Brad Bishope3278032016-11-09 20:43:11 -050037PACKAGECONFIG[libsdbusplus] = "--enable-libsdbusplus,--disable-libsdbusplus,systemd,libsystemd"
Adriana Kobylak9bcfdbb2017-02-12 17:40:26 -060038PACKAGECONFIG[transaction] = "--enable-transaction,--disable-transaction"
Brad Bishope3278032016-11-09 20:43:11 -050039
40S = "${WORKDIR}/git"
41
Patrick Williams592d7982016-11-22 11:05:11 -060042PROVIDES_prepend = "sdbus++ "
43PACKAGES_prepend = "sdbus++ "
44FILES_sdbus++_append = " ${bindir}/sdbus++"
45PYTHON_AUTOTOOLS_PACKAGE = "sdbus++"
46
Brad Bishope3278032016-11-09 20:43:11 -050047PACKAGECONFIG_remove_class-native = "libsdbusplus"
48PACKAGECONFIG_remove_class-nativesdk = "libsdbusplus"
49
Brad Bishope3278032016-11-09 20:43:11 -050050BBCLASSEXTEND += "native nativesdk"