add gstreamer-vaapi as a possible subproject
authorScott D Phillips <scott.d.phillips@intel.com>
Thu, 9 Feb 2017 19:08:39 +0000 (11:08 -0800)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Thu, 9 Feb 2017 19:15:31 +0000 (16:15 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=778407

.gitignore
meson.build
meson_options.txt
subprojects/gstreamer-vaapi.wrap [new file with mode: 0644]

index 9818e66..3dae67b 100644 (file)
@@ -10,6 +10,7 @@ gst-plugins-ugly
 gst-python
 gst-rtsp-server
 gstreamer
+gstreamer-vaapi
 __pycache__
 meson/
 subprojects/gst-devtools/
@@ -23,4 +24,5 @@ subprojects/gst-plugins-ugly/
 subprojects/gst-python/
 subprojects/gst-rtsp-server/
 subprojects/gstreamer/
+subprojects/gstreamer-vaapi/
 subprojects/glib/
index b5283ea..a4ff133 100644 (file)
@@ -59,6 +59,14 @@ if not get_option('disable_gst_omx')
     subprojects += ['gst-omx']
 endif
 
+if not get_option('disable_gstreamer_vaapi')
+  if dependency('libva', version: '>= 0.30.4', required : false).found()
+    subprojects += ['gstreamer-vaapi']
+  else
+    message('WARNING: not building gstreamer-vaapi module, missing libva')
+  endif
+endif
+
 if not get_option('disable_gst_devtools')
   if dependency('json-glib-1.0', required : false).found()
     subprojects += ['gst-devtools']
index 2a73695..ddcc13f 100644 (file)
@@ -6,3 +6,4 @@ option('disable_gst_devtools', type : 'boolean', value : false)
 option('disable_gst_editing_services', type : 'boolean', value : false)
 option('disable_rtsp_server', type : 'boolean', value : false)
 option('disable_gst_omx', type : 'boolean', value : true)
+option('disable_gstreamer_vaapi', type : 'boolean', value : false)
diff --git a/subprojects/gstreamer-vaapi.wrap b/subprojects/gstreamer-vaapi.wrap
new file mode 100644 (file)
index 0000000..7c24307
--- /dev/null
@@ -0,0 +1,4 @@
+[wrap-git]
+directory=gstreamer-vaapi
+url=https://anongit.freedesktop.org/git/gstreamer/gstreamer-vaapi.git
+revision=master