Add KConfig recipe

Summary:
Based on Johan's work branch. This also disables unit tests for all
frameworks, tests aren't executable for cross-builds anyway, and KConfig
tries to run the target kconfig_compiler there.

The native version can still further improved by allowing a QtCore-only
build of KConfig, as we are only interested in the kconfig_compiler.

Reviewers: cordlandwehr

Reviewed By: cordlandwehr

Differential Revision: https://phabricator.kde.org/D6987
This commit is contained in:
Volker Krause
2017-07-30 12:56:07 +02:00
parent ab1ef73548
commit e29f976fac
3 changed files with 24 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ inherit cmake_qt5
EXTRA_OECMAKE += " \
-DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST} \
-DKF5_HOST_TOOLING=${STAGING_DIR_NATIVE}/usr/lib/cmake \
-DBUILD_TESTING=OFF \
"
DEPENDS += "ecm"

View File

@@ -0,0 +1,21 @@
# requires session management support in QtGui
# eg. via PACKAGECONFIG_append_pn-qtbase = "sm" in local.conf
DESCRIPTION = "KConfig"
HOMEPAGE = "https://api.kde.org/frameworks/kconfig/html/index.html"
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
"
PR = "r0"
DEPENDS = "qtbase"
SRC_URI = "git://anongit.kde.org/kconfig;nobranch=1"
S = "${WORKDIR}/git"
inherit cmake_kf5
FILES_${PN}-dev += " \
${libdir}/cmake/KF5Config/*.cmake \
${prefix}/mkspecs/modules/qt_KConfig*.pri \
"

View File

@@ -0,0 +1,2 @@
require ${PN}.inc
SRCREV = "v${PV}"