mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 02:04:14 +00:00
Create meson.build
This commit is contained in:
parent
2242a139ed
commit
3333503c10
21
protocols/meson.build
Normal file
21
protocols/meson.build
Normal file
@ -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),
|
||||
]
|
||||
Loading…
x
Reference in New Issue
Block a user