wlroots.wlroots
importwlroots 0.20.2 — modular Wayland compositor library, with DRM/libinput/session/GLES2/pixman/GBM built and X11 left out
import wlroots;
模組名取自本索引給這個套件寫的測試專案。
mcpp add wlroots.wlroots@0.20.2
用法
來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。
// wlroots — what can be asserted without a seat, a GPU or a compositor.
//
// WHAT THIS TEST IS FOR
//
// A compositor library is mostly untestable in CI: creating a backend wants a
// DRM master, a libseat session and an input device, and none of a runner's
// three exist. So the temptation is to assert that it linked, which is worth
// almost nothing — a package can link and still have compiled none of the
// files a consumer needs (this index has measured exactly that).
//
// Everything below is chosen to be an INTERMEDIATE QUANTITY: a value the
// library computes on its own, from data it carries, with no device involved.
// Each one names a specific generator in build.mcpp, so a failure says which
// one broke rather than "wlroots is broken":
//
// version → include/wlr/version.h
// WLR_HAS_* → include/wlr/config.h, and the feature set behind it
// the PNP table → pnpids.c, from the pinned hwdata
// the box maths → util/box.c, i.e. that ordinary sources compiled
// the module itself → 986 `using ::` declarations that must all resolve
// `namespace_` → the C++ keyword-member rewrite
//
// …
tests/examples/wlroots/tests/wlroots.cpp · 專案 tests/examples/wlroots
建置 · 上游資訊清單
- targets
wlroots (lib)- language
c++23- manifest version
0.20.2- dependencies
freedesktop, compat- 來源
https://raw.githubusercontent.com/mcpplibs/wlroots/0.20.2/mcpp/wlroots/mcpp.toml