[rygel/wip/meson: 41/49] meson: Add options to enable/disable plugins



commit 10abc8f2006b61c42e3cdb04fe7a5698b416c33a
Author: Jens Georg <mail jensge org>
Date:   Fri Oct 12 16:52:10 2018 +0200

    meson: Add options to enable/disable plugins

 meson_options.txt       |  1 +
 src/plugins/meson.build | 11 +++--------
 2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index e74eadd7..6a77bdfc 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,4 @@
 option('uninstalled', type: 'boolean', value: 'false', description: 'Run Rygel from build directory only')
 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'])
diff --git a/src/plugins/meson.build b/src/plugins/meson.build
index 9c45aa9e..48516265 100644
--- a/src/plugins/meson.build
+++ b/src/plugins/meson.build
@@ -1,8 +1,3 @@
-subdir('external')
-subdir('gst-launch')
-subdir('lms')
-subdir('media-export')
-subdir('mpris')
-subdir('playbin')
-subdir('ruih')
-subdir('tracker')
+foreach plugin : get_option('plugins')
+    subdir(plugin)
+endforeach


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