summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-10-28 17:40:54 +0200
committerBastien Nocera <hadess@hadess.net>2021-10-28 18:00:46 +0200
commit3d3d1c13793212c89752170c8403a84156df31fa (patch)
tree514ca9aef46a3805dfe70ce902f076ea9f4af7c3
parentbb7901cbdc91dc2495d8856f3e5929b378b878de (diff)
downloadgnome-bluetooth-3d3d1c13793212c89752170c8403a84156df31fa.tar.gz
sendto: Make sendto optional
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--meson.build5
-rw-r--r--meson_options.txt1
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)')