mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
infra - add 'all' option for savers.
ex) meson . build -Dsavers="all", ...
This commit is contained in:
parent
daecef5acd
commit
b2692484b7
3 changed files with 17 additions and 5 deletions
18
meson.build
18
meson.build
|
@ -13,6 +13,7 @@ add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/images"'.format(src_dir),
|
||||||
|
|
||||||
config_h.set_quoted('THORVG_VERSION_STRING', meson.project_version())
|
config_h.set_quoted('THORVG_VERSION_STRING', meson.project_version())
|
||||||
|
|
||||||
|
#Engines
|
||||||
if get_option('engines').contains('sw') == true
|
if get_option('engines').contains('sw') == true
|
||||||
config_h.set10('THORVG_SW_RASTER_SUPPORT', true)
|
config_h.set10('THORVG_SW_RASTER_SUPPORT', true)
|
||||||
endif
|
endif
|
||||||
|
@ -21,6 +22,7 @@ if get_option('engines').contains('gl') == true
|
||||||
config_h.set10('THORVG_GL_RASTER_SUPPORT', true)
|
config_h.set10('THORVG_GL_RASTER_SUPPORT', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#Loaders
|
||||||
all_loaders = false
|
all_loaders = false
|
||||||
|
|
||||||
if get_option('loaders').contains('all') == true
|
if get_option('loaders').contains('all') == true
|
||||||
|
@ -43,10 +45,18 @@ if all_loaders or get_option('loaders').contains('jpg') == true
|
||||||
config_h.set10('THORVG_JPG_LOADER_SUPPORT', true)
|
config_h.set10('THORVG_JPG_LOADER_SUPPORT', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('savers').contains('tvg') == true
|
#Savers
|
||||||
|
all_savers = false
|
||||||
|
|
||||||
|
if get_option('savers').contains('all') == true
|
||||||
|
all_savers = true
|
||||||
|
endif
|
||||||
|
|
||||||
|
if all_savers or get_option('savers').contains('tvg') == true
|
||||||
config_h.set10('THORVG_TVG_SAVER_SUPPORT', true)
|
config_h.set10('THORVG_TVG_SAVER_SUPPORT', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#Vectorization
|
||||||
simd_type = 'none'
|
simd_type = 'none'
|
||||||
|
|
||||||
if get_option('vector') == true
|
if get_option('vector') == true
|
||||||
|
@ -59,15 +69,17 @@ if get_option('vector') == true
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#Bindings
|
||||||
if get_option('bindings').contains('capi') == true
|
if get_option('bindings').contains('capi') == true
|
||||||
config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
|
config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#Log
|
||||||
if get_option('log') == true
|
if get_option('log') == true
|
||||||
config_h.set10('THORVG_LOG_ENABLED', true)
|
config_h.set10('THORVG_LOG_ENABLED', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#Tools
|
||||||
all_tools = false
|
all_tools = false
|
||||||
|
|
||||||
if get_option('tools').contains('all') == true
|
if get_option('tools').contains('all') == true
|
||||||
|
@ -121,7 +133,7 @@ Summary:
|
||||||
all_loaders or get_option('loaders').contains('svg'),
|
all_loaders or get_option('loaders').contains('svg'),
|
||||||
all_loaders or get_option('loaders').contains('png'),
|
all_loaders or get_option('loaders').contains('png'),
|
||||||
all_loaders or get_option('loaders').contains('jpg'),
|
all_loaders or get_option('loaders').contains('jpg'),
|
||||||
get_option('savers').contains('tvg'),
|
all_savers or get_option('savers').contains('tvg'),
|
||||||
get_option('bindings').contains('capi'),
|
get_option('bindings').contains('capi'),
|
||||||
get_option('log'),
|
get_option('log'),
|
||||||
get_option('tests'),
|
get_option('tests'),
|
||||||
|
|
|
@ -12,7 +12,7 @@ option('loaders',
|
||||||
|
|
||||||
option('savers',
|
option('savers',
|
||||||
type: 'array',
|
type: 'array',
|
||||||
choices: ['', 'tvg'],
|
choices: ['', 'tvg', 'all'],
|
||||||
value: [''],
|
value: [''],
|
||||||
description: 'Enable File Savers in thorvg')
|
description: 'Enable File Savers in thorvg')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
subsaver_dep = []
|
subsaver_dep = []
|
||||||
|
|
||||||
if get_option('savers').contains('tvg') == true
|
if all_savers or get_option('savers').contains('tvg') == true
|
||||||
subdir('tvg')
|
subdir('tvg')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue