meson - fix meson build to specifically link to GL or GLES

these are explicit options to choose gl or gles. i found that evas
moduels were not linking to gles, but to GL even wiht gles enabled.
This commit is contained in:
Carsten Haitzler 2018-12-26 17:36:03 +00:00
parent de2ec0559b
commit 6505bac710
1 changed files with 7 additions and 6 deletions

View File

@ -165,12 +165,13 @@ endif
if get_option('opengl') != 'none'
gl_deps += dependency('gl')
endif
if get_option('opengl') == 'es-egl'
config_h.set('GL_GLES', '1')
gl_deps += dependency('egl')
if get_option('opengl') == 'es-egl'
config_h.set('GL_GLES', '1')
gl_deps += cc.find_library('GLESv2')
gl_deps += cc.find_library('EGL')
else
gl_deps += cc.find_library('GL')
endif
endif
evas_pre = declare_dependency(