blob: a440003514240b4aeb158d650160ceba17e0abc1 [file] [log] [blame]
Brad Bishope3278032016-11-09 20:43:11 -05001SUMMARY = "C++ bindings for systemd dbus APIs"
2DESCRIPTION = "C++ bindings for systemd dbus APIs."
Brad Bishope3278032016-11-09 20:43:11 -05003
4inherit autotools pkgconfig
Patrick Williams8fc96292016-11-22 07:01:14 -06005inherit obmc-phosphor-python-autotools
Brad Bishope3278032016-11-09 20:43:11 -05006
Patrick Williams2e595322020-03-31 12:51:05 -05007include sdbusplus-rev.inc
8
Nagaraju Goruganti9940d4f2017-08-22 05:24:26 -05009DEPENDS += " \
10 autoconf-archive-native \
Patrick Williams853ff1b2020-02-24 16:27:10 -060011 ${PYTHON_PN}-inflection-native \
12 ${PYTHON_PN}-mako-native \
13 ${PYTHON_PN}-pyyaml-native \
Nagaraju Goruganti9940d4f2017-08-22 05:24:26 -050014 "
Brad Bishop13b8afa2017-01-12 14:06:43 -050015RDEPENDS_sdbus++ += " \
Patrick Williams853ff1b2020-02-24 16:27:10 -060016 ${PYTHON_PN} \
17 ${PYTHON_PN}-inflection \
18 ${PYTHON_PN}-mako \
19 ${PYTHON_PN}-pyyaml \
Brad Bishope3278032016-11-09 20:43:11 -050020 "
21
Brad Bishop6b4da622017-01-18 13:59:33 -050022# sdbus++ has a handful of runtime dependencies on other python packages.
23# Bitbake doesn't do anything with RDEPENDS in native context because
24# native context doesn't have packages.
25#
26# While technically sdbus++ doesn't require its runtime dependencies to be
27# installed to build, work around the above native context behavior
28# by adding a build dependency so that clients don't have to DEPEND
29# on sdbus++ runtime dependencies manually.
30
31DEPENDS_append_class-native = " \
Patrick Williams853ff1b2020-02-24 16:27:10 -060032 ${PYTHON_PN}-inflection-native \
33 ${PYTHON_PN}-mako-native \
34 ${PYTHON_PN}-pyyaml-native \
Brad Bishop6b4da622017-01-18 13:59:33 -050035 "
36
Adriana Kobylak9bcfdbb2017-02-12 17:40:26 -060037PACKAGECONFIG ??= "libsdbusplus transaction"
Brad Bishope3278032016-11-09 20:43:11 -050038PACKAGECONFIG[libsdbusplus] = "--enable-libsdbusplus,--disable-libsdbusplus,systemd,libsystemd"
Adriana Kobylak9bcfdbb2017-02-12 17:40:26 -060039PACKAGECONFIG[transaction] = "--enable-transaction,--disable-transaction"
Brad Bishope3278032016-11-09 20:43:11 -050040
Patrick Williams592d7982016-11-22 11:05:11 -060041PROVIDES_prepend = "sdbus++ "
Brad Bishop50a5dc12018-02-27 00:30:06 -050042PACKAGE_BEFORE_PN = "sdbus++"
Patrick Williams592d7982016-11-22 11:05:11 -060043FILES_sdbus++_append = " ${bindir}/sdbus++"
44PYTHON_AUTOTOOLS_PACKAGE = "sdbus++"
45
Brad Bishope3278032016-11-09 20:43:11 -050046PACKAGECONFIG_remove_class-native = "libsdbusplus"
47PACKAGECONFIG_remove_class-nativesdk = "libsdbusplus"
48
Brad Bishope3278032016-11-09 20:43:11 -050049BBCLASSEXTEND += "native nativesdk"