diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2018-04-10 22:50:31 +0200 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2018-08-11 22:56:33 +0200 |
commit | c50f3758d3e5da4f8b244227b211c3c3f454275c (patch) | |
tree | 3dacd4bde8e8c368710b1cecf46df808d4eb98ef /client/meson.build | |
parent | 183e193ba8823de398e8b22491478176acb923c9 (diff) | |
download | dconf-c50f3758d3e5da4f8b244227b211c3c3f454275c.tar.gz |
build: Fix internal dependencies
meson is able to generate internal dependencies for handling built
libraries. These internal dependencies depend on other dependencies
as well, based on the includes exposed by their headers.
This have been fixed by using proper internal dependencies for these
libraries.
Diffstat (limited to 'client/meson.build')
-rw-r--r-- | client/meson.build | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/client/meson.build b/client/meson.build index 7767ce6..579bce0 100644 --- a/client/meson.build +++ b/client/meson.build @@ -10,42 +10,40 @@ install_headers( subdir: join_paths(meson.project_name(), 'client') ) -sources = files('dconf-client.c') +name = meson.project_name() + '-client' cflags = '-DG_LOG_DOMAIN="@0@"'.format(meson.project_name()) libdconf_client = static_library( - meson.project_name() + '-client', - sources: sources, + name, + sources: name + '.c', include_directories: top_inc, - dependencies: gio_unix_dep, + dependencies: libdconf_gdbus_thread_dep, c_args: cflags, pic: true ) +libdconf_client_dep = declare_dependency( + dependencies: gio_dep, + link_with: libdconf_client +) + libdconf = shared_library( meson.project_name(), - sources: sources, + sources: name + '.c', version: libversion, soversion: soversion, include_directories: top_inc, - dependencies: gio_unix_dep, + dependencies: deps, c_args: cflags, - link_with: [ - libdconf_common, - libdconf_engine, - libdconf_gdbus_thread, - libdconf_shm, - libgvdb - ], install: true, install_dir: dconf_libdir ) libdconf_dep = declare_dependency( - link_with: libdconf, include_directories: client_inc, - dependencies: gio_unix_dep + dependencies: gio_dep, + link_with: libdconf ) pkg.generate( @@ -55,7 +53,7 @@ pkg.generate( description: meson.project_name() + ' client library', filebase: meson.project_name(), subdirs: meson.project_name(), - requires: 'gio-unix-2.0 ' + gio_unix_req_version, + requires: 'gio-2.0 ' + gio_req_version, variables: 'exec_prefix=' + dconf_libexecdir, install_dir: join_paths(dconf_libdir, 'pkgconfig') ) |