[gedit/zbrown/deteplification-src: 341/633] build: refactor a little how the vapi file is generated




commit 24c109d30cdad4a2b5c42b2b1d2250ebe8314b87
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri May 8 21:26:58 2020 +0200

    build: refactor a little how the vapi file is generated

 gedit/meson.build | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/gedit/meson.build b/gedit/meson.build
index 3b7b77419..57c18a60a 100644
--- a/gedit/meson.build
+++ b/gedit/meson.build
@@ -212,20 +212,12 @@ python3.install_sources(
 )
 
 # Vala API
-libgedit_vapi_packages = [
-  'gio-2.0',
-  'atk',
-  'gdk-3.0',
-  'gtk+-3.0',
-  'gtksourceview-4',
-]
-
 libgedit_vapi = gnome.generate_vapi(
-  meson.project_name(),
-  sources: libgedit_gir.get(0),
-  packages: libgedit_vapi_packages,
+  'gedit',
+  sources: libgedit_gir[0],
+  packages: ['gio-2.0', 'atk', 'gdk-3.0', 'gtk+-3.0', 'gtksourceview-4'],
   install: true,
-  install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'vala', 'vapi'),
+  install_dir: get_option('datadir') / 'vala/vapi',
 )
 
 libgedit_dep = declare_dependency(


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