From a21f705692595ea711a736e2ae9c256c1dde7b1e Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Fri, 12 Jun 2026 19:11:59 +0900 Subject: Slice 1: Meson skeleton — kernel links wlroots 0.20 from C++, RMLUi 6.2 vendored MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- packages/kernel/tests/test_kernel.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/kernel/tests/test_kernel.cpp (limited to 'packages/kernel/tests/test_kernel.cpp') diff --git a/packages/kernel/tests/test_kernel.cpp b/packages/kernel/tests/test_kernel.cpp new file mode 100644 index 0000000..ebcfbc3 --- /dev/null +++ b/packages/kernel/tests/test_kernel.cpp @@ -0,0 +1,13 @@ +#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN +#include + +#include + +TEST_CASE("kernel compiles against and links wlroots + libwayland-server") { + CHECK(unbox::kernel::link_probe()); + CHECK(unbox::kernel::wlroots_version().substr(0, 4) == "0.20"); +} + +TEST_CASE("vendored RMLUi subproject compiled and linked") { + CHECK(!unbox::kernel::rmlui_version().empty()); +} -- cgit v1.2.3