Skip to content

slint-m 1.19.0: Slint as import mcpplibs.mwrap.slint, and the build rule mcpp.plugins.slint - #1

Merged
Sunrisepeak merged 2 commits into
mainfrom
feat/slint-1.19.0
Nov 20, 2026
Merged

Sunrisepeak merged 2 commits into
mainfrom
feat/slint-1.19.0

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Slint's C++ API as C++23 modules over compat.slint 1.19.0 (the xim:slint SDK), by the mwrap spec (mcpp-index docs/mwrap.md).

  • Modules mcpplibs.mwrap.slint (53 names of slint, 18 of slint::language), .interpreter (9), .platform (9 + 123 key codes as adapters; Clang only, GCC 16 ICEs on a module built over slint-platform.h), .macros (13 SLINT_FEATURE_* constants). Generated from the SDK's headers by tools/gen_exports.py (clang AST) and audited by tools/check_exports.py (every public name, key code and feature; the SDK's defaults are upstream CMake's).
  • Build rule mcpp.plugins.slint, package mcpplibs.slintgen in rules/ (the shape grpc-m gives grpcgen): slint-compiler per .slint file with upstream's slint_target_sources options, a depfile per input, and with module set a module interface per input (import app.ui;). The SDK is the project's choice (options, SLINT_COMPILER, compat.slint in the graph, or a declared xim:slint). The maintainer chose this location and name over mcpp-plugins; the engine warns once per build that mcpp.plugins.* is provided by a package outside the mcpp namespace (R9.6), and a project names the feature itself (features = ["slint"]), since .slint's claim does not pass through a re-export.
  • Template hello: a counter window; headless on the software renderer (SLINT_HEADLESS=1).
  • Tests: runtime types through the module, an interpreter-compiled component driven headless, and tests/rule-consumer (the rule's one-action-per-input behaviour, the generated module, incremental regeneration).

CI runs against the candidate index commit that carries compat.slint (mcpp-index#859); it moves to the published index once that merges. No upstream source is vendored: LICENSE texts and README under upstream/ per the spec.

…ule mcpp.plugins.slint

Modules (slint, interpreter, platform, macros) generated from the SDK's headers by tools/gen_exports.py and audited by tools/check_exports.py; the build rule slintgen (rules/, module mcpp.plugins.slint) runs slint-compiler per .slint file with upstream CMake's options and can write a module per input; template hello.
…date index is mcpp-index main with compat.slint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant