diff options
| author | Adam Malczewski <[email protected]> | 2026-06-12 19:11:59 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-12 19:11:59 +0900 |
| commit | a21f705692595ea711a736e2ae9c256c1dde7b1e (patch) | |
| tree | 2cb3e6380e65f9b584a1dea1cd43e1a127a4f56d /packages/kernel/src/kernel.cpp | |
| parent | 6f45dc177540d6c6ae7596427209091d4c7adc20 (diff) | |
| download | unbox-a21f705692595ea711a736e2ae9c256c1dde7b1e.tar.gz unbox-a21f705692595ea711a736e2ae9c256c1dde7b1e.zip | |
Slice 1: Meson skeleton — kernel links wlroots 0.20 from C++, RMLUi 6.2 vendored
Root meson.build (C++23, WLR_USE_UNSTABLE, ccache-detected) with RMLUi 6.2
as a wrap-file tarball built through the cmake module (no git submodules —
settled decision) and doctest 2.5.2 from wrapdb. kernel unit: extern-"C"
wlr.hpp wrapper (with the C99 [static N] array-param workaround documented
in kernel.md), slice-1 probe contract, doctest suite (1/1 green). host-bin:
composition root printing versions, exit 0. tasks.md slice 1 done.
Diffstat (limited to 'packages/kernel/src/kernel.cpp')
| -rw-r--r-- | packages/kernel/src/kernel.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/kernel/src/kernel.cpp b/packages/kernel/src/kernel.cpp new file mode 100644 index 0000000..3de39c0 --- /dev/null +++ b/packages/kernel/src/kernel.cpp @@ -0,0 +1,26 @@ +#include <unbox/kernel/kernel.hpp> +#include <unbox/kernel/wlr.hpp> + +#include <RmlUi/Core/Core.h> + +namespace unbox::kernel { + +auto wlroots_version() -> std::string { + return WLR_VERSION_STR; +} + +auto rmlui_version() -> std::string { + return Rml::GetVersion(); +} + +auto link_probe() -> bool { + wlr_log_init(WLR_ERROR, nullptr); + wl_display* display = wl_display_create(); + if (display == nullptr) { + return false; + } + wl_display_destroy(display); + return true; +} + +} // namespace unbox::kernel |
