[rygel/wip/meson: 44/50] meson: Add option to disable everything ui and gstreamer



commit 7b1e8b60684cb9cfc5d291768add27c5dd0a5ba3
Author: Jens Georg <mail jensge org>
Date:   Mon Oct 22 16:03:51 2018 +0200

    meson: Add option to disable everything ui and gstreamer

 meson.build       | 35 +++++++++++++++++++++++++----------
 meson_options.txt |  4 +++-
 2 files changed, 28 insertions(+), 11 deletions(-)
---
diff --git a/meson.build b/meson.build
index be208556..8e0705f7 100644
--- a/meson.build
+++ b/meson.build
@@ -77,22 +77,37 @@ gmodule = dependency('gmodule-2.0')
 libxml = dependency('libxml-2.0', version: '>= 2.7')
 gupnp_av = dependency('gupnp-av-1.0', version: '>= 0.12.8')
 gupnp_dlna = dependency('gupnp-dlna-2.0', version: '>= 0.9.4')
-gupnp_dlna_gst = dependency('gupnp-dlna-gst-2.0', version: '>= 0.9.4')
 soup = dependency('libsoup-2.4', version : '>= 2.44.0')
 mediaart = dependency('libmediaart-2.0', version : '>= 0.7.0')
 sqlite = dependency('sqlite3', version : '>= 3.5')
 
-gstreamer = dependency('gstreamer-1.0', version : '>= 1.0')
-gstreamer_pbu = dependency('gstreamer-pbutils-1.0', version : '>= 1.0')
-gstreamer_base = dependency('gstreamer-base-1.0', version : '>= 1.0')
-gstreamer_audio = dependency('gstreamer-audio-1.0', version : '>= 1.0')
-gstreamer_video = dependency('gstreamer-video-1.0', version : '>= 1.0')
-gstreamer_tag = dependency('gstreamer-tag-1.0', version : '>= 1.0')
+if get_option('gstreamer')
+    gstreamer = dependency('gstreamer-1.0', version : '>= 1.0')
+    gstreamer_pbu = dependency('gstreamer-pbutils-1.0', version : '>= 1.0')
+    gstreamer_base = dependency('gstreamer-base-1.0', version : '>= 1.0')
+    gstreamer_audio = dependency('gstreamer-audio-1.0', version : '>= 1.0')
+    gstreamer_video = dependency('gstreamer-video-1.0', version : '>= 1.0')
+    gstreamer_tag = dependency('gstreamer-tag-1.0', version : '>= 1.0')
+    gupnp_dlna_gst = dependency('gupnp-dlna-gst-2.0', version: '>= 0.9.4')
+else
+    gstreamer = disabler()
+    gstreamer_pbu = disabler()
+    gstreamer_base = disabler()
+    gstreamer_audio = disabler()
+    gstreamer_video = disabler()
+    gstreamer_tag = disabler()
+    gupnp_dlna_gst = disabler()
+endif
 
 gdk_pixbuf = dependency('gdk-pixbuf-2.0')
-gtk = dependency('gtk+-3.0', version : '>= 3.0')
 
-tracker_sparql = dependency('tracker-sparql-2.0')
+if get_option('gtk')
+    gtk = dependency('gtk+-3.0', version : '>= 3.0')
+else
+    gtk = disabler()
+endif
+
+tracker_sparql = dependency('tracker-sparql-1.0')
 
 posix = vala.find_library('posix')
 
@@ -186,4 +201,4 @@ endif
 
 if get_option('tests')
     subdir('tests')
-endif
\ No newline at end of file
+endif
diff --git a/meson_options.txt b/meson_options.txt
index dace80f2..f09cac58 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -4,4 +4,6 @@ option('systemd-user-units-dir', type : 'string', value : 'auto', description :
 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')
-option('tests', type : 'boolean', value : 'true')
\ No newline at end of file
+option('tests', type : 'boolean', value : 'true')
+option('gstreamer', type : 'boolean', value : 'true')
+option('gtk', type : 'boolean', value : 'true')


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