[gxml/gxml-0.16] Can disable GObject Introspection
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gxml-0.16] Can disable GObject Introspection
- Date: Tue, 19 Feb 2019 17:24:37 +0000 (UTC)
commit 5e767de576e53e0c9f8a8b32e2c017ba0279e848
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Tue Feb 19 11:20:23 2019 -0600
Can disable GObject Introspection
gxml/meson.build | 3 ++-
meson_options.txt | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gxml/meson.build b/gxml/meson.build
index ac719b8..f26c6de 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -162,6 +162,7 @@ libgxml = library(VERSIONED_PROJECT_NAME,
true
])
+if not get_option('disable-introspection')
g_ir_compiler = find_program('g-ir-compiler')
custom_target('libgxml_typelib',
command: [
@@ -174,7 +175,7 @@ custom_target('libgxml_typelib',
depends: libgxml,
install: true,
install_dir: join_paths(get_option('libdir'), 'girepository-1.0'))
-
+endif
libgxml_dep = declare_dependency(include_directories : inc_rooth,
link_with : libgxml)
\ No newline at end of file
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 0000000..49bf7d0
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1 @@
+option('disable-introspection', type : 'boolean', value : false, description : 'Disable GObject
Introspection')
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]