mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
71ddf32df9
Will be easier to maintain. Also uniformize autotool build with meson build which is already retrieving the gl libs. https://bugzilla.gnome.org/show_bug.cgi?id=781606
26 lines
651 B
Meson
26 lines
651 B
Meson
optional_deps = []
|
|
if x11_dep.found()
|
|
optional_deps += x11_dep
|
|
endif
|
|
|
|
if x11_dep.found() or omx_target == 'rpi'
|
|
egl_sources = ['testegl.c']
|
|
|
|
egl_dep = dependency('egl', required : false)
|
|
if not egl_dep.found()
|
|
egl_dep = cc.find_library ('EGL')
|
|
endif
|
|
|
|
gles2_dep = dependency('glesv2', required : false)
|
|
if not gles2_dep.found()
|
|
gles2_dep = cc.find_library ('GLESv2')
|
|
endif
|
|
|
|
executable ('testegl',
|
|
sources : egl_sources,
|
|
c_args : gst_omx_args,
|
|
include_directories : [configinc],
|
|
dependencies : [libm, gst_dep, gstvideo_dep, gstgl_dep, egl_dep,
|
|
gles2_dep] + optional_deps
|
|
)
|
|
endif
|