meta-digi:recipes-qt: Enable gstreamer support when building QT

This commit enables gstreamer support when built qtmultimedia. Also
sets the gstreamer plugin video source for QT.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-6691
This commit is contained in:
Mike Engel 2019-08-26 11:33:27 +02:00
parent fe977873e3
commit 8e92839ce0
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,12 @@
# Copyright (C) 2015-2019 Digi International
PACKAGECONFIG_append = " gstreamer"
pkg_postinst_${PN}_ccimx6() {
echo '# Use FSL gstreamer plugin video source' >> $D${sysconfdir}/profile.d/qt5.sh
echo 'export QT_GSTREAMER_CAMERABIN_VIDEOSRC="imxv4l2src"' >> $D${sysconfdir}/profile.d/qt5.sh
}
do_install_append() {
if ls ${D}${libdir}/pkgconfig/Qt5*.pc >/dev/null 2>&1; then
sed -i 's,-L${STAGING_DIR_HOST}/usr/lib,,' ${D}${libdir}/pkgconfig/Qt5*.pc