blob: ddd825f3c9b3efe3f58cac2e13864b470e17aa16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
wayland_scanner = find_program('wayland-scanner')
protocols = ['river-status-unstable-v1.xml', 'river-control-unstable-v1.xml']
gen_client_header = generator(
wayland_scanner,
output: ['@[email protected]'],
arguments: ['-c', 'client-header', '@INPUT@', '@BUILD_DIR@/@[email protected]'],
)
gen_private_code = generator(
wayland_scanner,
output: ['@[email protected]'],
arguments: ['-c', 'private-code', '@INPUT@', '@BUILD_DIR@/@[email protected]'],
)
client_protocol_srcs = []
foreach protocol : protocols
client_header = gen_client_header.process(protocol)
code = gen_private_code.process(protocol)
client_protocol_srcs += [client_header, code]
endforeach
|