blob: 8ffdcb057f03948869d97bd69e002a9c94b3e4ab [file] [log] [blame]
Patrick Williamsf6f2edb2017-01-30 11:05:56 -06001SUMMARY = "Phosphor DBus Interfaces"
2DESCRIPTION = "Generated bindings, using sdbus++, for the phosphor YAML"
3PR = "r1"
Patrick Venture8ded78f2018-10-01 20:51:32 -07004PV = "1.0+git${SRCPV}"
Patrick Williamsf6f2edb2017-01-30 11:05:56 -06005S = "${WORKDIR}/git"
Patrick Venture1a3fdfa2018-11-03 09:42:19 -07006LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
Patrick Williamsf6f2edb2017-01-30 11:05:56 -06008
Patrick Williams7e639692020-09-08 16:51:14 -05009inherit meson
10inherit obmc-phosphor-utils
Marri Devender Raoe3414012017-05-29 01:33:26 -050011inherit phosphor-dbus-yaml
Patrick Williams7e639692020-09-08 16:51:14 -050012inherit python3native
Patrick Williamsf6f2edb2017-01-30 11:05:56 -060013
Patrick Williams4da53be2020-09-08 15:33:11 -050014DEPENDS += " \
15 ${PYTHON_PN}-sdbus++-native \
Patrick Williams4da53be2020-09-08 15:33:11 -050016 sdbusplus \
17 systemd \
18 "
Patrick Williamsf6f2edb2017-01-30 11:05:56 -060019
Brad Bishop10862f22020-03-25 15:02:29 -040020SRC_URI = "git://github.com/openbmc/phosphor-dbus-interfaces"
Andrew Geisslere9dedd12020-10-16 20:41:13 +000021SRCREV = "1d4979c7e3996a4ab80915f320536cc9e78f41e8"
Patrick Williams7e639692020-09-08 16:51:14 -050022
23# Process OBMC_ORG_YAML_SUBDIRS to create Meson config options.
24# ex. xyz/openbmc_project -> -Ddata_xyz_openbmc_project=true
25def pdi_meson_config(d):
26 return ' '.join([
27 '-Ddata_' + x.replace('/', '_') + '=true' \
28 for x in listvar_to_list(d, 'OBMC_ORG_YAML_SUBDIRS')
29 ])
Patrick Williamsf48f5ba2020-09-15 10:33:02 -050030pdi_meson_config[vardeps] = "OBMC_ORG_YAML_SUBDIRS"
Patrick Williams7e639692020-09-08 16:51:14 -050031
Patrick Williams6a07a162020-10-06 11:43:40 -050032# Markdown files are installed into /usr/share/phosphor-dbus-interfaces so
33# add them to the 'doc' subpackage.
34FILES_${PN}-doc += "${datadir}/${BPN}"
35
36EXTRA_OEMESON_append = " \
37 -Db_lto=true \
38 ${@pdi_meson_config(d)}"