From be3da49ea23bbadf04c8a9b9190598a257a33bf2 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Fri, 15 May 2026 08:09:14 +1200 Subject: Initial commit --- meson.build | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..b704ec7 --- /dev/null +++ b/meson.build @@ -0,0 +1,26 @@ +project('wayland_test', 'c') + +wayland_client = dependency('wayland-client') +wayland_protocols = dependency('wayland-protocols') + +xdg_shell_xml = wayland_protocols.get_variable(pkgconfig: 'pkgdatadir') + '/stable/xdg-shell/xdg-shell.xml' + +xdg_shell_header = custom_target( + 'xdg-shell-client-protocol.h', + input: xdg_shell_xml, + output: 'xdg-shell-client-protocol.h', + command: ['wayland-scanner', 'client-header', '@INPUT@', '@OUTPUT@'] +) + +xdg_shell_source = custom_target( + 'xdg-shell-protocol.c', + input: xdg_shell_xml, + output: 'xdg-shell-protocol.c', + command: ['wayland-scanner', 'private-code', '@INPUT@', '@OUTPUT@'] +) + +executable('simple-wayland-client', + ['main.c', xdg_shell_source, xdg_shell_header], + dependencies: [wayland_client], + include_directories: include_directories('.') +) -- cgit v1.2.3