|
|
@ -184,7 +184,12 @@ if with_egl |
|
|
|
if cc.has_header('epoxy/egl.h', dependencies: epoxy_dep) and epoxy_dep.get_pkgconfig_variable('epoxy_has_egl') == '1' |
|
|
|
if cc.has_header('epoxy/egl.h', dependencies: epoxy_dep) and epoxy_dep.get_pkgconfig_variable('epoxy_has_egl') == '1' |
|
|
|
gbm_dep = dependency('gbm', version: '>= ' + _gbm_ver, required: require_egl) |
|
|
|
gbm_dep = dependency('gbm', version: '>= ' + _gbm_ver, required: require_egl) |
|
|
|
have_egl = gbm_dep.found() |
|
|
|
have_egl = gbm_dep.found() |
|
|
|
|
|
|
|
if (have_egl) |
|
|
|
conf_data.set('HAVE_EPOXY_EGL_H', 1) |
|
|
|
conf_data.set('HAVE_EPOXY_EGL_H', 1) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
assert(not require_egl, |
|
|
|
|
|
|
|
'egl was explicitely requested which requires gbm, and this is not available') |
|
|
|
|
|
|
|
endif |
|
|
|
else |
|
|
|
else |
|
|
|
assert(not require_egl, |
|
|
|
assert(not require_egl, |
|
|
|
'egl was explicitely requested but it is not supported by epoxy') |
|
|
|
'egl was explicitely requested but it is not supported by epoxy') |
|
|
|