summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-03-26 22:43:50 +0200
committerOndrej Holy <oholy@redhat.com>2018-04-03 17:54:23 +0200
commitf45605210db66306ed32f9a0c6057bf095e81bb3 (patch)
treec4788d0c5490790ee3f8fe8648a9db6f8ded6498 /client
parent528ac6f989beb2e89beb9732f7bfe9eefcd8e036 (diff)
downloadgvfs-f45605210db66306ed32f9a0c6057bf095e81bb3.tar.gz
build: Revise dependencies
gvfs is using a set of glib libraries (gio-2.0, gio-unix-2.0, glib, gobject-2.0) in almost all the created objects. However, these dependencies are not always necessary. gvfs' meson port also uses some internal dependencies formed by built libraries. This internal dependencies depend on other dependendecies as well. These both issues have been fixed by reviewing all the internal dependencies and built objects. https://bugzilla.gnome.org/show_bug.cgi?id=794365
Diffstat (limited to 'client')
-rw-r--r--client/meson.build23
1 files changed, 14 insertions, 9 deletions
diff --git a/client/meson.build b/client/meson.build
index fd69f94e..038b2daf 100644
--- a/client/meson.build
+++ b/client/meson.build
@@ -31,6 +31,12 @@ sources = uri_parser_sources + uri_utils + files(
'gvfsurimapper.c'
)
+deps = [
+ gio_unix_dep,
+ libgvfscommon_dep,
+ libmetadata_dep
+]
+
cflags = [
'-DG_LOG_DOMAIN="@0@"'.format(gvfs_name.to_upper()),
'-DGVFS_LOCALEDIR="@0@"'.format(gvfs_localedir),
@@ -48,10 +54,7 @@ libgvfsdbus = shared_module(
'gvfsdbus',
sources: sources,
include_directories: top_inc,
- dependencies: [
- libgvfscommon_dep,
- libmetadata_dep
- ],
+ dependencies: deps,
c_args: cflags,
link_args: ldflags,
link_depends: symbol_map,
@@ -67,7 +70,7 @@ if enable_devel_utils
test_name,
[test_name + '.c'] + uri_utils,
include_directories: top_inc,
- dependencies: glib_deps + [libgvfscommon_dep],
+ dependencies: libgvfscommon_dep,
c_args: cflags
)
endif
@@ -81,14 +84,16 @@ if enable_fuse
)
endif
+ deps = [
+ fuse_dep,
+ libgvfscommon_dep
+ ]
+
executable(
'gvfsd-fuse',
'gvfsfusedaemon.c',
include_directories: top_inc,
- dependencies: glib_deps + [
- fuse_dep,
- libgvfscommon_dep
- ],
+ dependencies: deps,
c_args: cflags + ['-UG_LOG_DOMAIN'],
install: true,
install_rpath: gvfs_rpath,