[rygel/wip/meson: 42/49] meson: Add option to not build examples
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson: 42/49] meson: Add option to not build examples
- Date: Mon, 22 Oct 2018 20:15:55 +0000 (UTC)
commit 60642536778b786434c7d54a0ae4955ce4779aec
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]