diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-04-18 15:14:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-04-18 15:14:31 +0200 |
commit | 5500ce377a0a552bfa858232f7086c197d0ab458 (patch) | |
tree | 491d9666e1535c4059b4ac37836517cf8b424867 /protocol/meson.build | |
parent | 0e12a1d216b85c8e864cc2d7d18c3d18864542c5 (diff) |
Wayland rendering now works
Diffstat (limited to 'protocol/meson.build')
-rw-r--r-- | protocol/meson.build | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/protocol/meson.build b/protocol/meson.build new file mode 100644 index 0000000..bbdccba --- /dev/null +++ b/protocol/meson.build @@ -0,0 +1,25 @@ +wayland_scanner = dependency('wayland-scanner', native: true) +wayland_scanner_path = wayland_scanner.get_variable(pkgconfig: 'wayland_scanner') +wayland_scanner_prog = find_program(wayland_scanner_path, native: true) + +wayland_scanner_code = generator( + wayland_scanner_prog, + output: '@BASENAME@-protocol.c', + arguments: ['private-code', '@INPUT@', '@OUTPUT@'], +) + +wayland_scanner_client = generator( + wayland_scanner_prog, + output: '@BASENAME@-client-protocol.h', + arguments: ['client-header', '@INPUT@', '@OUTPUT@'], +) + +protocols = [ + 'xdg-output-unstable-v1.xml', +] + +protocol_src = [] +foreach xml : protocols + protocol_src += wayland_scanner_code.process(xml) + protocol_src += wayland_scanner_client.process(xml) +endforeach |