summaryrefslogtreecommitdiffhomepage
path: root/packages/host-bin/src/main.cpp
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-12 19:11:59 +0900
committerAdam Malczewski <[email protected]>2026-06-12 19:11:59 +0900
commita21f705692595ea711a736e2ae9c256c1dde7b1e (patch)
tree2cb3e6380e65f9b584a1dea1cd43e1a127a4f56d /packages/host-bin/src/main.cpp
parent6f45dc177540d6c6ae7596427209091d4c7adc20 (diff)
downloadunbox-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/host-bin/src/main.cpp')
-rw-r--r--packages/host-bin/src/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/host-bin/src/main.cpp b/packages/host-bin/src/main.cpp
new file mode 100644
index 0000000..713186d
--- /dev/null
+++ b/packages/host-bin/src/main.cpp
@@ -0,0 +1,14 @@
+#include <unbox/kernel/kernel.hpp>
+
+#include <cstdio>
+
+auto main() -> int {
+ const bool probe_ok = unbox::kernel::link_probe();
+
+ std::printf("unbox 0.0.1 — kernel skeleton (slice 1)\n");
+ std::printf(" wlroots %s\n", unbox::kernel::wlroots_version().c_str());
+ std::printf(" RmlUi %s\n", unbox::kernel::rmlui_version().c_str());
+ std::printf(" link probe %s\n", probe_ok ? "ok" : "FAILED");
+
+ return probe_ok ? 0 : 1;
+}