|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
make native wasm wasm-eh native-san windows-x86_64 macos-arm64 showcase-native showcase-web showcase-windows showcase-x11 showcase-win32 showcase-macos-arm64 showcase-macos-arm64-window — GNU make 4.3 or later, one checkout, pinned toolchains in CI (showcase-x11 also needs libX11's headers and pkg-config; macos-arm64 and both macOS showcase targets need osxcross's aarch64-apple-darwin27-* wrappers on PATH). make compile-commands writes compile_commands.json for clangd, with the staged build/native/include the tests and showcase include. Use clangd definitions and references to trace implementations and callers. Keep public obligations in docs/contracts/<header>.md, not in implementation prose or the installed headers, which stay signature-only. Group three or more related source files into a feature directory. Source directories do not change the module dependency graph or the installed <rmgui/*.h> include paths.
Use mkdir -p build && make docs to render the guides and declarations to build/docs/html/ with Doxygen. Doxygen merges each ## `name` section of docs/contracts/<header>.md into that declaration through docs/site/contract_filter.py, so a type, function or constant carries its contract on its own reference page. make docs fails when a section names nothing in its header; ## `Type.member` extends the type's page, and text before the first section documents the header file. Use site assembly for the standalone website.
| Gate | Proves |
|---|---|
| make check-native | consumer contract, headers self-contained, symbol namespace, kernel, faces, conformance pixels, effects digests |
| make check-modules | the module registry against the code: declared dependencies cover every cross-module reference, are acyclic, subsets build and run, a base-only program links no other module (also run by check-native) |
| make check-native-san | the consumer and effects under ASan+UBSan, fatal |
| make check-wasm / check-wasm-eh | the same archive through emcc on both longjmp lowerings |
| make check-lib | all six archives, then the installed header set and the symbol namespace of native, wasm and wasm-eh |
| make check-showcase | receipts, live states, scripted interactions, exhibit completeness: every public symbol demonstrated or red; its PASS line reports the page, interaction and surface counts |
| make windows-x86_64 | MinGW archive; headers + consumer links (PE images linked, not executed) |
| make macos-arm64 | osxcross archive (aarch64-apple-darwin27, MacOSX27.0 SDK); headers + consumer links (ad-hoc signed Mach-O arm64 images linked, not executed) |
| make check-gpu-sokol / check-gpu-sokol-gles3 / check-gpu-sokol-webgl2 | the GPU compositor as a headless sokol host: exact fixtures, error codes, pass/state handoff, retained UI pages within 1 LSB of the CPU composite (WebGL2 needs chromium and emcc) |
| make check-gpu-sokol-native | both shader variants with real sokol implementations: strict C11 compositor objects, D3D11 linked PE images (not executed), Metal compile-only (needs MinGW and osxcross) |
| make check-gpu-showcase / check-gpu-web | both browser renderers' API and host-feature wiring, all-page differential pixels and receipts, Desktop Environment occlusion, idle pacing and WebGL2 fallback (SwiftShader WebGL2; needs chromium and emcc) |
| make check-gpu-bench | EGL surfaceless native and CPU raster/upload output checks, retained-frame parity, retired CPU instructions, renderer work, and diagnostic timings. The seven guibench/ scenes exercise large layer, shadow, chart, and prepared-image workloads. Software GL requires RMGUI_BENCH_ALLOW_SOFTWARE=1 and is not hardware performance evidence. |
| make check-window | the X11 showcase window under Xvfb against the scripted host (local only) |
A public symbol added without a showcase demonstration fails check-showcase by construction, except the rmgui_gpu_* and rmgui_native_* symbols: optional GPU modules have their own GPU/native gates. A header drifting from the staged set fails check-native.
Run RMGUI_OWNED_SOURCE_FAST_PATH=1 RMGUI_BENCH_NATIVE_ACCEPT=1 make check-gpu-bench on a hardware GLES/GL desktop, and rescore saved outputs with sh tests/gpu_bench.sh --native-accept OUTDIR.
The benchmark covers every showcase scene at 1× and 2× plus both dense-text scenes. tests/gpu_bench_work_baseline.json records reference budgets on a fixed CPU, compiler, driver, and 30-frame / 5-warmup configuration. For each scene and rendering path, median and p95 userspace retired instructions are checked against a 5% ceiling. The harness pins its submission thread and counts from frame update through submission, excluding blocking GPU completion, readback verification, kernel work, and driver helper threads.
Native renderer work is also bounded against the reference peak for draw count, instances, triangles, buffer uploads, copy and blur counters, and dependency-pass pixel area (with a 0.1% / 64-pixel allowance on clipped quad coverage for minor text changes). When recalibrating after a platform or scene change, measure a released baseline with the same instrumentation rather than deriving ceilings from the candidate under test.