[rygel/wip/meson: 47/52] meson: Add option to not build examples
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson: 47/52] meson: Add option to not build examples
- Date: Thu, 18 Oct 2018 09:18:29 +0000 (UTC)
commit e75176e5a0bb4c17205e04ae0edd23b7978932f5
Author: Jens Georg <mail jensge org>
Date: Fri Oct 12 16:59:36 2018 +0200
meson: Add option to not build examples
meson.build | 5 ++++-
meson_options.txt | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index b26c8a99..a84cfe7b 100644
--- a/meson.build
+++ b/meson.build
@@ -171,4 +171,7 @@ subdir('src')
subdir('po')
subdir('data')
subdir('doc')
-subdir('examples')
+
+if get_option('examples')
+ subdir('examples')
+endif
diff --git a/meson_options.txt b/meson_options.txt
index 6a77bdfc..fb05bc9d 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -2,3 +2,4 @@ option('uninstalled', type: 'boolean', value: 'false', description: 'Run Rygel f
option('api-docs', type: 'boolean', value: 'false', description: 'Build the API documentation')
option('systemd-user-units-dir', type : 'string', value : 'auto', description : 'Where to install the
systemd user unit (use special values "auto" or "none", or pass a path')
option('plugins', type : 'array', choices : ['external', 'gst-launch', 'lms', 'media-export', 'mpris',
'playbin', 'ruih', 'tracker'])
+option('examples', type : 'boolean', value : 'true')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]