[rygel/wip/meson: 39/44] meson: Add option to not build examples



commit a921abe5382fc70ad3f819fc107001805b4bc4da
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]