mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-01-31 01:13:04 +09:00
26 lines
726 B
Meson
26 lines
726 B
Meson
wayland_scanner = dependency('wayland-scanner', native: true)
|
|
wayland_scanner_path = wayland_scanner.get_variable(pkgconfig: 'wayland_scanner')
|
|
wayland_scanner_prog = find_program(wayland_scanner_path, native: true)
|
|
|
|
wayland_scanner_code = generator(
|
|
wayland_scanner_prog,
|
|
output: '@BASENAME@-protocol.c',
|
|
arguments: ['private-code', '@INPUT@', '@OUTPUT@'],
|
|
)
|
|
|
|
wayland_scanner_client = generator(
|
|
wayland_scanner_prog,
|
|
output: '@BASENAME@-client-protocol.h',
|
|
arguments: ['client-header', '@INPUT@', '@OUTPUT@'],
|
|
)
|
|
|
|
protocols = [
|
|
'xdg-output-unstable-v1.xml',
|
|
]
|
|
|
|
protocol_src = []
|
|
foreach xml : protocols
|
|
protocol_src += wayland_scanner_code.process(xml)
|
|
protocol_src += wayland_scanner_client.process(xml)
|
|
endforeach
|