[polari/wip/fmuellner/meson: 10/10] build: Use imports.gi.has() instead of custom script
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/meson: 10/10] build: Use imports.gi.has() instead of custom script
- Date: Wed, 8 Mar 2017 12:16:27 +0000 (UTC)
commit 0c4510cde90b5e29c2e490a3ca930dcc41aacea0
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]