Skip to content

Latest commit

 

History

History
106 lines (85 loc) · 8.35 KB

README.md

File metadata and controls

106 lines (85 loc) · 8.35 KB

mcpp-plugins Documentation

This tree is the manual for the plugins of mcpp:plugins and for the conventions a build plugin follows. Each page states what a plugin does, how a consumer writes it, and what its current limits are. The reasoning behind a design, and what was measured and refuted on the way, lives in the dated records under ../.agents/docs/ — a page cites no record.

Start here

To Read
use a plugin its page below, and the quick start in the README
write a plugin of your own 01 — Plugin Development
maintain or take a plugin 03 — Maintainers
know why a name, a floor or a claim is what it is 00 — How the Plugins Meet the Engine
name a tool a plugin runs 02 — Where a Tool Comes From

The plugins

The README's tables carry feature, behaviour, doc and maintainer; this is the same list with the module each feature compiles and the mcpp release its behaviour first needed. From 0.21.0 the package as a whole needs mcpp 2026.10.30.1 ([package] mcpp); cross CMake subprojects that link executables or shared libraries require mcpp 2026.11.7.1 or later, and cross configuration requires CMake 3.19 or later.

feature module mcpp floor what it does doc
rules-ascendc mcpp.rules.ascendc 2026.10.1.3 Compiles Ascend C (*.asc) with BiSheng in mixed mode, so the object joins the ordinary link. rules
rules-cuda mcpp.rules.cuda 2026.10.1.3 Compiles CUDA (*.cu) through clang with an LLVM toolchain or nvcc with a GCC one. rules
rules-hip mcpp.rules.hip 2026.10.1.3 Compiles HIP (*.hip) with the project's clang on the NVIDIA platform. rules
rules-metal mcpp.rules.metal 2026.9.8.1 Compiles .metal shaders into Metal libraries with the host's Xcode and deploys them beside the program. rules
rules-qt mcpp.rules.qt 2026.10.1.3 Runs moc, uic, rcc and Qt's Linguist tools as actions, links the Qt modules and places their runtime. rules-qt
rules-qml mcpp.rules.qml 2026.10.1.3; a pack that carries the QML plugins' libraries 2026.11.23.1 Builds a QML application: each module's moc, qmltyperegistrar, qmlcachegen, rcc and qsb chain as actions, Qt's QML modules the program imports placed beside it, and a qt.conf. Implies rules-qt. rules-qml
rules-slang mcpp.rules.slang 2026.10.1.3 Compiles Slang (*.slang) and embeds or places the result. rules
rules-spirv mcpp.rules.spirv 2026.10.1.3 Compiles GLSL and HLSL shader stages to SPIR-V and embeds or places the result. rules
rules-swift mcpp.rules.swift 2026.9.8.1 Compiles a package's .swift sources into one module the C and C++ sources call. rules
rules-sycl mcpp.rules.sycl 2026.10.1.3 Compiles SYCL (*.sycl) with DPC++. rules
tools-embed mcpp.tools.embed 2026.9.5.4 Writes a data file into a header the program compiles in. tools-embed
tools-island mcpp.tools.island 2026.9.7.1 Generates the extern "C" boundary and the C++ module of a code island. tools-island
tools-steps mcpp.tools.steps 2026.10.1.3 Describes an action whose work is more than one command as portable operations a backend runs; implied by dist-apk and dist-apple. tools-steps
dist-appimage mcpp.dist.appimage 2026.10.1.3 Turns the tree mcpp pack stages into an AppImage (Linux). dist
dist-deb mcpp.dist.deb 2026.10.30.1 Installs the staged tree under /opt/<name> with a launcher, a desktop entry and an icon, as a Debian package (Linux targets). dist
dist-rpm mcpp.dist.rpm 2026.10.30.1 The same installation as an RPM package (Linux targets). dist
dist-wix mcpp.dist.wix 2026.10.1.3 Builds an MSI of the staged tree, and a Burn bundle chaining it (Windows). dist
dist-apple mcpp.dist.apple 2026.9.14.2 Lays out a macOS or iOS application bundle, signs it and writes a disk image. dist-apple
dist-web mcpp.dist.web 2026.9.13.1 Copies a wasm32-emscripten program and its files into a web directory with an index.html. dist
dist-apk mcpp.dist.apk 2026.10.1.3 Packs the native closure into a signed APK or App Bundle, with Java, Kotlin and Maven libraries. dist-apk
deps-vcpkg mcpp.deps.vcpkg 2026.10.1.3 Installs a vcpkg.json manifest as an action with the toolset mcpp resolved, and maps the prefix into the build. deps
deps-cmake mcpp.deps.cmake 2026.10.1.3; a cross build 2026.10.30.1 Builds and installs a CMake subproject as an action with Ninja and the toolset mcpp resolved -- for another target, the compilers and words of the engine's contract -- keeps the installation for any build with the same key, and maps the prefix into the build. deps
deps-archive mcpp.deps.archive 2026.10.1.3 Extracts a zip archive the project keeps and places its tree beside the program. deps

Some features add a sub-capability: dist-apk-kotlin and dist-apk-maven (Kotlin sources, a Maven graph), and deps, which the deps plugins imply.

The general library. plugins-core — mcpp.plugins.declare, mcpp.plugins.toolset, mcpp.plugins.fs, mcpp.plugins.tool — is the general library every plugin implies, and the modules a third-party plugin built on it names on its dependency edge; plugins-testing, plugins-toolchain, plugins-platform and plugins-progress add their own. The layers, names and the engine floor are in 01 §3; surface, the name of plugins-core before 0.17.0, is kept until 2027-03-28.

Pages

The first digit is the part, so a number says where a page belongs:

0x the framework: naming, conventions, where a tool comes from
1x the rules: device and language compilation
2x the tools: what the build program does itself
3x the distribution: what comes out of the link
4x the dependencies: where a library comes from

0x — The framework

1x — Rules

2x — Tools

3x — Distribution

4x — Dependencies