blob: 72edd5e305b4893c5b35308c23eb7116381b1c41 [file] [log] [blame]
Brad Bishop595edcf2016-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 Williams58185302016-11-22 07:01:14 -06009inherit obmc-phosphor-python-autotools
Brad Bishop595edcf2016-11-09 20:43:11 -050010
Nagaraju Goruganti78077a52017-08-22 05:24:26 -050011DEPENDS += " \
12 autoconf-archive-native \
13 python-inflection-native \
14 python-mako-native \
15 python-pyyaml-native \
16 "
Brad Bishop29dc8702017-01-12 14:06:43 -050017RDEPENDS_sdbus++ += " \
Brad Bishop595edcf2016-11-09 20:43:11 -050018 python-inflection \
19 python-mako \
20 python-pyyaml \
21 "
22
Brad Bishop32f0a9a2017-01-18 13:59:33 -050023# sdbus++ has a handful of runtime dependencies on other python packages.
24# Bitbake doesn't do anything with RDEPENDS in native context because
25# native context doesn't have packages.
26#
27# While technically sdbus++ doesn't require its runtime dependencies to be
28# installed to build, work around the above native context behavior
29# by adding a build dependency so that clients don't have to DEPEND
30# on sdbus++ runtime dependencies manually.
31
32DEPENDS_append_class-native = " \
33 python-inflection-native \
34 python-mako-native \
35 python-pyyaml-native \
36 "
37
Brad Bishop595edcf2016-11-09 20:43:11 -050038SRC_URI += "git://github.com/openbmc/sdbusplus"
Andrew Geissler8d64ddb2018-08-31 00:40:15 +000039SRCREV = "8ce61e4e20a11fbb605cd29f07a820213dbcf91e"
Brad Bishop595edcf2016-11-09 20:43:11 -050040
Adriana Kobylak178d6b52017-02-12 17:40:26 -060041PACKAGECONFIG ??= "libsdbusplus transaction"
Brad Bishop595edcf2016-11-09 20:43:11 -050042PACKAGECONFIG[libsdbusplus] = "--enable-libsdbusplus,--disable-libsdbusplus,systemd,libsystemd"
Adriana Kobylak178d6b52017-02-12 17:40:26 -060043PACKAGECONFIG[transaction] = "--enable-transaction,--disable-transaction"
Brad Bishop595edcf2016-11-09 20:43:11 -050044
45S = "${WORKDIR}/git"
46
Patrick Williams29792022016-11-22 11:05:11 -060047PROVIDES_prepend = "sdbus++ "
Brad Bishopcc01d1a2018-02-27 00:30:06 -050048PACKAGE_BEFORE_PN = "sdbus++"
Patrick Williams29792022016-11-22 11:05:11 -060049FILES_sdbus++_append = " ${bindir}/sdbus++"
50PYTHON_AUTOTOOLS_PACKAGE = "sdbus++"
51
Brad Bishop595edcf2016-11-09 20:43:11 -050052PACKAGECONFIG_remove_class-native = "libsdbusplus"
53PACKAGECONFIG_remove_class-nativesdk = "libsdbusplus"
54
Brad Bishop595edcf2016-11-09 20:43:11 -050055BBCLASSEXTEND += "native nativesdk"