Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | SUMMARY = "sdbus-c++" |
| 2 | DESCRIPTION = "High-level C++ D-Bus library designed to provide easy-to-use yet powerful API in modern C++" |
| 3 | |
| 4 | SECTION = "libs" |
| 5 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 6 | LICENSE = "LGPL-2.1-only" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=1803fa9c2c3ce8cb06b4861d75310742" |
| 8 | |
| 9 | inherit cmake pkgconfig systemd ptest |
| 10 | |
| 11 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'with-external-libsystemd', 'with-builtin-libsystemd', d)} \ |
| 12 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'with-tests', '', d)}" |
| 13 | PACKAGECONFIG[with-builtin-libsystemd] = ",,sdbus-c++-libsystemd,libcap" |
| 14 | PACKAGECONFIG[with-external-libsystemd] = ",,systemd,libsystemd" |
| 15 | PACKAGECONFIG[with-tests] = "-DBUILD_TESTS=ON -DTESTS_INSTALL_PATH=${libdir}/${BPN}/tests,-DBUILD_TESTS=OFF,googletest gmock" |
| 16 | |
| 17 | DEPENDS += "expat" |
| 18 | |
| 19 | SRCREV = "65782bbf435d91e5eb6af9ddab110df406a824a9" |
| 20 | |
| 21 | SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master" |
| 22 | SRC_URI += "file://run-ptest" |
| 23 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 24 | EXTRA_OECMAKE = "-DBUILD_CODE_GEN=OFF \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 25 | -DBUILD_DOC=ON \ |
| 26 | -DBUILD_DOXYGEN_DOC=OFF" |
| 27 | |
| 28 | S = "${WORKDIR}/git" |
| 29 | |
| 30 | do_install:append() { |
| 31 | if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then |
| 32 | rm -rf ${D}${sysconfdir}/dbus-1 |
| 33 | fi |
| 34 | } |
| 35 | |
| 36 | PTEST_PATH = "${libdir}/${BPN}/tests" |
| 37 | FILES:${PN}-ptest =+ "${sysconfdir}/dbus-1/system.d/" |
| 38 | FILES:${PN}-dev += "${bindir}/sdbus-c++-xml2cpp" |