summaryrefslogtreecommitdiff
path: root/protocols/meson.build
blob: f936e377ef9a16fff83e3314cf95efa5f5890227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

wayland_scanner = find_program('wayland-scanner')

protocols = [
    'river-status-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