summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Zapata <jorgeluis.zapata@gmail.com>2019-03-30 02:27:45 +0100
committerAndoni Morales Alastruey <ylatuya@gmail.com>2019-04-04 14:32:15 +0200
commitd71068f5b38363b8712a539eb42b0601ca5f5303 (patch)
tree5466bfdc3228ba1b066f9d207717bb2128dcd6fa
parent85b92e7d5264ac9700af2b8ea58605fde1f5c504 (diff)
gi: disable correctly gi when no typelibs are defined
-rw-r--r--cerbero/build/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cerbero/build/build.py b/cerbero/build/build.py
index 0bcbf0cc..2db01ee0 100644
--- a/cerbero/build/build.py
+++ b/cerbero/build/build.py
@@ -444,7 +444,8 @@ class Autotools (MakefilesBase):
# Never build gtk-doc documentation
self.configure_tpl += " --disable-gtk-doc "
- if self.config.variants.gi and not self.disable_introspection:
+ if self.config.variants.gi and not self.disable_introspection \
+ and self.use_gobject_introspection():
self.configure_tpl += " --enable-introspection "
else:
self.configure_tpl += " --disable-introspection "