mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
gl/meson: add build for the vivante fb backend
This commit is contained in:
parent
e15f116de2
commit
66bdef894a
1 changed files with 20 additions and 1 deletions
|
@ -221,6 +221,7 @@ if gl_winsys_s == 'auto'
|
||||||
need_win_cocoa = 'auto'
|
need_win_cocoa = 'auto'
|
||||||
need_win_eagl = 'auto'
|
need_win_eagl = 'auto'
|
||||||
need_win_dispmanx = 'auto'
|
need_win_dispmanx = 'auto'
|
||||||
|
need_win_viv_fb = 'auto'
|
||||||
else
|
else
|
||||||
need_win_x11 = 'no'
|
need_win_x11 = 'no'
|
||||||
need_win_wayland = 'no'
|
need_win_wayland = 'no'
|
||||||
|
@ -228,6 +229,7 @@ else
|
||||||
need_win_cocoa = 'no'
|
need_win_cocoa = 'no'
|
||||||
need_win_eagl = 'no'
|
need_win_eagl = 'no'
|
||||||
need_win_dispmanx = 'no'
|
need_win_dispmanx = 'no'
|
||||||
|
need_win_viv_fb = 'no'
|
||||||
gl_winsys = gl_winsys_s.split(',')
|
gl_winsys = gl_winsys_s.split(',')
|
||||||
foreach winsys : gl_winsys
|
foreach winsys : gl_winsys
|
||||||
if winsys == 'x11'
|
if winsys == 'x11'
|
||||||
|
@ -242,6 +244,8 @@ else
|
||||||
# need_win_eagl = 'yes'
|
# need_win_eagl = 'yes'
|
||||||
elif winsys == 'dispmanx'
|
elif winsys == 'dispmanx'
|
||||||
need_win_dispmanx = 'yes'
|
need_win_dispmanx = 'yes'
|
||||||
|
elif winsys == 'viv-fb'
|
||||||
|
need_win_viv_fb = 'yes'
|
||||||
else
|
else
|
||||||
error('Unsupported GL winsys provided ' + winsys)
|
error('Unsupported GL winsys provided ' + winsys)
|
||||||
endif
|
endif
|
||||||
|
@ -587,6 +591,21 @@ if host_machine.system() == 'darwin'
|
||||||
# ]
|
# ]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if need_platform_egl != 'no' and need_win_viv_fb != 'no'
|
||||||
|
if egl_dep.found() and cc.has_function ('fbGetDisplay', dependencies : egl_dep)
|
||||||
|
if cc.has_function ('glTexDirectVIV', dependencies : gles2_dep)
|
||||||
|
enabled_gl_winsys += 'viv-fb'
|
||||||
|
glconf.set10('GST_GL_HAVE_WINDOW_VIV_FB', 1)
|
||||||
|
glconf.set10('GST_GL_HAVE_VIV_DIRECTVIV', 1)
|
||||||
|
gl_sources += [
|
||||||
|
'viv-fb/gstgldisplay_viv_fb.c',
|
||||||
|
'viv-fb/gstglwindow_viv_fb_egl.c',
|
||||||
|
]
|
||||||
|
gl_cpp_args += ['-DEGL_API_FB']
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# TODO: Add rest of gl config here.
|
# TODO: Add rest of gl config here.
|
||||||
# iOS, OS X, win32 specific support
|
# iOS, OS X, win32 specific support
|
||||||
|
|
||||||
|
@ -654,7 +673,7 @@ if build_gstgl
|
||||||
version : libversion,
|
version : libversion,
|
||||||
soversion : soversion,
|
soversion : soversion,
|
||||||
install : true,
|
install : true,
|
||||||
dependencies : [gstbase_dep, gstvideo_dep, gmodule_dep,
|
dependencies : [gstbase_dep, gstvideo_dep, gstbadallocators_dep, gmodule_dep,
|
||||||
gl_lib_deps, gl_platform_deps, gl_winsys_deps, gl_misc_deps],
|
gl_lib_deps, gl_platform_deps, gl_winsys_deps, gl_misc_deps],
|
||||||
# Don't need vs_module_defs for gstgl because we do symbol exporting in the
|
# Don't need vs_module_defs for gstgl because we do symbol exporting in the
|
||||||
# function definitions via __declspec(dllexport/import)
|
# function definitions via __declspec(dllexport/import)
|
||||||
|
|
Loading…
Reference in a new issue