Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [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 | |
| 6 | LICENSE = "LGPLv2.1" |
| 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" |
| 16 | |
| 17 | DEPENDS += "expat" |
| 18 | |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 19 | SRCREV = "6e8e5aadb674cccea5bdd55141db5dad887fbacd" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 20 | SRCREV_gtest = "a3460d1aeeaa43fdf137a6adefef10ba0b59fe4b" |
| 21 | SRCREV_FORMAT = "default_gtest" |
| 22 | |
| 23 | SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master \ |
| 24 | git://github.com/google/googletest.git;protocol=https;branch=master;name=gtest;destsuffix=git/tests/googletest-src \ |
| 25 | file://0001-Do-not-download-gtest-automatically.patch \ |
| 26 | " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 27 | SRC_URI += "file://run-ptest" |
| 28 | |
| 29 | EXTRA_OECMAKE = "-DBUILD_CODE_GEN=ON \ |
| 30 | -DBUILD_DOC=ON \ |
| 31 | -DBUILD_DOXYGEN_DOC=OFF" |
| 32 | |
| 33 | S = "${WORKDIR}/git" |
| 34 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 35 | do_install:append() { |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame] | 36 | if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then |
| 37 | rm -rf ${D}${sysconfdir}/dbus-1 |
| 38 | fi |
| 39 | } |
| 40 | |
| 41 | PTEST_PATH = "${libdir}/${BPN}/tests" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 42 | FILES:${PN}-ptest =+ "${sysconfdir}/dbus-1/system.d/" |
| 43 | FILES:${PN}-dev += "${bindir}/sdbus-c++-xml2cpp" |