kpackage: add native build for kpackagetool5 referenced by CMake

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2016-08-25 11:41:58 +02:00
parent 551c2953cc
commit 1cef11622a
4 changed files with 65 additions and 12 deletions

View File

@@ -0,0 +1,41 @@
From 938ed57e8985770b1e9824a1d1de3d67b3b2f2f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
Date: Thu, 25 Aug 2016 11:30:33 +0200
Subject: [PATCH] do build kpackagetool only on native
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Upstream-Status: Inappropriate [embedded specific]
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7f2236..f8af062 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -107,6 +107,7 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kpackage_version.h
# make package_version.h available
include_directories(${CMAKE_CURRENT_BINARY_DIR})
+if (false)
################# list the subdirectories #################
if (KF5DocTools_FOUND)
add_subdirectory(docs)
@@ -119,7 +120,10 @@ if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
endif()
endif()
+endif()
add_subdirectory(src)
+if (false)
add_subdirectory(autotests)
+endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
--
2.7.4

View File

@@ -0,0 +1,7 @@
require ${BPN}.inc
inherit native
DEPENDS += "karchive-native ki18n-native kcoreaddons-native kconfig-native"
SRC_URI += "file://0001-do-build-kpackagetool-only-on-native.patch"

View File

@@ -1,20 +1,12 @@
SUMMARY = "Library to load and install packages of non binary files as they were a plugin"
LICENSE = "GPLv2 | LGPLv2.1"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
"
require ${BPN}.inc
inherit kde-kf5 cmake-lib
inherit cmake-lib
DEPENDS += "karchive ki18n kcoreaddons kconfig kdoctools"
PV = "${KF5_VERSION}"
SRC_URI[md5sum] = "237995199b61f5dd48e862c12fe7779e"
SRC_URI[sha256sum] = "47c641dc173d5b597937b00fe2e01a0058916273278a7d44f4c3ae932b753013"
DEPENDS += "${BPN}-native karchive ki18n kcoreaddons kconfig kdoctools"
# cross libs / headers
CMAKE_ALIGN_SYSROOT[1] = "KF5Package, -S${libdir}/lib, -S${STAGING_LIBDIR}/lib"
CMAKE_ALIGN_SYSROOT[2] = "KF5Package, -S${includedir}, -S${STAGING_INCDIR}"
CMAKE_ALIGN_SYSROOT[3] = "KF5Package, -S${bindir}, -S${STAGING_BINDIR_NATIVE}"
FILES_${PN} += "${datadir}/k*5"

View File

@@ -0,0 +1,13 @@
SUMMARY = "Library to load and install packages of non binary files as they were a plugin"
LICENSE = "GPLv2 | LGPLv2.1"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
"
inherit kde-kf5
PV = "${KF5_VERSION}"
SRC_URI[md5sum] = "237995199b61f5dd48e862c12fe7779e"
SRC_URI[sha256sum] = "47c641dc173d5b597937b00fe2e01a0058916273278a7d44f4c3ae932b753013"