[gnome-bluetooth/wip/hadess/gtk4-fixes: 4/4] sendto: Make sendto optional




commit a7e35c6ab6c569e826aa9c0c84f0aa8b0ea11db6
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 01eec980..479ee8fd 100644
--- a/meson.build
+++ b/meson.build
@@ -109,7 +109,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')
@@ -134,6 +136,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]