mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 14:13:43 +00:00
infra/gl_enigne: fallback use gles v2 if the system doesn't have v3.
let's keep this for a while until our minimum requirement is clear.
This commit is contained in:
parent
a3fe9c25f2
commit
9ca8eacd65
1 changed files with 5 additions and 3 deletions
|
@ -21,12 +21,14 @@ source_file = [
|
|||
'tvgGlTessellator.h',
|
||||
]
|
||||
|
||||
gles_dep = meson.get_compiler('cpp').find_library('GLESv3')
|
||||
gles_dep = meson.get_compiler('cpp').find_library('GLESv3', required: false)
|
||||
|
||||
external_dep = [gles_dep]
|
||||
if not gles_dep.found()
|
||||
gles_dep = meson.get_compiler('cpp').find_library('GLESv2', required: true)
|
||||
endif
|
||||
|
||||
engine_dep += [declare_dependency(
|
||||
dependencies : external_dep,
|
||||
dependencies : gles_dep,
|
||||
include_directories : include_directories('.'),
|
||||
sources : source_file,
|
||||
)]
|
||||
|
|
Loading…
Add table
Reference in a new issue