summaryrefslogtreecommitdiff
path: root/pkg/wayland-protocols/gen.lua
blob: ac5b5ce38ae6fcef0fa253a7c4477f0be11a7bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
cflags{'-isystem $builddir/pkg/wayland/include'}

waylandproto('stable/presentation-time/presentation-time.xml', {
	client='include/presentation-time-client-protocol.h',
	code='presentation-time-protocol.c',
})

waylandproto('stable/viewporter/viewporter.xml', {
	client='include/viewporter-client-protocol.h',
	code='viewporter-protocol.c',
})

waylandproto('stable/xdg-shell/xdg-shell.xml', {
	client='include/xdg-shell-client-protocol.h',
	server='include/xdg-shell-server-protocol.h',
	code='xdg-shell-protocol.c',
})

waylandproto('unstable/idle-inhibit/idle-inhibit-unstable-v1.xml', {
	client='include/idle-inhibit-unstable-v1-client-protocol.h',
	server='include/idle-inhibit-unstable-v1-server-protocol.h',
	code='idle-inhibit-unstable-v1-protocol.c'
})

waylandproto('unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml', {
	client='include/linux-dmabuf-unstable-v1-client-protocol.h',
	server='include/linux-dmabuf-unstable-v1-server-protocol.h',
	code='linux-dmabuf-unstable-v1-protocol.c',
})

waylandproto('unstable/xdg-decoration/xdg-decoration-unstable-v1.xml', {
	client='include/xdg-decoration-unstable-v1-client-protocol.h',
	server='include/xdg-decoration-unstable-v1-server-protocol.h',
	code='xdg-decoration-unstable-v1-protocol.c',
})

waylandproto('unstable/text-input/text-input-unstable-v3.xml', {
	client='include/text-input-unstable-v3-client-protocol.h',
	server='include/text-input-unstable-v3-server-protocol.h',
	code='text-input-unstable-v3-protocol.c',
})

pkg.hdrs = {
	'$outdir/include/presentation-time-client-protocol.h',
	'$outdir/include/xdg-shell-client-protocol.h',
	'$outdir/include/xdg-shell-server-protocol.h',
	'$outdir/include/idle-inhibit-unstable-v1-client-protocol.h',
	'$outdir/include/idle-inhibit-unstable-v1-server-protocol.h',
	'$outdir/include/linux-dmabuf-unstable-v1-client-protocol.h',
	'$outdir/include/linux-dmabuf-unstable-v1-server-protocol.h',
	'$outdir/include/xdg-decoration-unstable-v1-client-protocol.h',
	'$outdir/include/xdg-decoration-unstable-v1-server-protocol.h',
	'$outdir/include/text-input-unstable-v3-client-protocol.h',
	'$outdir/include/text-input-unstable-v3-server-protocol.h',
}

fetch 'git'