summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott D Phillips <scott.d.phillips@intel.com>2017-02-09 11:08:39 -0800
committerThibault Saunier <thibault.saunier@osg.samsung.com>2017-02-09 16:15:31 -0300
commita6ae14b612f0e0133360ba0c02a55ec2508b97c3 (patch)
tree00f6f8bf74ff8e9aec8e00fb47db4f3d1f81a0e9
parent5a06cf2807bcf94587ff49ad91932971bb6550d7 (diff)
add gstreamer-vaapi as a possible subproject
https://bugzilla.gnome.org/show_bug.cgi?id=778407
-rw-r--r--.gitignore2
-rw-r--r--meson.build8
-rw-r--r--meson_options.txt1
-rw-r--r--subprojects/gstreamer-vaapi.wrap4
4 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 9818e66..3dae67b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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/
diff --git a/meson.build b/meson.build
index b5283ea..a4ff133 100644
--- a/meson.build
+++ b/meson.build
@@ -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']
diff --git a/meson_options.txt b/meson_options.txt
index 2a73695..ddcc13f 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -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
index 0000000..7c24307
--- /dev/null
+++ b/subprojects/gstreamer-vaapi.wrap
@@ -0,0 +1,4 @@
+[wrap-git]
+directory=gstreamer-vaapi
+url=https://anongit.freedesktop.org/git/gstreamer/gstreamer-vaapi.git
+revision=master