chore: find gdbus-codegen once

pull/62/head
Alexis 2018-10-25 16:42:01 +02:00
parent 4626cbef63
commit 1ea0c1f9dd
1 changed files with 4 additions and 2 deletions

View File

@ -36,14 +36,16 @@ foreach p : client_protocols
client_protos_headers += wayland_scanner_client.process(xml)
endforeach
gdbus_codegen = find_program('gdbus-codegen')
gdbus_code = generator(
find_program('gdbus-codegen'),
gdbus_codegen,
output: '@BASENAME@.c',
arguments: ['--c-namespace', 'Sn', '--body', '--output', '@OUTPUT@', '@INPUT@']
)
gdbus_header = generator(
find_program('gdbus-codegen'),
gdbus_codegen,
output: '@BASENAME@.h',
arguments: ['--c-namespace', 'Sn', '--header', '--output', '@OUTPUT@', '@INPUT@']
)