[rygel/wip/meson] meson: Add option to not build examples
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson] meson: Add option to not build examples
- Date: Fri, 12 Oct 2018 15:00:12 +0000 (UTC)
commit 42115878495d76e5a1dc0f2046129a8c0b0261a1
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]