meson: make good and base optional
authorStéphane Cerveau <scerveau@collabora.com>
Wed, 15 Jul 2020 13:01:37 +0000 (15:01 +0200)
committerStéphane Cerveau <scerveau@collabora.com>
Tue, 6 Oct 2020 07:48:20 +0000 (09:48 +0200)
Be able to disable the base/good build on demand
By default its always enabled.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/178>

meson.build
meson_options.txt

index e519f30..89041f7 100644 (file)
@@ -71,8 +71,8 @@ endif
 # Ordered list of subprojects (dict has no ordering guarantees)
 subprojects = [
   ['gstreamer', {'build-hotdoc': true}],
-  ['gst-plugins-base', {'build-hotdoc': true}],
-  ['gst-plugins-good', {'build-hotdoc': true}],
+  ['gst-plugins-base', {'option': get_option('base'), 'build-hotdoc': true}],
+  ['gst-plugins-good', {'option': get_option('good'), 'build-hotdoc': true}],
   ['libnice', { 'option': get_option('libnice'), 'match_gst_version': false}],
   ['gst-plugins-bad', { 'option': get_option('bad'), 'build-hotdoc': true}],
   ['gst-plugins-ugly', { 'option': get_option('ugly'), 'build-hotdoc': true}],
index db487dd..c285a3c 100644 (file)
@@ -2,6 +2,8 @@
 option('python', type : 'feature', value : 'auto')
 option('libav', type : 'feature', value : 'auto')
 option('libnice', type : 'feature', value : 'auto')
+option('base', type : 'feature', value : 'enabled')
+option('good', type : 'feature', value : 'enabled')
 option('ugly', type : 'feature', value : 'auto')
 option('bad', type : 'feature', value : 'auto')
 option('devtools', type : 'feature', value : 'auto')