[polari/wip/fmuellner/meson: 4/4] build: Use imports.gi.has() instead of custom script



commit 1d179e8bf9879da2261aeba29a662cefbb3518cc
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Mar 4 21:41:23 2017 +0100

    build: Use imports.gi.has() instead of custom script
    
    GJS' built-in symbol check simplifies tests enough for us to drop
    the custom script.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779599

 build-aux/meson/check-gir.js |   46 ------------------------------------------
 meson.build                  |    4 +-
 2 files changed, 2 insertions(+), 48 deletions(-)
---
diff --git a/meson.build b/meson.build
index e5dc5e1..9b00d1b 100644
--- a/meson.build
+++ b/meson.build
@@ -62,7 +62,7 @@ if (get_option('buildtype').startswith('debug'))
           ['GObject', '2.0'],
           ['Gspell', '1', 'Entry'],
           ['Gtk', '3.0'],
-          ['Gtk', '3.0', 'ScrolledWindow.set_propagate_natural_width'],
+          ['Gtk', '3.0', 'ScrolledWindow:propagate-natural-width'],
           ['Pango', '1.0'],
           ['PangoCairo', '1.0'],
           ['Secret', '1'],
@@ -80,6 +80,6 @@ if (get_option('buildtype').startswith('debug'))
 
     test (msg,
           gjs_console,
-          args: [join_paths(src_auxdir, 'check-gir.js')] + g)
+          args: ['-c', 'imports.gi.has("@0@") ? 0 : 1'.format('","'.join(g))])
   endforeach
 endif


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