[gtk+] build: Add option to enable/disable GIR generation
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] build: Add option to enable/disable GIR generation
- Date: Sat, 2 Sep 2017 11:01:36 +0000 (UTC)
commit 3a0eab776e9fcff2d985c1677920cd275faae133
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat Sep 2 12:00:05 2017 +0100
build: Add option to enable/disable GIR generation
And drop the unnecessary is_cross_build() check: it's entirely possible
to generate introspection data when cross-compiling.
gtk/meson.build | 3 ++-
meson_options.txt | 2 ++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/meson.build b/gtk/meson.build
index 5fed5b7..931d6c4 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -916,7 +916,8 @@ libgtk_dep = declare_dependency(sources: [gtkversion, gtktypebuiltins_h],
link_args: common_ldflags)
# Introspection
-if not meson.is_cross_build()
+build_gir = get_option('enable-gir')
+if build_gir
gir_args = [
'--quiet',
]
diff --git a/meson_options.txt b/meson_options.txt
index 518cecf..bcd4967 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -32,3 +32,5 @@ option('enable-documentation', type: 'boolean', value: 'false',
description : 'Build API reference and tools documentation')
option('enable-man-pages', type: 'boolean', value: 'false',
description : 'Build man pages for installed tools')
+option('enable-gir', type: 'boolean', value: 'true',
+ description : 'Build introspection data (requires gobject-introspection)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]