diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/meson.build | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/common/meson.build b/common/meson.build index beef8c26..a718783f 100644 --- a/common/meson.build +++ b/common/meson.build @@ -14,12 +14,16 @@ sources = files( 'gvfsutils.c', ) -dbus_sources = gnome.gdbus_codegen( - 'gvfsdbus', - gvfs_namespace + '.xml', - interface_prefix: gvfs_namespace + '.', - namespace: 'GVfsDBus', - autocleanup: 'objects', +# FIXME: Ugly workaround that simulates the generation of +# two different targets. +namespace = 'GVfsDBus' +name = namespace.to_lower() + +dbus_sources = custom_target( + name, + input: gvfs_namespace + '.xml', + output: [name + '.c', name + '.h'], + command: [codegen, gvfs_namespace + '.', name, namespace, meson.current_build_dir(), '@INPUT@', '@OUTPUT@'], ) deps = [ |