Skip to content

Commit 485ce77

Browse files
committed
mcpp:plugins 0.13.0: deps-vcpkg, deps-cmake and rules-qt, following mcpp's SPEC-007
1 parent f84c57b commit 485ce77

1 file changed

Lines changed: 47 additions & 4 deletions

File tree

‎pkgs/m/mcpp.plugins.lua‎

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,34 @@
22
-- each member selected by a feature.
33
--
44
-- [dependencies.mcpp]
5-
-- plugins = { version = "0.12.0", features = ["rules-spirv"], host-module = true }
5+
-- plugins = { version = "0.13.0", features = ["rules-spirv"], host-module = true }
66
--
77
-- // build.mcpp
88
-- import mcpp;
99
-- import mcpp.rules.spirv;
1010
--
11+
-- 0.13.0 requires **mcpp 2026.9.26.2** for its new members and nothing newer
12+
-- for the rest; they are selected by feature, so a project that selects none
13+
-- of them compiles none of them. A fourth family, `deps-*`, states where a
14+
-- library comes from, following mcpp's build-plugin specification (SPEC-007):
15+
-- `deps-vcpkg` installs a `vcpkg.json` manifest and `deps-cmake` a CMake
16+
-- subproject, each as a `prepare` action with an output directory whose
17+
-- command is the package's own host tool (`tools = ["mcpp-deps"]`). The build
18+
-- program states the prefix before anything is installed -- include
19+
-- directory, libraries by full path, and the shared-library directory as a
20+
-- runtime search directory -- so `mcpp emit build-database` plans a project
21+
-- that has never been built, `mcpp run` and `mcpp pack` find the libraries,
22+
-- and on Windows the engine places the DLLs beside the program. `deps-vcpkg`
23+
-- declares `xim:vcpkg` (vcpkg-tool with the scripts released beside it; a
24+
-- `builtin-baseline` manifest resolves through vcpkg's git registry cache);
25+
-- `deps-cmake` declares `xim:cmake`. `rules-qt` runs moc, uic, rcc and
26+
-- lrelease as actions and lupdate as a `prepare` action, links the Qt modules
27+
-- by full path and deploys the plugin directories beside the program;
28+
-- `rules-qt-xim` declares `xim:qt` 6.11.1 and `rules-qt-xim-addons` adds
29+
-- `xim:qt-addons`. On Linux the rule serves QtCore programs, which state
30+
-- `[build] cxx_runtime = "toolchain-coupled"` (mcpp-community/mcpp#704).
31+
-- mcpp-community/mcpp-plugins#29.
32+
--
1133
-- 0.12.0 requires **mcpp 2026.9.16.1** for the members that read the resolved
1234
-- graph, and nothing newer for the rest. A package states what it contributes
1335
-- to an application in its own manifest -- `[package.metadata.dist-apk]`
@@ -536,6 +558,13 @@ package = {
536558

537559
xpm = {
538560
linux = {
561+
["0.13.0"] = {
562+
url = {
563+
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.13.0.tar.gz",
564+
CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.13.0/mcpp-plugins-0.13.0.tar.gz",
565+
},
566+
sha256 = "297d28f9549ea3c6d86ab00109e0bf097ec72bf429a74c7f9030ab379a46d904",
567+
},
539568
["0.12.0"] = {
540569
url = {
541570
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.12.0.tar.gz",
@@ -725,9 +754,16 @@ package = {
725754
},
726755
sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5",
727756
},
728-
["latest"] = { ref = "0.12.0" },
757+
["latest"] = { ref = "0.13.0" },
729758
},
730759
macosx = {
760+
["0.13.0"] = {
761+
url = {
762+
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.13.0.tar.gz",
763+
CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.13.0/mcpp-plugins-0.13.0.tar.gz",
764+
},
765+
sha256 = "297d28f9549ea3c6d86ab00109e0bf097ec72bf429a74c7f9030ab379a46d904",
766+
},
731767
["0.12.0"] = {
732768
url = {
733769
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.12.0.tar.gz",
@@ -917,9 +953,16 @@ package = {
917953
},
918954
sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5",
919955
},
920-
["latest"] = { ref = "0.12.0" },
956+
["latest"] = { ref = "0.13.0" },
921957
},
922958
windows = {
959+
["0.13.0"] = {
960+
url = {
961+
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.13.0.tar.gz",
962+
CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.13.0/mcpp-plugins-0.13.0.tar.gz",
963+
},
964+
sha256 = "297d28f9549ea3c6d86ab00109e0bf097ec72bf429a74c7f9030ab379a46d904",
965+
},
923966
["0.12.0"] = {
924967
url = {
925968
GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.12.0.tar.gz",
@@ -1109,7 +1152,7 @@ package = {
11091152
},
11101153
sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5",
11111154
},
1112-
["latest"] = { ref = "0.12.0" },
1155+
["latest"] = { ref = "0.13.0" },
11131156
},
11141157
},
11151158

0 commit comments

Comments
 (0)