diff options
author | Ondrej Holy <oholy@redhat.com> | 2019-01-07 17:44:09 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2019-01-07 17:44:09 +0100 |
commit | 7a2ff5035bf6cce3c783224c9df800c4a59a1f8f (patch) | |
tree | 46017945914ab9e69467f12a69bb5ee7180ef07d /metadata | |
parent | 47203abf0b087be1fbf936d4040291e97fe39e16 (diff) | |
download | gvfs-7a2ff5035bf6cce3c783224c9df800c4a59a1f8f.tar.gz |
Revert "build: Remove gdbus codegen workaround"
This reverts commit 32bde011b2522d302d72506884866bd809ef5bda.
Diffstat (limited to 'metadata')
-rw-r--r-- | metadata/meson.build | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/metadata/meson.build b/metadata/meson.build index e51f1564..bbfd09fd 100644 --- a/metadata/meson.build +++ b/metadata/meson.build @@ -29,12 +29,16 @@ metadata_service = configure_file( install_dir: dbus_session_bus_services_dir, ) -dbus_sources = gnome.gdbus_codegen( - 'metadata-dbus', - 'dbus-interface.xml', - interface_prefix: gvfs_namespace + '.', - namespace: 'GVfs', - autocleanup: 'objects', +# FIXME: Ugly workaround that simulates the generation of +# two different targets. +namespace = 'GVfs' +name = 'metadata-dbus' + +dbus_sources = custom_target( + name, + input: 'dbus-interface.xml', + output: [name + '.c', name + '.h'], + command: [codegen, gvfs_namespace + '.', name, namespace, meson.current_build_dir(), '@INPUT@', '@OUTPUT@'], ) sources = files( |