gst1-vaapi: add optional encoder support

Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
[Thomas: pass explicit --enable-encoders.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Adam Duskett 2017-02-01 08:18:54 -05:00 committed by Thomas Petazzoni
parent c1e4e8545d
commit d5c7f00987
2 changed files with 13 additions and 1 deletions

View 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

View 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))