[dconf: 15/21] build: Use vapi dir from pkg-config file
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf: 15/21] build: Use vapi dir from pkg-config file
- Date: Sat, 11 Aug 2018 21:38:57 +0000 (UTC)
commit 14d49e69dc320e9a2953b9753441fab5a058c60f
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Fri Aug 10 11:16:47 2018 +0200
build: Use vapi dir from pkg-config file
The `vapigen` pkg-config file provides a variable with the location
of the vapi files.
This variable is checked to set the installation directory of the
vapi file provided by dconf.
client/meson.build | 2 +-
meson.build | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/client/meson.build b/client/meson.build
index 88492fb..a526c11 100644
--- a/client/meson.build
+++ b/client/meson.build
@@ -62,5 +62,5 @@ vapi_data = libdconf_vapi + files(meson.project_name() + '.deps')
install_data(
vapi_data,
- install_dir: join_paths(dconf_datadir, 'vala', 'vapi')
+ install_dir: vapi_dir
)
diff --git a/meson.build b/meson.build
index 6cdef07..0d3b2f9 100644
--- a/meson.build
+++ b/meson.build
@@ -44,6 +44,7 @@ glib_dep = dependency('glib-2.0', version: '>= 2.44.0')
gio_module_dir = gio_dep.get_pkgconfig_variable('giomoduledir', define_variable: ['libdir', dconf_libdir])
dbus_session_service_dir = dependency('dbus-1').get_pkgconfig_variable('session_bus_services_dir',
define_variable: ['datadir', dconf_datadir])
+vapi_dir = dependency('vapigen').get_pkgconfig_variable('vapidir', define_variable: ['datadir',
dconf_datadir])
enable_bash_completion = get_option('bash_completion')
if enable_bash_completion
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]