master hovercats/oakiss / pkg / wawa / gen.lua
 1cflags{
 2	'-pedantic',
 3	'-std=c17',
 4	[[-D 'VERSION="1.0"']],
 5	'-D _GNU_SOURCE',
 6	'-D _POSIX_C_SOURCE=200809L',
 7	'-I $outdir/include',
 8	'-isystem $builddir/pkg/linux-headers/include',
 9	'-isystem $builddir/pkg/wayland/include',
10	'-isystem $builddir/pkg/wayland-protocols/include',
11}
12
13waylandproto('wlr-layer-shell-unstable-v1.xml', {
14	client='include/wlr-layer-shell-unstable-v1-protocol.h',
15	code='wlr-layer-shell-unstable-v1.c',
16})
17
18pkg.deps = {
19	'$outdir/include//wlr-layer-shell-unstable-v1-protocol.h',
20	'pkg/linux-headers/headers',
21	'pkg/wayland/headers',
22	'pkg/wayland-protocols/headers',
23}
24
25exe('wawa', {
26	'wawa.c',
27	'wlr-layer-shell-unstable-v1.c.o',
28	'$builddir/pkg/wayland-protocols/xdg-shell-protocol.c.o',
29	'$builddir/pkg/wayland/libwayland-client.a.d',
30	'$builddir/pkg/wayland/libwayland-server.a.d',
31})
32
33file('bin/wawa', '755', '$outdir/wawa')
34
35fetch 'git'