This commit is contained in:
Bartkk
2025-04-07 22:37:52 +02:00
commit 53b264e4d9
9 changed files with 2567 additions and 0 deletions

32
build.ninja Normal file
View File

@@ -0,0 +1,32 @@
libs = -lwayland-client -lwayland-egl -lEGL -lGL -lGLEW -ggdb -lxkbcommon
cflags = -ggdb
rule cc-bin
description = CC $out
command = gcc -Ibuild $libs $cflags $in -o $out
rule protocol-header
description = PROTO-H $out
command = wayland-scanner client-header $in $out
rule protocol-code
description = PROTO-C $out
command = wayland-scanner private-code $in $out
rule gen-shaders
description = SHADERS $in
command = ./gen-shaders.sh
build build/doomer : cc-bin main.c build/wlr-layer-shell-unstable-v1.c build/wlr-screencopy-unstable-v1.c build/xdg-shell.c | build/wlr-layer-shell-unstable-v1.h build/wlr-screencopy-unstable-v1.h build/shaders.h
build build/shaders.h : gen-shaders shaders/vertex.glsl shaders/fragment.glsl
build build/wlr-layer-shell-unstable-v1.c : protocol-code protocols/wlr-layer-shell-unstable-v1.xml
build build/wlr-layer-shell-unstable-v1.h : protocol-header protocols/wlr-layer-shell-unstable-v1.xml
build build/wlr-screencopy-unstable-v1.c : protocol-code protocols/wlr-screencopy-unstable-v1.xml
build build/wlr-screencopy-unstable-v1.h : protocol-header protocols/wlr-screencopy-unstable-v1.xml
build build/xdg-shell.c : protocol-code protocols/xdg-shell.xml
default build/doomer