chore: find gdbus-codegen once
This commit is contained in:
parent
4626cbef63
commit
1ea0c1f9dd
|
@ -36,14 +36,16 @@ foreach p : client_protocols
|
||||||
client_protos_headers += wayland_scanner_client.process(xml)
|
client_protos_headers += wayland_scanner_client.process(xml)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
gdbus_codegen = find_program('gdbus-codegen')
|
||||||
|
|
||||||
gdbus_code = generator(
|
gdbus_code = generator(
|
||||||
find_program('gdbus-codegen'),
|
gdbus_codegen,
|
||||||
output: '@BASENAME@.c',
|
output: '@BASENAME@.c',
|
||||||
arguments: ['--c-namespace', 'Sn', '--body', '--output', '@OUTPUT@', '@INPUT@']
|
arguments: ['--c-namespace', 'Sn', '--body', '--output', '@OUTPUT@', '@INPUT@']
|
||||||
)
|
)
|
||||||
|
|
||||||
gdbus_header = generator(
|
gdbus_header = generator(
|
||||||
find_program('gdbus-codegen'),
|
gdbus_codegen,
|
||||||
output: '@BASENAME@.h',
|
output: '@BASENAME@.h',
|
||||||
arguments: ['--c-namespace', 'Sn', '--header', '--output', '@OUTPUT@', '@INPUT@']
|
arguments: ['--c-namespace', 'Sn', '--header', '--output', '@OUTPUT@', '@INPUT@']
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue