Commit 77081f3c authored by Roman Valov's avatar Roman Valov
Browse files

testegl: show warning and skip testegl build if rpi libs not found

parent 47c7814e
Pipeline #202803 waiting for manual action with stages
in 1 minute and 52 seconds
......@@ -6,18 +6,24 @@ 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
if omx_target != 'rpi'
egl_dep = dependency('egl', required : false)
if not egl_dep.found()
egl_dep = cc.find_library ('EGL')
endif
optional_deps += egl_dep
if omx_target == 'rpi'
brcmegl_dep = dependency('brcmegl', required : true)
gles2_dep = dependency('glesv2', required : false)
if not gles2_dep.found()
gles2_dep = cc.find_library ('GLESv2')
endif
optional_deps += gles2_dep
else
brcmegl_dep = dependency('brcmegl', required : false)
if not brcmegl_dep.found()
warning('Unable to locate brcmegl. Skipping "testegl" example.')
subdir_done()
endif
optional_deps += brcmegl_dep
endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment