[gnome-bluetooth/wip/hadess/gtk4-fixes: 5/5] sendto: Make sendto optional
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/gtk4-fixes: 5/5] sendto: Make sendto optional
- Date: Thu, 28 Oct 2021 16:00:55 +0000 (UTC)
commit 3d3d1c13793212c89752170c8403a84156df31fa
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 28 17:40:54 2021 +0200
sendto: Make sendto optional
.gitlab-ci.yml | 2 +-
meson.build | 5 ++++-
meson_options.txt | 1 +
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8b028560..3f2ebc0c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,7 +28,7 @@ build_stable:
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $DEPENDENCIES
script:
- - meson . _build --prefix=/usr -Dicon_update=true -Dgtk_doc=true -Dintrospection=true
+ - meson . _build --prefix=/usr -Dicon_update=true -Dgtk_doc=true -Dintrospection=true -Dsendto=true
- ninja -C _build
- ninja -C _build install
- dnf install -y $TEST_DEPS
diff --git a/meson.build b/meson.build
index d62cd9bc..15257d3f 100644
--- a/meson.build
+++ b/meson.build
@@ -107,7 +107,9 @@ m_dep = cc.find_library('m')
subdir('icons')
subdir('lib')
-subdir('sendto')
+if get_option('sendto')
+ subdir('sendto')
+endif
if enable_gtk_doc
subdir('docs/reference/libgnome-bluetooth')
@@ -132,6 +134,7 @@ meson.add_install_script(
summary({'Documentation': enable_gtk_doc,
'Introspection': enable_gir,
+ 'Send-to': get_option('sendto'),
'Run gtk-update-icon-cache': get_option('icon_update')},
section: 'General')
diff --git a/meson_options.txt b/meson_options.txt
index 1defb70d..eed1137c 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,4 @@
+option('sendto', type: 'boolean', value: true, description: 'Whether to build and install bluetooth-sendto')
option('icon_update', type: 'boolean', value: true, description: 'Enable icon cache update')
option('gtk_doc', type: 'boolean', value: false, description: 'use gtk-doc to build documentation')
option('introspection', type: 'boolean', value: true, description: 'Enable GObject Introspection (depends on
GObject)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]