summaryrefslogtreecommitdiff
path: root/wm/somebar/protocols/meson.build
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2023-03-31 19:42:29 -0500
committerstkhan <personal@slickd.xyz>2023-03-31 19:42:29 -0500
commit0e71af11a27631e45c0160842e4498507420eff0 (patch)
tree4eed4eba5b0273f26bc55243cce36a2670ac0fef /wm/somebar/protocols/meson.build
parent07afc07ffff324f3a355f2437bd643b616fe0af4 (diff)
bar and blocks
Diffstat (limited to 'wm/somebar/protocols/meson.build')
-rw-r--r--wm/somebar/protocols/meson.build22
1 files changed, 22 insertions, 0 deletions
diff --git a/wm/somebar/protocols/meson.build b/wm/somebar/protocols/meson.build
new file mode 100644
index 0000000..7bd222b
--- /dev/null
+++ b/wm/somebar/protocols/meson.build
@@ -0,0 +1,22 @@
+# adapted from https://github.com/swaywm/swayidle/blob/0467c1e03a5780ed8e3ba611f099a838822ab550/meson.build
+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',
+ wl_protocol_dir + '/unstable/xdg-output/xdg-output-unstable-v1.xml',
+ 'wlr-layer-shell-unstable-v1.xml',
+]
+wayland_sources = [
+ wayland_scanner_code.process(wayland_xmls),
+ wayland_scanner_client.process(wayland_xmls),
+]