mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
build: refactoring meson script.
move out engine/loader dependency to its immediate parent folders. Change-Id: I7f08433fc6d2a333951fceaffea81cbe2e5da9e3
This commit is contained in:
parent
e2fc353846
commit
84af527a27
4 changed files with 13 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
project('thorvg',
|
||||
'cpp',
|
||||
default_options : ['buildtype=debugoptimized', 'werror=false', 'cpp_std=c++17', 'optimization=s'],
|
||||
default_options : ['buildtype=debugoptimized', 'werror=false', 'optimization=s'],
|
||||
version : '0.1.0',
|
||||
license : 'Apache-2.0')
|
||||
|
||||
|
|
|
@ -25,8 +25,10 @@ source_file = [
|
|||
'tvgSwCanvas.cpp',
|
||||
]
|
||||
|
||||
src_dep = declare_dependency(
|
||||
include_directories : include_directories('.'),
|
||||
sources : source_file
|
||||
)
|
||||
engine_dep = [swengine_dep, glengine_dep]
|
||||
|
||||
common_dep = declare_dependency(
|
||||
dependencies : engine_dep,
|
||||
include_directories : include_directories('.'),
|
||||
sources : source_file
|
||||
)
|
||||
|
|
|
@ -1 +1,6 @@
|
|||
subdir('svg_loader')
|
||||
|
||||
loader_dep = declare_dependency(
|
||||
dependencies : svgloader_dep,
|
||||
include_directories : include_directories('.'),
|
||||
)
|
||||
|
|
|
@ -5,8 +5,7 @@ subdir('loaders')
|
|||
subdir('examples')
|
||||
|
||||
thread_dep = meson.get_compiler('cpp').find_library('pthread')
|
||||
thorvg_lib_dep = [ src_dep, swengine_dep, glengine_dep, svgloader_dep, thread_dep]
|
||||
|
||||
thorvg_lib_dep = [ common_dep, loader_dep, thread_dep]
|
||||
|
||||
thorvg_lib = library(
|
||||
'thorvg',
|
||||
|
|
Loading…
Add table
Reference in a new issue