Build: move 'partial_render' from extra options to a basic option.

+ added file io option to the summary
This commit is contained in:
Hermet Park 2025-06-23 17:35:38 +09:00 committed by Hermet Park
parent 9b2bbc496e
commit 1ac6f3d09f
2 changed files with 15 additions and 10 deletions

View file

@ -39,6 +39,11 @@ if all_engines or get_option('engines').contains('wg')
config_h.set10('THORVG_WG_RASTER_SUPPORT', true)
endif
#Partial Rendering
if get_option('partial')
config_h.set10('THORVG_PARTIAL_RENDER_SUPPORT', true)
endif
#Tools
all_tools = get_option('tools').contains('all')
lottie2gif = all_tools or get_option('tools').contains('lottie2gif')
@ -126,12 +131,6 @@ endif
#Extra
partial_render = get_option('extra').contains('partial_render')
if partial_render
config_h.set10('THORVG_PARTIAL_RENDER_SUPPORT', true)
endif
lottie_expressions = lottie_loader and get_option('extra').contains('lottie_expressions')
if lottie_expressions
@ -176,7 +175,9 @@ summary(
{
'Build Type': get_option('buildtype'),
'Prefix': get_option('prefix'),
'File I/O': get_option('file'),
'Multi-Tasking': get_option('threads'),
'Partial Rendering': get_option('partial'),
'SIMD Instruction': simd_type,
'Log Message': get_option('log'),
'Tests': get_option('tests'),
@ -236,7 +237,6 @@ summary(
summary(
{
'Partial Rendering': partial_render,
'Lottie Expressions': lottie_expressions,
'OpenGL Variant': gl_variant,
},

View file

@ -4,6 +4,11 @@ option('engines',
value: ['sw'],
description: 'Enable Rasterizer Engine in thorvg')
option('partial',
type: 'boolean',
value: true,
description: 'Enable Partial Rendering in thorvg')
option('loaders',
type: 'array',
choices: ['', 'svg', 'png', 'jpg', 'lottie', 'ttf', 'webp', 'all'],
@ -65,6 +70,6 @@ option('file',
option('extra',
type: 'array',
choices: ['', 'partial_render', 'opengl_es', 'lottie_expressions'],
value: ['partial_render', 'lottie_expressions'],
description: '"Enable support for extra options')
choices: ['', 'opengl_es', 'lottie_expressions'],
value: ['lottie_expressions'],
description: 'Enable support for extra options')