kded: create dummy native executable for CMake's sake

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2015-09-01 19:48:16 +02:00
parent d9607b5c14
commit 29ac2c3000
2 changed files with 11 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
CMAKE_DUMMY_BINARIES = "kded5"
inherit cmake-native-dummy

View File

@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \
inherit kde-kf5 cmake-lib
DEPENDS += "kconfig kcoreaddons kcrash kdbusaddons kdoctools kinit kservice"
DEPENDS += "${BPN}-native kconfig kcoreaddons kcrash kdbusaddons kdoctools kinit kservice"
PV = "${KF5_VERSION}"
SRC_URI[md5sum] = "f51103fa7e7df6ba60592853aa57276e"
@@ -17,8 +17,8 @@ SRC_URI += "file://0001-hardcode-path-to-kconf_update.patch"
CMAKE_ALIGN_SYSROOT[1] = "KDED, -S${libdir}/lib, -S${STAGING_LIBDIR}/lib"
CMAKE_ALIGN_SYSROOT[2] = "KDED, -S${includedir}, -S${STAGING_INCDIR}"
# executables REVISIT -> native
#CMAKE_ALIGN_SYSROOT[3] = "KDED, -S${bindir}, -S${STAGING_BINDIR}"
# kded's kded5 is not required for build -> point to native dummy to make cmake happy
CMAKE_ALIGN_SYSROOT[3] = "KDED, -S${bindir}/kded5, -S${STAGING_BINDIR_NATIVE}/kded5"
FILES_${PN} += "${datadir}/dbus-1 ${datadir}/k*5 ${libdir}/libkdeinit5_kded5.so"
FILES_${PN}-dev = "${libdir}/cmake"