From 0e2e1de8015abc77ead34e25d9822a183b1f214d Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Sun, 3 Oct 2021 23:51:25 +0300 Subject: [PATCH] build: Add optionality for introspection build --- devhelp/meson.build | 2 ++ meson_options.txt | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/devhelp/meson.build b/devhelp/meson.build index 010e563f..fac15888 100644 --- a/devhelp/meson.build +++ b/devhelp/meson.build @@ -120,6 +120,7 @@ PKG_CONFIG.generate( requires_private: LIBDEVHELP_PRIVATE_DEPS ) +if get_option('introspection') libdevhelp_gir = GNOME.generate_gir( libdevhelp_shared_lib, export_packages: 'libdevhelp-@0@'.format(LIBDEVHELP_API_VERSION_FULL), @@ -140,3 +141,4 @@ libdevhelp_gir = GNOME.generate_gir( '--quiet', ], ) +endif diff --git a/meson_options.txt b/meson_options.txt index 17dc85f5..c69a2906 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -10,6 +10,12 @@ option( description: 'Build the API reference' ) +option( + 'introspection', + type: 'boolean', value: true, + description: 'Build GObject Introspection data' +) + option( 'plugin_emacs', type: 'boolean', value: false, -- 2.32.0