[retro-gtk] meson: Add the vapi option
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] meson: Add the vapi option
- Date: Mon, 26 Oct 2020 19:48:40 +0000 (UTC)
commit e49ccf66cb5ef75e7113c9e83181c694e6591ec7
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Oct 16 12:57:08 2020 +0200
meson: Add the vapi option
This allows disabling building Vala bindings.
meson.build | 1 +
meson_options.txt | 2 ++
retro-gtk/meson.build | 30 ++++++++++++++++--------------
3 files changed, 19 insertions(+), 14 deletions(-)
---
diff --git a/meson.build b/meson.build
index c5a6c7ca..0de648eb 100644
--- a/meson.build
+++ b/meson.build
@@ -67,6 +67,7 @@ summary = [
' Build documentation: @0@'.format(get_option('build-doc')),
' Install documentation: @0@'.format(get_option('install-doc')),
' Introspection: @0@'.format(get_option('introspection')),
+ ' Vala bindings: @0@'.format(get_option('vapi')),
'Dependencies:',
' PulseAudio: @0@'.format(get_option('pulseaudio').enabled()),
'Directories:',
diff --git a/meson_options.txt b/meson_options.txt
index 0c99f179..8f3f06cc 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -13,6 +13,8 @@ option('install-doc', type: 'boolean', value: 'false',
description : 'Install API reference documentation')
option('introspection', type: 'boolean', value: 'true',
description : 'Build introspection data (requires gobject-introspection)')
+option('vapi', type: 'boolean', value: 'true',
+ description : 'Build Vala bindings (requires vapigen and introspection option)')
# Dependencies
option('pulseaudio', type: 'feature', value: 'enabled',
diff --git a/retro-gtk/meson.build b/retro-gtk/meson.build
index bc4b9bab..aa3f311c 100644
--- a/retro-gtk/meson.build
+++ b/retro-gtk/meson.build
@@ -152,20 +152,22 @@ if get_option('introspection')
symbol_prefix: 'retro',
)
- retro_gtk_vapi_packages = [
- 'gio-2.0',
- 'glib-2.0',
- 'gmodule-2.0',
- 'gobject-2.0',
- 'gtk+-3.0',
- ]
-
- gnome.generate_vapi(
- retro_gtk_module,
- install: true,
- packages: retro_gtk_vapi_packages,
- sources: retro_gtk_gir[0],
- )
+ if get_option('vapi')
+ retro_gtk_vapi_packages = [
+ 'gio-2.0',
+ 'glib-2.0',
+ 'gmodule-2.0',
+ 'gobject-2.0',
+ 'gtk+-3.0',
+ ]
+
+ gnome.generate_vapi(
+ retro_gtk_module,
+ install: true,
+ packages: retro_gtk_vapi_packages,
+ sources: retro_gtk_gir[0],
+ )
+ endif
retro_gtk_dep_sources += retro_gtk_gir
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]