Initial
This commit is contained in:
32
build.ninja
Normal file
32
build.ninja
Normal 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
|
||||
Reference in New Issue
Block a user