summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-12-17 22:52:40 +0100
committerIñigo Martínez <inigomartinez@gmail.com>2019-01-04 16:33:53 +0100
commit32bde011b2522d302d72506884866bd809ef5bda (patch)
tree92559d613009f763cc67df5a8a019d2bdde963ef /common
parentdc34f1be6a3c1fa6d5615ad5d647003e7ce3196f (diff)
downloadgvfs-32bde011b2522d302d72506884866bd809ef5bda.tar.gz
build: Remove gdbus codegen workaround
When gvfs was ported to meson `gdbus-codegen` was not able to generate the source and header files independently, and this caused issues on highly parallelized build. To avoid this issue a workaround was placed by using an external script. However, recently glib and meson acquired support for generating source and header files independently, so the workaround has been removed.
Diffstat (limited to 'common')
-rw-r--r--common/meson.build16
1 files changed, 6 insertions, 10 deletions
diff --git a/common/meson.build b/common/meson.build
index a718783f..beef8c26 100644
--- a/common/meson.build
+++ b/common/meson.build
@@ -14,16 +14,12 @@ sources = files(
'gvfsutils.c',
)
-# 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@'],
+dbus_sources = gnome.gdbus_codegen(
+ 'gvfsdbus',
+ gvfs_namespace + '.xml',
+ interface_prefix: gvfs_namespace + '.',
+ namespace: 'GVfsDBus',
+ autocleanup: 'objects',
)
deps = [