diff options
author | kotontrion <[email protected]> | 2024-06-09 20:27:00 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-06-09 20:27:00 +0200 |
commit | 29b1060c6fc2614dcbfe6edc177944a31f4decd6 (patch) | |
tree | 5e0b0305206f6499edeffe5152267e4ad96b88b0 /protocols/meson.build |
initial commit
Diffstat (limited to 'protocols/meson.build')
-rw-r--r-- | protocols/meson.build | 22 |
1 files changed, 22 insertions, 0 deletions
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: ['@[email protected]'], + arguments: ['-c', 'client-header', '@INPUT@', '@BUILD_DIR@/@[email protected]']) + +gen_private_code = generator(wayland_scanner, + output: ['@[email protected]'], + arguments: ['-c', 'private-code', '@INPUT@', '@BUILD_DIR@/@[email protected]']) + +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 |