Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

67.21. castxml-0.8.0

C++ declarations as XML, read by Clang — the parser behind pygccxml

0.8.0-1 · Apache-2.0 · 1.0 SBU · 56.1 MiB, 326 files · 40_lang, 32 of 186 · ports/core/devtools/castxml

Homepage: https://github.com/CastXML/CastXML

Depends on: cmake, ninja, llvm, clang, python3-sphinx.

Required by (2): gnuradio, python3-pygccxml.

Sources: castxml-0.8.0.tar.gz (123.4 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install castxml'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_BUILD_TYPE=Release \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D Clang_DIR=/usr/lib/cmake/clang \
	-D CLANG_LINK_CLANG_DYLIB=OFF \
	-D CastXML_INSTALL_MAN_DIR=share/man \
	-D SPHINX_MAN=ON \
	-D SPHINX_HTML=OFF \
	-D BUILD_TESTING=OFF
cmake --build build
DESTDIR=$PKG cmake --install build
test -x "$PKG/usr/bin/castxml"
test -f "$PKG/usr/share/castxml/clang/include/stddef.h"
test -f "$PKG/usr/share/man/man1/castxml.1"

Programs: castxml.

Directories: /usr/share/castxml, /usr/share/doc/castxml, /usr/share/licenses/castxml.