[totem-pl-parser] build: don't guard gir generation behind is_cross_build(), use a option instead.



commit 4c166c32026ea3b023d79cc91c4a8ad567a78f2e
Author: maxice8 <thinkabit ukim gmail com>
Date:   Sat Feb 16 06:24:59 2019 -0200

    build: don't guard gir generation behind is_cross_build(), use a option
    instead.
    
    There are distros that can generate gir even when cross compiling so
    is_cross_build() is an outdated assumption.

 meson_options.txt   | 2 ++
 plparse/meson.build | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index 9c32a5f..0fea01b 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -6,3 +6,5 @@ option('enable-libgcrypt', type: 'combo', choices : ['yes', 'no', 'auto'], value
   description : 'Enable libgcrypt support.')
 option('enable-gtk-doc', type: 'boolean', value: 'false',
   description : 'Generate the API reference (depends on GTK-Doc)')
+option('introspection', type: 'boolean', value: 'true',
+  description : 'Generate GObject Introspection bindings')
diff --git a/plparse/meson.build b/plparse/meson.build
index bdfde9d..668a072 100644
--- a/plparse/meson.build
+++ b/plparse/meson.build
@@ -121,7 +121,7 @@ if have_quvi
 endif
 
 # Introspection
-if not meson.is_cross_build()
+if get_option('introspection')
   gnome.generate_gir(plparser_lib,
                      sources: plparser_public_headers + plparser_sources + [
                        totem_pl_parser_marshalers[1],


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