diff options
author | maxice8 <thinkabit.ukim@gmail.com> | 2019-02-16 06:24:59 -0200 |
---|---|---|
committer | maxice8 <thinkabit.ukim@gmail.com> | 2019-02-16 07:42:44 -0200 |
commit | 4c166c32026ea3b023d79cc91c4a8ad567a78f2e (patch) | |
tree | 61abdf2fcbb2e48fffe8d1402ab8bfaa170dbc59 | |
parent | 26214680a5097c56f03b8702d40dc00f00c76936 (diff) | |
download | totem-pl-parser-4c166c32026ea3b023d79cc91c4a8ad567a78f2e.tar.gz |
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.
-rw-r--r-- | meson_options.txt | 2 | ||||
-rw-r--r-- | plparse/meson.build | 2 |
2 files changed, 3 insertions, 1 deletions
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], |