Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 1 | SUMMARY = "C++ bindings for systemd dbus APIs" |
| 2 | DESCRIPTION = "C++ bindings for systemd dbus APIs." |
| 3 | HOMEPAGE = "http://github.com/openbmc/sdbusplus" |
| 4 | PR = "r1" |
Patrick Venture | 66d1584 | 2018-10-17 07:19:55 -0700 | [diff] [blame] | 5 | PV = "1.0+git${SRCPV}" |
Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 6 | LICENSE = "Apache-2.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 8 | |
| 9 | inherit autotools pkgconfig |
Patrick Williams | 5818530 | 2016-11-22 07:01:14 -0600 | [diff] [blame] | 10 | inherit obmc-phosphor-python-autotools |
Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 11 | |
Nagaraju Goruganti | 78077a5 | 2017-08-22 05:24:26 -0500 | [diff] [blame] | 12 | DEPENDS += " \ |
| 13 | autoconf-archive-native \ |
Patrick Williams | 4cd2243 | 2020-02-24 16:27:10 -0600 | [diff] [blame] | 14 | ${PYTHON_PN}-inflection-native \ |
| 15 | ${PYTHON_PN}-mako-native \ |
| 16 | ${PYTHON_PN}-pyyaml-native \ |
Nagaraju Goruganti | 78077a5 | 2017-08-22 05:24:26 -0500 | [diff] [blame] | 17 | " |
Brad Bishop | 29dc870 | 2017-01-12 14:06:43 -0500 | [diff] [blame] | 18 | RDEPENDS_sdbus++ += " \ |
Patrick Williams | 4cd2243 | 2020-02-24 16:27:10 -0600 | [diff] [blame] | 19 | ${PYTHON_PN} \ |
| 20 | ${PYTHON_PN}-inflection \ |
| 21 | ${PYTHON_PN}-mako \ |
| 22 | ${PYTHON_PN}-pyyaml \ |
Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 23 | " |
| 24 | |
Brad Bishop | 32f0a9a | 2017-01-18 13:59:33 -0500 | [diff] [blame] | 25 | # sdbus++ has a handful of runtime dependencies on other python packages. |
| 26 | # Bitbake doesn't do anything with RDEPENDS in native context because |
| 27 | # native context doesn't have packages. |
| 28 | # |
| 29 | # While technically sdbus++ doesn't require its runtime dependencies to be |
| 30 | # installed to build, work around the above native context behavior |
| 31 | # by adding a build dependency so that clients don't have to DEPEND |
| 32 | # on sdbus++ runtime dependencies manually. |
| 33 | |
| 34 | DEPENDS_append_class-native = " \ |
Patrick Williams | 4cd2243 | 2020-02-24 16:27:10 -0600 | [diff] [blame] | 35 | ${PYTHON_PN}-inflection-native \ |
| 36 | ${PYTHON_PN}-mako-native \ |
| 37 | ${PYTHON_PN}-pyyaml-native \ |
Brad Bishop | 32f0a9a | 2017-01-18 13:59:33 -0500 | [diff] [blame] | 38 | " |
| 39 | |
Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 40 | SRC_URI += "git://github.com/openbmc/sdbusplus" |
Andrew Geissler | 59f86f0 | 2020-03-17 16:30:54 +0000 | [diff] [blame] | 41 | SRCREV = "7eb0d25fbc202d9933f9429824b553c06fd49646" |
Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 42 | |
Adriana Kobylak | 178d6b5 | 2017-02-12 17:40:26 -0600 | [diff] [blame] | 43 | PACKAGECONFIG ??= "libsdbusplus transaction" |
Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 44 | PACKAGECONFIG[libsdbusplus] = "--enable-libsdbusplus,--disable-libsdbusplus,systemd,libsystemd" |
Adriana Kobylak | 178d6b5 | 2017-02-12 17:40:26 -0600 | [diff] [blame] | 45 | PACKAGECONFIG[transaction] = "--enable-transaction,--disable-transaction" |
Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 46 | |
| 47 | S = "${WORKDIR}/git" |
| 48 | |
Patrick Williams | 2979202 | 2016-11-22 11:05:11 -0600 | [diff] [blame] | 49 | PROVIDES_prepend = "sdbus++ " |
Brad Bishop | cc01d1a | 2018-02-27 00:30:06 -0500 | [diff] [blame] | 50 | PACKAGE_BEFORE_PN = "sdbus++" |
Patrick Williams | 2979202 | 2016-11-22 11:05:11 -0600 | [diff] [blame] | 51 | FILES_sdbus++_append = " ${bindir}/sdbus++" |
| 52 | PYTHON_AUTOTOOLS_PACKAGE = "sdbus++" |
| 53 | |
Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 54 | PACKAGECONFIG_remove_class-native = "libsdbusplus" |
| 55 | PACKAGECONFIG_remove_class-nativesdk = "libsdbusplus" |
| 56 | |
Brad Bishop | 595edcf | 2016-11-09 20:43:11 -0500 | [diff] [blame] | 57 | BBCLASSEXTEND += "native nativesdk" |