gst1-vaapi: add optional encoder support
authorAdam Duskett <Aduskett@gmail.com>
Wed, 1 Feb 2017 13:18:54 +0000 (08:18 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Mar 2017 20:32:23 +0000 (21:32 +0100)
Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
[Thomas: pass explicit --enable-encoders.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gstreamer1/gst1-vaapi/Config.in
package/gstreamer1/gst1-vaapi/gst1-vaapi.mk

index 9a4d66c9fab8b2ceea22ac244a796fbdb731a99d..0b8ae39559578da41ee5b8ba1937e4bf23ac6d5f 100644 (file)
@@ -38,6 +38,13 @@ config BR2_PACKAGE_GST1_VAAPI
 
          https://cgit.freedesktop.org/gstreamer/gstreamer-vaapi
 
+if BR2_PACKAGE_GST1_VAAPI
+
+config BR2_PACKAGE_GST1_VAAPI_ENCODERS
+       bool "enable encoders"
+
+endif
+
 comment "gst1-vaapi needs udev /dev management and a toolchain w/ threads, dynamic library"
        depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
                !BR2_PACKAGE_HAS_UDEV
index 370e281d0377aae812276698c01633114a3c6b6c..11ad4c456c2fd3b9fc3525dee7fd1a5c47a0017b 100644 (file)
@@ -18,11 +18,16 @@ GST1_VAAPI_DEPENDENCIES += \
        libdrm
 
 GST1_VAAPI_CONF_OPTS += \
-       --disable-encoders \
        --disable-x11 \
        --disable-glx \
        --disable-wayland \
        --disable-egl \
        --disable-gtk-doc-html
 
+ifeq ($(BR2_PACKAGE_GST1_VAAPI_ENCODERS),y)
+GST1_VAAPI_CONF_OPTS += --enable-encoders
+else
+GST1_VAAPI_CONF_OPTS += --disable-encoders
+endif
+
 $(eval $(autotools-package))