[pitivi/1.0] Add a way to build all GStreamer as a pitivi Subproject



commit fe75c075f4177f3216d137242c4f228fee78c736
Author: Thibault Saunier <tsaunier igalia com>
Date:   Sat Feb 24 12:23:46 2018 -0300

    Add a way to build all GStreamer as a pitivi Subproject

 meson.build       | 15 ++++++++++++++-
 meson_options.txt |  1 +
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index a9e2c1f8..71f81d6c 100644
--- a/meson.build
+++ b/meson.build
@@ -6,7 +6,20 @@ itstool = find_program('itstool')
 msgfmt = find_program('msgfmt')
 
 python_dep = dependency('python3', version : '>= 3.3')
-gst_dep = dependency('gstreamer-1.0', version : '>= 1.12.3')
+
+if get_option('build-gst')
+    subproject('gst-build', default_options: ['enable_python=true',
+        'disable_gstreamer_sharp=true', 'disable_rtsp_server=true',
+        'gst-devtools:disable_gtkdoc=true',
+        'gst-editing-services:disable_gtkdoc=true',
+        'gst-plugins-base:disable_gtkdoc=true',
+        'gstreamer:disable_gtkdoc=true',
+        ])
+    subproject('gst-transcoder')
+endif
+
+gst_dep = dependency('gstreamer-1.0', version : '>= 1.14.0',
+    fallback : ['gstreamer', 'gst_dep'])
 cairo_dep = dependency('cairo')
 pycairo_dep = dependency('py3cairo')
 
diff --git a/meson_options.txt b/meson_options.txt
index 05283fa8..c6590dd1 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1 +1,2 @@
 option('disable-help', type : 'boolean', value : false)
+option('build-gst', type : 'boolean', value : false)


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