[libdazzle] vapi: adjust various bits of vapi generation



commit ee6b78eb7b1edf2beafd87283ffaaf7f67553887
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 6 01:39:22 2017 -0700

    vapi: adjust various bits of vapi generation
    
    We want to keep the same namespace as .gir. Also tweak a few defaults.

 src/Dazzle-1.0.metadata |    5 +++++
 src/meson.build         |    9 +++++----
 2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/Dazzle-1.0.metadata b/src/Dazzle-1.0.metadata
new file mode 100644
index 0000000..0d90e7f
--- /dev/null
+++ b/src/Dazzle-1.0.metadata
@@ -0,0 +1,5 @@
+Dazzle name="Dazzle"
+* cheader_filename="dazzle.h"
+*.*.cancellable#parameter nullable default=null
+*.*.io_priority default=GLib.Priority.LOW
+
diff --git a/src/meson.build b/src/meson.build
index d26b104..3e13244 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -390,10 +390,11 @@ if get_option('with_introspection')
   if get_option('with_vapi')
 
     libdazzle_vapi = gnome.generate_vapi('libdazzle-' + apiversion,
-          sources: libdazzle_gir[0],
-         packages: [ 'gio-2.0', 'gtk+-3.0' ],
-          install: true,
-      install_dir: vapidir,
+            sources: libdazzle_gir[0],
+           packages: [ 'gio-2.0', 'gtk+-3.0' ],
+            install: true,
+        install_dir: vapidir,
+      metadata_dirs: [ meson.current_source_dir() ],
     )
 
   endif


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