From 29b1060c6fc2614dcbfe6edc177944a31f4decd6 Mon Sep 17 00:00:00 2001 From: kotontrion Date: Sun, 9 Jun 2024 20:27:00 +0200 Subject: initial commit --- protocols/meson.build | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 protocols/meson.build (limited to 'protocols/meson.build') diff --git a/protocols/meson.build b/protocols/meson.build new file mode 100644 index 0000000..f936e37 --- /dev/null +++ b/protocols/meson.build @@ -0,0 +1,22 @@ + +wayland_scanner = find_program('wayland-scanner') + +protocols = [ + 'river-status-unstable-v1.xml', +] + +gen_client_header = generator(wayland_scanner, + output: ['@BASENAME@-client.h'], + arguments: ['-c', 'client-header', '@INPUT@', '@BUILD_DIR@/@BASENAME@-client.h']) + +gen_private_code = generator(wayland_scanner, + output: ['@BASENAME@.c'], + arguments: ['-c', 'private-code', '@INPUT@', '@BUILD_DIR@/@BASENAME@.c']) + +client_protocol_srcs = [] + +foreach protocol : protocols + client_header = gen_client_header.process(protocol) + code = gen_private_code.process(protocol) + client_protocol_srcs += [client_header, code] +endforeach \ No newline at end of file -- cgit v1.2.3