clazy: Intial add 1.11
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -6,6 +6,10 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*/*.bb ${LAYERD
|
||||
# appends
|
||||
BBFILES += "${LAYERDIR}/extends-*/*.bb ${LAYERDIR}/extends-*/*.bbappend"
|
||||
|
||||
BBFILES_DYNAMIC += " \
|
||||
clang-layer:${LAYERDIR}/extends-meta-clang/*/*.bb \
|
||||
"
|
||||
|
||||
BBFILE_COLLECTIONS += "meta-qt5-extra"
|
||||
BBFILE_PATTERN_meta-qt5-extra := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-qt5-extra = "20"
|
||||
|
||||
22
extends-meta-clang/recipes-kde/clazy.bb
Normal file
22
extends-meta-clang/recipes-kde/clazy.bb
Normal file
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "Qt oriented code checker based on clang framework"
|
||||
HOMEPAGE = "http://gottcode.org/hexalate/"
|
||||
LICENSE = "LGPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING-LGPL2.txt;md5=d31701979430eba03ad0eac6e517dec3"
|
||||
|
||||
DEPENDS = "clang"
|
||||
|
||||
inherit kde-base
|
||||
|
||||
PV = "1.11"
|
||||
SRC_URI += "file://0001-clazy-no-rpath.patch"
|
||||
SRC_URI[sha256sum] = "66165df33be8785218720c8947aa9099bae6d06c90b1501953d9f95fdfa0120a"
|
||||
|
||||
EXTRA_OECMAKE += " \
|
||||
-DREGEX_RUN_RESULT=0 \
|
||||
-DFILESYSTEM_RUN_RESULT=0 \
|
||||
-DFILESYSTEM_RUN_RESULT__TRYRUN_OUTPUT=0 \
|
||||
"
|
||||
|
||||
FILES:${PN} += "${libdir}/ClazyPlugin.so"
|
||||
|
||||
BBCLASSEXTEND += "native nativesdk"
|
||||
@@ -0,0 +1,33 @@
|
||||
From ab4ef9168d79e5196f4b010bbab9368716509354 Mon Sep 17 00:00:00 2001
|
||||
From: "FeRD (Frank Dana)" <ferdnyc@gmail.com>
|
||||
Date: Sat, 1 May 2021 20:31:45 -0400
|
||||
Subject: [PATCH] clazy no rpath
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 46173fa..c893590 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -237,6 +237,7 @@ if (NOT CLAZY_BUILD_WITH_CLANG)
|
||||
endif()
|
||||
|
||||
# rpath
|
||||
+if(FALSE) # Disable rpath
|
||||
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
||||
@@ -245,6 +246,7 @@ if (NOT CLAZY_BUILD_WITH_CLANG)
|
||||
if("${isSystemDir}" STREQUAL "-1")
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
||||
endif("${isSystemDir}" STREQUAL "-1")
|
||||
+endif()
|
||||
|
||||
# Build clazy-standalone
|
||||
add_executable(clazy-standalone ${CLAZY_STANDALONE_SRCS})
|
||||
--
|
||||
2.30.2
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ RDEPENDS:${PN} = " \
|
||||
kcharselect \
|
||||
kcolorchooser \
|
||||
${@bb.utils.contains("DISTRO_FEATURES", "x11", "kdenlive", "",d)} \
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'clang-layer', 'kdevelop', '', d)} \
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'clang-layer', 'clazy kdevelop', '', d)} \
|
||||
kdf \
|
||||
kdialog \
|
||||
kexi \
|
||||
|
||||
Reference in New Issue
Block a user