diff options
author | Daniel McGregor <daniel.mcgregor@vecima.com> | 2020-02-24 08:44:06 -0600 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-10-08 18:41:06 -0700 |
commit | 1bc18d9b6b1ec16f610306fcbd140b655504f798 (patch) | |
tree | 499189a48d88c72a4f8802e97e4bd72e5cb905b6 | |
parent | 494478710f0fda3e3413b7e2d6f3eb421c1782c1 (diff) | |
download | meta-clang-1bc18d9b6b1ec16f610306fcbd140b655504f798.tar.gz |
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 <daniel.mcgregor@vecima.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/castxml/castxml_git.bb | 29 |
1 files changed, 29 insertions, 0 deletions
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 @@ | |||
1 | SUMMARY = "C-family abstract syntax tree XML output tool." | ||
2 | LICENSE = "Apache-2.0" | ||
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
4 | |||
5 | SRC_URI = "git://github.com/CastXML/CastXML" | ||
6 | |||
7 | # 0.3.6 is the release for LLVM/Clang v11.0.0 | ||
8 | SRCREV = "902ac163f0291fcfc459f58691481e88c9f91dea" | ||
9 | PV = "0.3.6" | ||
10 | |||
11 | S = "${WORKDIR}/git" | ||
12 | |||
13 | DEPENDS = "clang" | ||
14 | |||
15 | # Match clang's idea of what TOOLCHAIN should be. | ||
16 | TOOLCHAIN = "clang" | ||
17 | TOOLCHAIN_class-native = "gcc" | ||
18 | TOOLCHAIN_class-nativesdk = "clang" | ||
19 | |||
20 | BUILD_CC_class-nativesdk = "clang" | ||
21 | BUILD_CXX_class-nativesdk = "clang++" | ||
22 | BUILD_AR_class-nativesdk = "llvm-ar" | ||
23 | BUILD_RANLIB_class-nativesdk = "llvm-ranlib" | ||
24 | BUILD_NM_class-nativesdk = "llvm-nm" | ||
25 | LDFLAGS_append_class-nativesdk = " -fuse-ld=gold" | ||
26 | |||
27 | inherit cmake cmake-native pkgconfig python3native | ||
28 | |||
29 | BBCLASSEXTEND = "native nativesdk" | ||