mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
build: refactoriong meson script.
move gl dependency to gl_engine part which is right position. Change-Id: I9d4935f94eff96ca1527762c92d07f9b216f19cd
This commit is contained in:
parent
400ad1c585
commit
e2fc353846
3 changed files with 8 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
project('thorvg',
|
||||
'cpp',
|
||||
default_options : ['buildtype=debugoptimized', 'werror=false', 'cpp_std=c++14', 'optimization=s'],
|
||||
default_options : ['buildtype=debugoptimized', 'werror=false', 'cpp_std=c++17', 'optimization=s'],
|
||||
version : '0.1.0',
|
||||
license : 'Apache-2.0')
|
||||
|
||||
|
|
|
@ -14,7 +14,12 @@ source_file = [
|
|||
'tvgGlShaderSrc.cpp',
|
||||
]
|
||||
|
||||
egl_dep = meson.get_compiler('cpp').find_library('EGL')
|
||||
gles_dep = meson.get_compiler('cpp').find_library('GLESv2')
|
||||
external_dep = [egl_dep, gles_dep]
|
||||
|
||||
glengine_dep = declare_dependency(
|
||||
dependencies : external_dep,
|
||||
include_directories : include_directories('.'),
|
||||
sources : source_file
|
||||
sources : source_file,
|
||||
)
|
||||
|
|
|
@ -4,12 +4,8 @@ subdir('lib')
|
|||
subdir('loaders')
|
||||
subdir('examples')
|
||||
|
||||
m_dep = meson.get_compiler('cpp').find_library('m')
|
||||
thread_dep = meson.get_compiler('cpp').find_library('pthread')
|
||||
egl_dep = meson.get_compiler('cpp').find_library('EGL')
|
||||
gles_dep = meson.get_compiler('cpp').find_library('GLESv2')
|
||||
|
||||
thorvg_lib_dep = [ src_dep, swengine_dep, glengine_dep, m_dep, egl_dep, gles_dep, svgloader_dep, thread_dep]
|
||||
thorvg_lib_dep = [ src_dep, swengine_dep, glengine_dep, svgloader_dep, thread_dep]
|
||||
|
||||
|
||||
thorvg_lib = library(
|
||||
|
|
Loading…
Add table
Reference in a new issue