Files
wlgol/AGENTS.md
T

22 lines
1.0 KiB
Markdown
Raw Normal View History

2026-06-13 10:07:07 +02:00
# wlgol
Wayland Game of Life in C11; renders into a shared-memory buffer (no GL/Vulkan).
2026-06-13 10:07:07 +02:00
## Build & test
2026-06-13 10:07:07 +02:00
- Configure: `cmake -G Ninja -B build`
- Build: `cmake --build ./build`
- Tests: `ctest --test-dir build` (single target `Hashtable`); or run `./build/test_hashtable`
- Run app: `./build/wlgol` (requires a running Wayland compositor; not runnable headless)
2026-06-13 10:07:07 +02:00
Dependencies: `cmake`, `ninja`, `pkg-config`, `wayland-scanner`; libraries `wayland-client`, `wayland-cursor`, `xkbcommon`.
2026-06-13 10:07:07 +02:00
## Generated code
2026-06-13 10:07:07 +02:00
- `xdg-shell.h` / `xdg-shell.c` are generated by `wayland-scanner` from the vendored `xdg-shell.xml` into `build/include/` and `build/`. Do not edit them; rebuild to regenerate. `CMakeLists.txt` lists the generated `.c` in `SOURCES` and the `.h` as a source to force generation.
- `compile_commands.json` at the repo root is a symlink to `build/compile_commands.json`; configure first.
2026-06-13 10:07:07 +02:00
## Code notes
2026-06-13 10:42:41 +02:00
- Entry point is `wlgol.c`; modules `tkeyboard.c`, `tpointer.c`, `config.c`, `grid.c`, `pattern.c`; headers in `include/`.