Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

### Added

- **mcpp.plugins 0.27.0:新成员 rules-qml(QML 应用),rules-qt 增加 `moc_json`、`moc_includes`、`i18n.extensions`、`compile_ex`(默认关闭,既有工程的指令不变)。** rules-qml 为每个 QML 模块声明 `qt_add_qml_module` 的动作链(moc --output-json、qmltyperegistrar、qmlcachegen、rcc、qsb、qmllint),把程序 import 的 Qt QML 模块放到程序旁并写 `qt.conf`;带上插件库的 `mcpp pack` 需要 mcpp 2026.11.23.1(mcpp#1011),包的下限仍是 2026.10.30.1。CN 镜像是 mcpp-res/mcpp-plugins 的 0.27.0 release 资产(与 GitHub 归档同一字节,sha256 一致)。
- **compat.slint 依赖 compat.glx-runtime(Linux),声明 GLX 的能力:修复 NVIDIA 桌面上真窗口 abort。** compat.slint 依赖 libglvnd(GL 分发器),却没有依赖任何 GL 厂商的提供者;`compat.glfw`(经 compat.glx-runtime)、compat.libgbm、godot 等都依赖 `xim:graphics`(mesa、nvidia-gl-host-link、glvnd 的 glx-vendor 布线),Slint 没有。NVIDIA 的 X 服务器要求 GLX 厂商是 NVIDIA,glvnd 找不到 `libGLX_nvidia.so.0`,`glXChooseFBConfig` 返回 0 个配置,glutin 报 “argument does not name a valid config”,femtovg 没有回退,程序 abort;无头与软件渲染不受影响。现在 Linux 上 compat.slint 依赖 `compat.glx-runtime` 2026.09.11(与 compat.glfw 同写法),`runtime.capabilities` 补 `x11.display`、`opengl.glx.driver`,`dlopen_libs` 补 `libGLX.so.0`。在 NVIDIA 580.178.04、X11 的真机上,项目只加这一个依赖时 `mcpp run` 即可运行。原有的 `display`、`opengl.egl.driver` 暂时保留(没有任何包提供它们,Wayland 上的 EGL 路径没有提供者,也未验证)。
- **新 lint:声明的能力必须有它依赖的包提供(`tests/check_capability_providers.lua`,警告,`--strict` 才失败)。** 索引里 14 个能力名中,当时只有 compat.slint 的 `display` 与 `opengl.egl.driver` 没有任何包提供;lint 同时报告 compat.sdl2 声明了 `x11.display` 却不依赖提供它的 compat.glx-runtime(未处理,需要在真机上确认 SDL2 的路径)。接入 `validate.yml`,测试在 `tests/test_check_capability_providers.py`。方案与证据见 `.agents/docs/2026-11-22-host-driver-link-and-display-path-plan.md`。
- **官方的 mcpp.plugins 与 mcpp.platforms 搬进 `pkgs/mcpp/`**(纯重命名,文件名不变,已发布的行字节不变;构建插件规范 docs/build-plugins.md 的布局)。成员选择按身份匹配,搬迁前后选出的成员集合一致(`tests/select_members.py`);客户端按描述符声明的身份扫描 `pkgs` 的子目录,与 `pkgs/mwrap/` 相同。
Expand Down
36 changes: 32 additions & 4 deletions pkgs/mcpp/mcpp.plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
-- each member selected by a feature.
--
-- [dependencies.mcpp]
-- plugins = { version = "0.26.1", features = ["rules-spirv"], host-module = true }
-- plugins = { version = "0.27.0", features = ["rules-spirv"], host-module = true }
--
-- // build.mcpp
-- import mcpp;
-- import mcpp.rules.spirv;
--
-- 0.27.0 (package floor mcpp 2026.10.30.1): rules-qml, QML applications on
-- rules-qt: each module's moc, qmltyperegistrar, qmlcachegen, rcc and qsb as
-- actions, the Qt QML modules the program imports placed beside it, and a
-- qt.conf. rules-qt adds moc_json, moc_includes, i18n.extensions and
-- compile_ex, off by default. A pack that carries the QML plugins' libraries
-- needs mcpp 2026.11.23.1 (mcpp#1011).
--
-- 0.26.1 (package floor mcpp 2026.10.30.1): the members reach the system
-- through mcpplibs.os 0.4.5, which accepts openkal 0.24 to 0.26, so a graph
-- whose openkal is 0.26 (openkal-platform 0.31) holds the plugins.
Expand Down Expand Up @@ -705,6 +712,13 @@ package = {

xpm = {
linux = {
["0.27.0"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.27.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.27.0/mcpp-plugins-0.27.0.tar.gz",
},
sha256 = "eee3cd233e7aa455ab1324552b2c3a304e68e4b307f118e3a3448b539fdf3131",
},
["0.26.1"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.26.1.tar.gz",
Expand Down Expand Up @@ -1048,9 +1062,16 @@ package = {
},
sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5",
},
["latest"] = { ref = "0.26.1" },
["latest"] = { ref = "0.27.0" },
},
macosx = {
["0.27.0"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.27.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.27.0/mcpp-plugins-0.27.0.tar.gz",
},
sha256 = "eee3cd233e7aa455ab1324552b2c3a304e68e4b307f118e3a3448b539fdf3131",
},
["0.26.1"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.26.1.tar.gz",
Expand Down Expand Up @@ -1394,9 +1415,16 @@ package = {
},
sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5",
},
["latest"] = { ref = "0.26.1" },
["latest"] = { ref = "0.27.0" },
},
windows = {
["0.27.0"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.27.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.27.0/mcpp-plugins-0.27.0.tar.gz",
},
sha256 = "eee3cd233e7aa455ab1324552b2c3a304e68e4b307f118e3a3448b539fdf3131",
},
["0.26.1"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.26.1.tar.gz",
Expand Down Expand Up @@ -1740,7 +1768,7 @@ package = {
},
sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5",
},
["latest"] = { ref = "0.26.1" },
["latest"] = { ref = "0.27.0" },
},
},

Expand Down
Loading