gamescope/protocol/meson.build
Joshua Ashton 1bb7ef50ba layer: Implement VK_GOOGLE_display_timing + present wait/id for nested
Required a decent refactor of the protocol to be more swapchain based.

Tested with Dota 2 + `-vulkan -vulkan_enable_google_display_timing`

Should hopefully improve latency/pacing in nested a good amount too.
2023-09-25 22:20:43 -07:00

43 lines
1.2 KiB
Meson

wayland_scanner_dep = dependency('wayland-scanner', native: true)
wayland_scanner_path = wayland_scanner_dep.get_variable(pkgconfig: 'wayland_scanner')
wayland_scanner = find_program(wayland_scanner_path, native: true)
protocols = [
'gamescope-xwayland',
'gamescope-pipewire',
'gamescope-input-method',
'gamescope-tearing-control-unstable-v1',
'gamescope-control',
'gamescope-swapchain',
'xdg-shell',
'presentation-time',
]
protocols_client_src = []
protocols_server_src = []
foreach name : protocols
code = custom_target(
name + '-protocol.c',
input: name + '.xml',
output: '@BASENAME@-protocol.c',
command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'],
)
server_header = custom_target(
name + '-protocol.h',
input: name + '.xml',
output: '@BASENAME@-protocol.h',
command: [wayland_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],
)
client_header = custom_target(
name + '-client-protocol.h',
input: name + '.xml',
output: '@BASENAME@-client-protocol.h',
command: [wayland_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
)
protocols_server_src += [code, server_header]
protocols_client_src += [code, client_header]
endforeach