[rygel/wip/meson: 40/50] meson: Add option for selecting engines



commit 1ed6a1258f53b5038a46d1b1884bc888c24c775a
Author: Jens Georg <mail jensge org>
Date:   Fri Oct 12 16:59:51 2018 +0200

    meson: Add option for selecting engines

 meson_options.txt             | 1 +
 src/media-engines/meson.build | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index fb05bc9d..250c24fe 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -2,4 +2,5 @@ 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('engines', type : 'array', choices : ['simple', 'gstreamer'])
 option('examples', type : 'boolean', value : 'true')
diff --git a/src/media-engines/meson.build b/src/media-engines/meson.build
index 051ae517..12e49176 100644
--- a/src/media-engines/meson.build
+++ b/src/media-engines/meson.build
@@ -1,2 +1,3 @@
-subdir('gstreamer')
-subdir('simple')
+foreach engine : get_option('engines')
+    subdir(engine)
+endforeach


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]