data/
data/ holds assets that ship alongside the binaries or feed the build: everything the project packages but does not compile.
The assets install into CMAKE_INSTALL_DATAROOTDIR (/usr/local/share on Unix), under share/mrdocs/, all but data/lldb/.
Content that belongs elsewhere
| Content | Where it goes |
|---|---|
C++ sources |
|
Scripts that generate or check files |
|
Test inputs and expected outputs |
|
Projects that show how to run MrDocs |
|
Contents by subdirectory
| Directory | Purpose |
|---|---|
|
Runtime assets MrDocs loads. The |
|
Bundled libc stub headers, used when MrDocs parses a project. |
|
GDB pretty-printers for MrDocs types. |
|
LLDB data formatters for MrDocs types. |
Build integration
The root build adds data/ only when MRDOCS_INSTALL is on.
data/CMakeLists.txt defines no targets, only install(DIRECTORY …) rules into ${CMAKE_INSTALL_DATAROOTDIR}/mrdocs:
| Source | Destination under share/mrdocs/ |
|---|---|
|
|
|
|
|
|
data/lldb/ has no install rule, so the formatters stay in the source tree.
The bundled libc++ and Clang resource headers under share/mrdocs/headers/ come from LLVM, so src/CMakeLists.txt installs them, not data/.
In the source tree, MRDOCS_BUILTIN_DIR_ARGS points the in-tree runs of MrDocs at data/mrdocs/addons, so editing a template needs no install.