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:
parent
de2ec0559b
commit
6505bac710
|
@ -165,12 +165,13 @@ endif
|
||||||
|
|
||||||
|
|
||||||
if get_option('opengl') != 'none'
|
if get_option('opengl') != 'none'
|
||||||
gl_deps += dependency('gl')
|
if get_option('opengl') == 'es-egl'
|
||||||
endif
|
config_h.set('GL_GLES', '1')
|
||||||
|
gl_deps += cc.find_library('GLESv2')
|
||||||
if get_option('opengl') == 'es-egl'
|
gl_deps += cc.find_library('EGL')
|
||||||
config_h.set('GL_GLES', '1')
|
else
|
||||||
gl_deps += dependency('egl')
|
gl_deps += cc.find_library('GL')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
evas_pre = declare_dependency(
|
evas_pre = declare_dependency(
|
||||||
|
|
Loading…
Reference in New Issue