From 1bc18d9b6b1ec16f610306fcbd140b655504f798 Mon Sep 17 00:00:00 2001 From: Daniel McGregor Date: Mon, 24 Feb 2020 08:44:06 -0600 Subject: CastXML: new recipe CastXML is an AST analysis tool similar to and succeeding gccxml. It is used to generate an XML description of a C or C++ abstract syntax tree. Signed-off-by: Daniel McGregor Signed-off-by: Khem Raj --- recipes-devtools/castxml/castxml_git.bb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 recipes-devtools/castxml/castxml_git.bb diff --git a/recipes-devtools/castxml/castxml_git.bb b/recipes-devtools/castxml/castxml_git.bb new file mode 100644 index 0000000..4d3aa8a --- /dev/null +++ b/recipes-devtools/castxml/castxml_git.bb @@ -0,0 +1,29 @@ +SUMMARY = "C-family abstract syntax tree XML output tool." +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +SRC_URI = "git://github.com/CastXML/CastXML" + +# 0.3.6 is the release for LLVM/Clang v11.0.0 +SRCREV = "902ac163f0291fcfc459f58691481e88c9f91dea" +PV = "0.3.6" + +S = "${WORKDIR}/git" + +DEPENDS = "clang" + +# Match clang's idea of what TOOLCHAIN should be. +TOOLCHAIN = "clang" +TOOLCHAIN_class-native = "gcc" +TOOLCHAIN_class-nativesdk = "clang" + +BUILD_CC_class-nativesdk = "clang" +BUILD_CXX_class-nativesdk = "clang++" +BUILD_AR_class-nativesdk = "llvm-ar" +BUILD_RANLIB_class-nativesdk = "llvm-ranlib" +BUILD_NM_class-nativesdk = "llvm-nm" +LDFLAGS_append_class-nativesdk = " -fuse-ld=gold" + +inherit cmake cmake-native pkgconfig python3native + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf