summaryrefslogtreecommitdiff
path: root/dev-util/devhelp/files/3.30.1-optional-introspection.patch
blob: b5afa8a2b87453669f77714a1765295bff974bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 3434481e901a0ffbcba9817e4c0641ca8c19275a Mon Sep 17 00:00:00 2001
From: Mart Raudsepp <leio@gentoo.org>
Date: Fri, 22 Mar 2019 19:44:40 +0200
Subject: [PATCH 1/2] build: Add optionality for introspection build

---
 devhelp/meson.build | 2 ++
 meson_options.txt   | 1 +
 2 files changed, 3 insertions(+)

diff --git a/devhelp/meson.build b/devhelp/meson.build
index ea217895..f88fcb07 100644
--- a/devhelp/meson.build
+++ b/devhelp/meson.build
@@ -123,6 +123,7 @@ PKG_CONFIG.generate(
         requires : LIBDEVHELP_DEPS_STR
 )
 
+if get_option('introspection')
 GNOME.generate_gir(
         libdevhelp,
         export_packages : 'libdevhelp-@0@'.format(LIBDEVHELP_API_VERSION_FULL),
@@ -139,3 +140,4 @@ GNOME.generate_gir(
         include_directories : ROOT_INCLUDE_DIR,
         install : true
 )
+endif
diff --git a/meson_options.txt b/meson_options.txt
index a10fc603..2eaa7ff9 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,2 +1,3 @@
 option('flatpak_build', type : 'boolean', value : false, description : 'Flatpak build mode')
 option('gtk_doc', type : 'boolean', value : false, description : 'Build the API reference')
+option('introspection', type : 'boolean', value : true, description : 'Build GObject Introspection data')
-- 
2.17.0