1SUMMARY = "sdbus-c++" 2DESCRIPTION = "High-level C++ D-Bus library designed to provide easy-to-use yet powerful API in modern C++" 3 4SECTION = "libs" 5 6LICENSE = "LGPL-2.1-only" 7LIC_FILES_CHKSUM = "file://COPYING;md5=1803fa9c2c3ce8cb06b4861d75310742" 8 9inherit cmake pkgconfig systemd ptest 10 11PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'with-external-libsystemd', 'with-builtin-libsystemd', d)} \ 12 ${@bb.utils.contains('PTEST_ENABLED', '1', 'with-tests', '', d)}" 13PACKAGECONFIG[with-builtin-libsystemd] = ",,sdbus-c++-libsystemd,libcap" 14PACKAGECONFIG[with-external-libsystemd] = ",,systemd,libsystemd" 15PACKAGECONFIG[with-tests] = "-DBUILD_TESTS=ON -DTESTS_INSTALL_PATH=${libdir}/${BPN}/tests,-DBUILD_TESTS=OFF,googletest gmock" 16 17DEPENDS += "expat" 18 19SRCREV = "65782bbf435d91e5eb6af9ddab110df406a824a9" 20 21SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master" 22SRC_URI += "file://run-ptest" 23 24EXTRA_OECMAKE = "-DBUILD_CODE_GEN=OFF \ 25 -DBUILD_DOC=ON \ 26 -DBUILD_DOXYGEN_DOC=OFF" 27 28S = "${WORKDIR}/git" 29 30# Link libatomic on architectures without 64bit atomics fixes 31# libsdbus-c++.so.1.1.0: undefined reference to `__atomic_load_8' 32LDFLAGS:append:mips = " -Wl,--no-as-needed -latomic -Wl,--as-needed" 33LDFLAGS:append:powerpc = " -Wl,--no-as-needed -latomic -Wl,--as-needed" 34LDFLAGS:append:riscv32 = " -Wl,--no-as-needed -latomic -Wl,--as-needed" 35 36do_install:append() { 37 if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then 38 rm -rf ${D}${sysconfdir}/dbus-1 39 fi 40} 41 42PTEST_PATH = "${libdir}/${BPN}/tests" 43FILES:${PN}-ptest =+ "${sysconfdir}/dbus-1/system.d/" 44FILES:${PN}-dev += "${bindir}/sdbus-c++-xml2cpp" 45