[totem/wip/hadess/python-requires-gi] build: Python support requires introspection support
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/python-requires-gi] build: Python support requires introspection support
- Date: Thu, 7 Feb 2019 13:07:24 +0000 (UTC)
commit db195282d8389d473da3056b8a7cca02cc56111a
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 7 14:03:02 2019 +0100
build: Python support requires introspection support
So error out if Python support is requested but introspection isn't
available, or disable Python support if not explicitely enabled.
The Vala support portion of the build system already has similar code.
Closes: #238
meson.build | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/meson.build b/meson.build
index d46de94c0..e9266cf2c 100644
--- a/meson.build
+++ b/meson.build
@@ -206,6 +206,15 @@ if python_option != 'no'
error(str)
endif
message(str + ', disabling Python support')
+ else
+ if not have_gir
+ str = 'Introspection support is required to enable Python plugins'
+ if python_option == 'yes'
+ error(str)
+ endif
+ message(str + ', disabling Python support')
+ have_python = false
+ endif
endif
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]