From 3333503c10a42fdd038fb9fd060e07f4c84b37d7 Mon Sep 17 00:00:00 2001 From: StratusFearMe21 <57533634+StratusFearMe21@users.noreply.github.com> Date: Sun, 15 Jan 2023 22:20:02 +0000 Subject: [PATCH] Create meson.build --- protocols/meson.build | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 protocols/meson.build diff --git a/protocols/meson.build b/protocols/meson.build new file mode 100644 index 0000000..56bd261 --- /dev/null +++ b/protocols/meson.build @@ -0,0 +1,21 @@ +wayland_scanner = find_program('wayland-scanner') +wayland_protos_dep = dependency('wayland-protocols') +wl_protocol_dir = wayland_protos_dep.get_pkgconfig_variable('pkgdatadir') +wayland_scanner_code = generator( + wayland_scanner, + output: '@BASENAME@-protocol.c', + arguments: ['private-code', '@INPUT@', '@OUTPUT@']) +wayland_scanner_client = generator( + wayland_scanner, + output: '@BASENAME@-client-protocol.h', + arguments: ['client-header', '@INPUT@', '@OUTPUT@']) + +wayland_xmls = [ + wl_protocol_dir + '/stable/xdg-shell/xdg-shell.xml', + 'wlr-layer-shell-unstable-v1.xml', + 'net-tapesoftware-dwl-wm-unstable-v1.xml', +] +wayland_sources = [ + wayland_scanner_code.process(wayland_xmls), + wayland_scanner_client.process(wayland_xmls), +]