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',
})

waylandproto('staging/content-type/content-type-v1.xml', {
	client='include/content-type-v1-client-protocol.h',
	server='include/content-type-v1-server-protocol.h',
	code='content-type-v1-protocol.c',
})

waylandproto('staging/fractional-scale/fractional-scale-v1.xml', {
	client='include/fractional-scale-v1-client-protocol.h',
	server='include/fractional-scale-v1-server-protocol.h',
	code='fractional-scale-v1-protocol.c',
})

waylandproto('staging/single-pixel-buffer/single-pixel-buffer-v1.xml', {
	client='include/single-pixel-buffer-v1-client-protocol.h',
	server='include/single-pixel-buffer-v1-server-protocol.h',
	code='single-pixel-buffer-v1-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'
