mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-06-25 13:14:11 -04:00
27 lines
664 B
Meson
27 lines
664 B
Meson
|
|
wayland_scanner_dep = dependency('wayland-scanner', native: true)
|
||
|
|
wayland_scanner = find_program(
|
||
|
|
wayland_scanner_dep.get_variable('wayland_scanner'),
|
||
|
|
native: true,
|
||
|
|
)
|
||
|
|
|
||
|
|
wl_protos_src = []
|
||
|
|
|
||
|
|
protocols = [
|
||
|
|
'wlr-output-power-management-unstable-v1.xml',
|
||
|
|
]
|
||
|
|
|
||
|
|
foreach xml : protocols
|
||
|
|
wl_protos_src += custom_target(
|
||
|
|
xml.underscorify() + '_c',
|
||
|
|
input: xml,
|
||
|
|
output: '@BASENAME@-protocol.c',
|
||
|
|
command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
|
||
|
|
)
|
||
|
|
wl_protos_src += custom_target(
|
||
|
|
xml.underscorify() + '_server_h',
|
||
|
|
input: xml,
|
||
|
|
output: '@BASENAME@-protocol.h',
|
||
|
|
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
|
||
|
|
)
|
||
|
|
endforeach
|