[folks/wip/nielsdg/meson-followup-fixes: 2/3] meson: Install VAPI .deps files



commit 5a633e69bdd8a47cdf17a7d95bcbfd792813424c
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Apr 18 00:06:36 2019 +0200

    meson: Install VAPI .deps files
    
    Fixes https://gitlab.gnome.org/GNOME/folks/issues/105

 backends/dummy/lib/meson.build        | 5 +++++
 backends/eds/lib/meson.build          | 5 +++++
 backends/libsocialweb/lib/meson.build | 5 +++++
 backends/telepathy/lib/meson.build    | 5 +++++
 backends/tracker/lib/meson.build      | 8 ++++++++
 folks/meson.build                     | 5 +++++
 6 files changed, 33 insertions(+)
---
diff --git a/backends/dummy/lib/meson.build b/backends/dummy/lib/meson.build
index 4a5f54a3..fa8ccc84 100644
--- a/backends/dummy/lib/meson.build
+++ b/backends/dummy/lib/meson.build
@@ -44,6 +44,11 @@ dummy_backendlib = shared_library('folks-@0@'.format(dummy_backend_name),
   install_dir: [ true, folks_headers_install_dir, true, true ],
 )
 
+# Also make sure to install the VAPI's .deps file
+install_data('folks-dummy.deps',
+  install_dir: get_option('datadir') / 'vala' / 'vapi',
+)
+
 # FIXME: This comes straight from the Meson docs on how to create/install a
 # typelib file for your Vala shared library. However, as mentioned in
 # https://github.com/mesonbuild/meson/issues/4481, this is not ideal.
diff --git a/backends/eds/lib/meson.build b/backends/eds/lib/meson.build
index 297cc158..8371324c 100644
--- a/backends/eds/lib/meson.build
+++ b/backends/eds/lib/meson.build
@@ -57,6 +57,11 @@ eds_backendlib = shared_library('folks-@0@'.format(eds_backend_name),
   install_dir: [ true, folks_headers_install_dir, true, true ],
 )
 
+# Also make sure to install the VAPI's .deps file
+install_data('folks-eds.deps',
+  install_dir: get_option('datadir') / 'vala' / 'vapi',
+)
+
 # FIXME: This comes straight from the Meson docs on how to create/install a
 # typelib file for your Vala shared library. However, as mentioned in
 # https://github.com/mesonbuild/meson/issues/4481, this is not ideal.
diff --git a/backends/libsocialweb/lib/meson.build b/backends/libsocialweb/lib/meson.build
index 6861f054..7eec724a 100644
--- a/backends/libsocialweb/lib/meson.build
+++ b/backends/libsocialweb/lib/meson.build
@@ -54,6 +54,11 @@ libsocialweb_backendlib = shared_library('folks-@0@'.format(libsocialweb_backend
   install_dir: [ true, folks_headers_install_dir, true, true ],
 )
 
+# Also make sure to install the VAPI's .deps file
+install_data('folks-libsocialweb.deps',
+  install_dir: get_option('datadir') / 'vala' / 'vapi',
+)
+
 # FIXME: This comes straight from the Meson docs on how to create/install a
 # typelib file for your Vala shared library. However, as mentioned in
 # https://github.com/mesonbuild/meson/issues/4481, this is not ideal.
diff --git a/backends/telepathy/lib/meson.build b/backends/telepathy/lib/meson.build
index b5850395..8f68d8d7 100644
--- a/backends/telepathy/lib/meson.build
+++ b/backends/telepathy/lib/meson.build
@@ -137,6 +137,11 @@ telepathy_backendlib = shared_library('folks-@0@'.format(telepathy_backend_name)
   install_dir: [ true, folks_headers_install_dir, true, true ],
 )
 
+# Also make sure to install the VAPI's .deps file
+install_data('folks-telepathy.deps',
+  install_dir: get_option('datadir') / 'vala' / 'vapi',
+)
+
 # FIXME: This comes straight from the Meson docs on how to create/install a
 # typelib file for your Vala shared library. However, as mentioned in
 # https://github.com/mesonbuild/meson/issues/4481, this is not ideal.
diff --git a/backends/tracker/lib/meson.build b/backends/tracker/lib/meson.build
index 95a8d48d..6ccd2616 100644
--- a/backends/tracker/lib/meson.build
+++ b/backends/tracker/lib/meson.build
@@ -55,6 +55,14 @@ tracker_backendlib = shared_library('folks-@0@'.format(tracker_backend_name),
   install_dir: [ true, folks_headers_install_dir, true, true ],
 )
 
+# Also make sure to install the VAPI's .deps file
+configure_file(
+  output: 'folks-tracker.deps',
+  input: 'folks-tracker.deps.in',
+  configuration: { 'TRACKER_SPARQL_MAJOR': tracker_sparql_version },
+  install_dir: get_option('datadir') / 'vala' / 'vapi',
+)
+
 # FIXME: This comes straight from the Meson docs on how to create/install a
 # typelib file for your Vala shared library. However, as mentioned in
 # https://github.com/mesonbuild/meson/issues/4481, this is not ideal.
diff --git a/folks/meson.build b/folks/meson.build
index d40a7ddc..25fb974c 100644
--- a/folks/meson.build
+++ b/folks/meson.build
@@ -97,6 +97,11 @@ libfolks_lib = shared_library('folks',
   install_dir: [ true, folks_headers_install_dir, true, true ],
 )
 
+# Also make sure to install the VAPI's .deps file
+install_data('folks.deps',
+  install_dir: get_option('datadir') / 'vala' / 'vapi',
+)
+
 # FIXME: This comes straight from the Meson docs on how to create/install a
 # typelib file for your Vala shared library. However, as mentioned in
 # https://github.com/mesonbuild/meson/issues/4481, this is not ideal.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]