Repository navigation
slint-m 1.19.0: Slint as import mcpplibs.mwrap.slint, and the build rule mcpp.plugins.slint - #1
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slint's C++ API as C++23 modules over
compat.slint1.19.0 (thexim:slintSDK), by the mwrap spec (mcpp-indexdocs/mwrap.md).mcpplibs.mwrap.slint(53 names ofslint, 18 ofslint::language),.interpreter(9),.platform(9 + 123 key codes as adapters; Clang only, GCC 16 ICEs on a module built overslint-platform.h),.macros(13SLINT_FEATURE_*constants). Generated from the SDK's headers bytools/gen_exports.py(clang AST) and audited bytools/check_exports.py(every public name, key code and feature; the SDK's defaults are upstream CMake's).mcpp.plugins.slint, packagemcpplibs.slintgeninrules/(the shape grpc-m givesgrpcgen):slint-compilerper.slintfile with upstream'sslint_target_sourcesoptions, a depfile per input, and withmoduleset 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 declaredxim:slint). The maintainer chose this location and name over mcpp-plugins; the engine warns once per build thatmcpp.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.hello: a counter window; headless on the software renderer (SLINT_HEADLESS=1).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.