summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-10-20 22:40:14 +0200
committerAlexander Kanavin <alex.kanavin@gmail.com>2020-10-20 23:46:34 +0200
commit747d0d03107cbf34b1f453f8edfe41d2aac2b5f7 (patch)
tree369912c4e0951da025189d47d6d45a49b8b1d487
parentfc8a9994e84f9eb299018485c215467ff5fefa67 (diff)
downloadgobject-introspection-747d0d03107cbf34b1f453f8edfe41d2aac2b5f7.tar.gz
meson.build: exclude girepo_dep if introspection data is disabled
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 3761af7f..3bbcf8de 100644
--- a/meson.build
+++ b/meson.build
@@ -283,7 +283,7 @@ pkg.generate(
# FIXME: meson.override_dependency() and declare_dependency()'s variable arguments
# are new in Meson 0.54.0, older versions of Meson won't be able to use g-i as
# subproject anyway
-if meson.version().version_compare('>=0.54.0')
+if meson.version().version_compare('>=0.54.0') and get_option('build_introspection_data') == true
girepo_dep = declare_dependency(
sources: typelibs,
dependencies: girepo_dep,