From 1ea0c1f9ddf7a8aff9a1a06ba628bc19b863f723 Mon Sep 17 00:00:00 2001 From: Alexis Date: Thu, 25 Oct 2018 16:42:01 +0200 Subject: [PATCH] chore: find gdbus-codegen once --- protocol/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/protocol/meson.build b/protocol/meson.build index 17fe326..398d1cd 100644 --- a/protocol/meson.build +++ b/protocol/meson.build @@ -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@'] )