summaryrefslogtreecommitdiff
path: root/river/protocols/meson.build
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-01 03:23:02 +0200
committerAylur <[email protected]>2024-09-01 03:23:02 +0200
commit9573f14c3e6dbfadbf443936e8f6375c48bfa8c3 (patch)
tree03bdc71d7dc2dccb3d9cf6291997c155def2d455 /river/protocols/meson.build
parent3390e65f317b3f3c0a612311f46db35bd6107234 (diff)
parent247ac06b867a20b4c30f3f374a88ebfd40165753 (diff)
merge river
Diffstat (limited to 'river/protocols/meson.build')
-rw-r--r--river/protocols/meson.build23
1 files changed, 23 insertions, 0 deletions
diff --git a/river/protocols/meson.build b/river/protocols/meson.build
new file mode 100644
index 0000000..69f01bb
--- /dev/null
+++ b/river/protocols/meson.build
@@ -0,0 +1,23 @@
+
+wayland_scanner = find_program('wayland-scanner')
+
+protocols = [
+ 'river-status-unstable-v1.xml',
+ 'river-control-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