1.1 KiB
1.1 KiB
wlgol
Simple Wayland Game of Life in C11. Draws directly into a shared-memory buffer (no OpenGL/Vulkan).
- Build definition:
CMakeLists.txt - Generated code:
xdg-shell.xmlis vendored;wayland-scannerproducesxdg-shell.handxdg-shell.cinsidebuild/ - Source layout:
wlgol.cis the entry point;tkeyboard.c,tpointer.c,hashtable.care modules; headers live ininclude/; tests live intests/
Dependencies
Needs cmake, ninja, pkg-config, wayland-scanner, plus the runtime libraries wayland-client, wayland-cursor, and xkbcommon.
Common commands
Configure (from repo root):
cmake -G Ninja -B build
Build:
cmake --build ./build
Run tests:
ctest --test-dir build
Run a single test directly:
./build/test_hashtable
Run the program (requires a running Wayland compositor):
./build/wlgol
Notes
compile_commands.jsonis generated automatically in the build directory becauseCMAKE_EXPORT_COMPILE_COMMANDSis set inCMakeLists.txt.- The project currently has one CTest target named
Hashtable.