2017-08-22 12:48:26 +00:00
|
|
|
optional_deps = []
|
|
|
|
if x11_dep.found()
|
|
|
|
optional_deps += x11_dep
|
|
|
|
endif
|
|
|
|
|
|
|
|
if x11_dep.found() or omx_target == 'rpi'
|
2017-01-17 15:43:44 +00:00
|
|
|
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
|
|
|
|
|
2018-05-18 08:55:21 +00:00
|
|
|
if omx_target == 'rpi'
|
|
|
|
brcmegl_dep = dependency('brcmegl', required : true)
|
|
|
|
optional_deps += brcmegl_dep
|
|
|
|
endif
|
|
|
|
|
2017-01-17 15:43:44 +00:00
|
|
|
executable ('testegl',
|
|
|
|
sources : egl_sources,
|
|
|
|
c_args : gst_omx_args,
|
|
|
|
include_directories : [configinc],
|
2017-08-22 12:48:26 +00:00
|
|
|
dependencies : [libm, gst_dep, gstvideo_dep, gstgl_dep, egl_dep,
|
|
|
|
gles2_dep] + optional_deps
|
|
|
|
)
|
2017-01-17 15:43:44 +00:00
|
|
|
endif
|