mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
qt: Unbreak build with qt-egl enabled but viv_fb missing
Avoids an error message when the feature is explicitly enabled: ERROR: Feature qt-egl cannot be enabled: gstreamer-gl-viv_fb-1.0 is required Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5200>
This commit is contained in:
parent
79cf124631
commit
d956a7e2d1
1 changed files with 6 additions and 11 deletions
|
@ -113,6 +113,12 @@ if qt5_egl.allowed()
|
|||
qt_defines += ['-DHAVE_QT_EGLFS']
|
||||
optional_deps += gstglegl_dep
|
||||
have_qt_windowing = true
|
||||
|
||||
# EGL windowing for Vivante Framebuffer (e.g. i.MX6)
|
||||
if gstglviv_fb_dep.found()
|
||||
qt_defines += ['-DHAVE_QT_VIV_FB']
|
||||
optional_deps += gstglviv_fb_dep
|
||||
endif
|
||||
endif
|
||||
|
||||
# Android windowing
|
||||
|
@ -177,17 +183,6 @@ if host_system == 'ios'
|
|||
endif
|
||||
endif
|
||||
|
||||
# EGL windowing for Vivante Framebuffer (e.g. i.MX6)
|
||||
qt5_viv_fb = qt5_egl \
|
||||
.require(host_system == 'linux') \
|
||||
.require(gstglviv_fb_dep.found(), error_message: 'gstreamer-gl-viv_fb-1.0 is required') \
|
||||
.require(gst_gl_have_platform_egl, error_message: 'egl platform support in gstreamer-gl is required')
|
||||
if qt5_viv_fb.allowed()
|
||||
qt_defines += ['-DHAVE_QT_VIV_FB']
|
||||
optional_deps += gstglviv_fb_dep
|
||||
have_qt_windowing = true
|
||||
endif
|
||||
|
||||
if qt5_option.require(have_qt_windowing).allowed()
|
||||
# rpath is needed to be able to load the plugin on macOS inside the devenv
|
||||
qmlgl_kwargs = {}
|
||||
|
|
Loading…
Reference in a new issue