mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
infra: add "all" option for tools.
just for developer convenience.
This commit is contained in:
parent
95430fc645
commit
f4d284df2a
3 changed files with 13 additions and 5 deletions
12
meson.build
12
meson.build
|
@ -67,6 +67,14 @@ if get_option('log') == true
|
|||
config_h.set10('THORVG_LOG_ENABLED', true)
|
||||
endif
|
||||
|
||||
|
||||
all_tools = false
|
||||
|
||||
if get_option('tools').contains('all') == true
|
||||
all_tools = true
|
||||
endif
|
||||
|
||||
|
||||
configure_file(
|
||||
output: 'config.h',
|
||||
configuration: config_h
|
||||
|
@ -118,8 +126,8 @@ Summary:
|
|||
get_option('log'),
|
||||
get_option('tests'),
|
||||
get_option('examples'),
|
||||
get_option('tools').contains('svg2tvg'),
|
||||
get_option('tools').contains('svg2png'),
|
||||
all_tools or get_option('tools').contains('svg2tvg'),
|
||||
all_tools or get_option('tools').contains('svg2png'),
|
||||
)
|
||||
|
||||
message(summary)
|
||||
|
|
|
@ -29,7 +29,7 @@ option('bindings',
|
|||
|
||||
option('tools',
|
||||
type: 'array',
|
||||
choices: ['', 'svg2tvg', 'svg2png'],
|
||||
choices: ['', 'svg2tvg', 'svg2png', 'all'],
|
||||
value: [''],
|
||||
description: 'Enable building thorvg tools')
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
if get_option('tools').contains('svg2png') == true
|
||||
if all_tools or get_option('tools').contains('svg2png') == true
|
||||
subdir('svg2png')
|
||||
endif
|
||||
|
||||
if get_option('tools').contains('svg2tvg') == true
|
||||
if all_tools or get_option('tools').contains('svg2tvg') == true
|
||||
subdir('svg2tvg')
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue