This commit is contained in:
DreamMaoMao
2025-02-03 23:18:47 +08:00
parent bb9ae1d13a
commit af11da1881
29 changed files with 11217 additions and 2 deletions

24
protocols/meson.build Normal file
View File

@@ -0,0 +1,24 @@
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@-protocol.h',
arguments: ['server-header', '@INPUT@', '@OUTPUT@'])
wayland_xmls = [
wl_protocol_dir + '/stable/xdg-shell/xdg-shell.xml',
'wlr-layer-shell-unstable-v1.xml',
'pointer-constraints-unstable-v1.xml',
'wlr-foreign-toplevel-management-unstable-v1.xml',
'dwl-ipc-unstable-v2.xml',
# 'cursor-shape-v1.xml'
]
wayland_sources = [
wayland_scanner_code.process(wayland_xmls),
wayland_scanner_client.process(wayland_xmls),
]