mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-22 16:03:25 +00:00
build: Use Meson-provided summaries
Some checks failed
Android / build_x86_64 (push) Has been cancelled
Android / build_aarch64 (push) Has been cancelled
iOS / build_x86_64 (push) Has been cancelled
iOS / build_arm64 (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS / compact_test (push) Has been cancelled
macOS / unit_test (push) Has been cancelled
Ubuntu / build (push) Has been cancelled
Ubuntu / compact_test (push) Has been cancelled
Ubuntu / unit_test (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows / compact_test (push) Has been cancelled
Windows / unit_test (push) Has been cancelled
Some checks failed
Android / build_x86_64 (push) Has been cancelled
Android / build_aarch64 (push) Has been cancelled
iOS / build_x86_64 (push) Has been cancelled
iOS / build_arm64 (push) Has been cancelled
macOS / build (push) Has been cancelled
macOS / compact_test (push) Has been cancelled
macOS / unit_test (push) Has been cancelled
Ubuntu / build (push) Has been cancelled
Ubuntu / compact_test (push) Has been cancelled
Ubuntu / unit_test (push) Has been cancelled
Windows / build (push) Has been cancelled
Windows / compact_test (push) Has been cancelled
Windows / unit_test (push) Has been cancelled
Meson has provided a summary function since 0.53.0, so there's no need to generate a summary message manually. The Meson function also has support for separate sections and styled output for booleans.
This commit is contained in:
parent
2679880bc3
commit
e69f44c354
1 changed files with 67 additions and 53 deletions
120
meson.build
120
meson.build
|
@ -166,59 +166,73 @@ if get_option('tests')
|
||||||
subdir('test')
|
subdir('test')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
summary = '''
|
summary(
|
||||||
|
{
|
||||||
|
'Build Type': get_option('buildtype'),
|
||||||
|
'Prefix': get_option('prefix'),
|
||||||
|
'Multi-Tasking': get_option('threads'),
|
||||||
|
'SIMD Instruction': simd_type,
|
||||||
|
'Log Message': get_option('log'),
|
||||||
|
'Tests': get_option('tests'),
|
||||||
|
'Examples': get_option('examples'),
|
||||||
|
},
|
||||||
|
bool_yn: true,
|
||||||
|
)
|
||||||
|
|
||||||
Summary:
|
summary(
|
||||||
ThorVG version: @0@
|
{
|
||||||
Build Type: @1@
|
'SW': sw_engine,
|
||||||
Prefix: @2@
|
'GL': gl_engine,
|
||||||
Multi-Tasking: @3@
|
'WG': wg_engine,
|
||||||
SIMD Instruction: @4@
|
},
|
||||||
Raster Engine (SW): @5@
|
section: 'Raster Engine',
|
||||||
Raster Engine (GL): @6@
|
bool_yn: true,
|
||||||
Raster Engine (WG): @7@
|
)
|
||||||
Loader (SVG): @8@
|
|
||||||
Loader (TTF): @9@
|
|
||||||
Loader (LOTTIE): @10@
|
|
||||||
Loader (PNG): @11@
|
|
||||||
Loader (JPG): @12@
|
|
||||||
Loader (WEBP): @13@
|
|
||||||
Saver (GIF): @14@
|
|
||||||
Binding (CAPI): @15@
|
|
||||||
Binding (WASM_BETA): @16@
|
|
||||||
Log Message: @17@
|
|
||||||
Tests: @18@
|
|
||||||
Examples: @19@
|
|
||||||
Tool (Svg2Png): @20@
|
|
||||||
Tool (Lottie2Gif): @21@
|
|
||||||
Extra (Lottie Expressions): @22@
|
|
||||||
Extra (OpenGL Variant): @23@
|
|
||||||
|
|
||||||
'''.format(
|
summary(
|
||||||
meson.project_version(),
|
{
|
||||||
get_option('buildtype'),
|
'SVG': svg_loader,
|
||||||
get_option('prefix'),
|
'TTF': ttf_loader,
|
||||||
get_option('threads'),
|
'LOTTIE': lottie_loader,
|
||||||
simd_type,
|
'PNG': png_loader,
|
||||||
sw_engine,
|
'JPG': jpg_loader,
|
||||||
gl_engine,
|
'WEBP': webp_loader,
|
||||||
wg_engine,
|
},
|
||||||
svg_loader,
|
section: 'Loader',
|
||||||
ttf_loader,
|
bool_yn: true,
|
||||||
lottie_loader,
|
)
|
||||||
png_loader,
|
|
||||||
jpg_loader,
|
|
||||||
webp_loader,
|
|
||||||
gif_saver,
|
|
||||||
get_option('bindings').contains('capi'),
|
|
||||||
get_option('bindings').contains('wasm_beta'),
|
|
||||||
get_option('log'),
|
|
||||||
get_option('tests'),
|
|
||||||
get_option('examples'),
|
|
||||||
svg2png,
|
|
||||||
lottie2gif,
|
|
||||||
lottie_expressions,
|
|
||||||
gl_variant
|
|
||||||
)
|
|
||||||
|
|
||||||
message(summary)
|
summary(
|
||||||
|
{
|
||||||
|
'GIF': gif_saver,
|
||||||
|
},
|
||||||
|
section: 'Saver',
|
||||||
|
bool_yn: true,
|
||||||
|
)
|
||||||
|
|
||||||
|
summary(
|
||||||
|
{
|
||||||
|
'CAPI': get_option('bindings').contains('capi'),
|
||||||
|
'WASM_BETA': get_option('bindings').contains('wasm_beta'),
|
||||||
|
},
|
||||||
|
section: 'Binding',
|
||||||
|
bool_yn: true,
|
||||||
|
)
|
||||||
|
|
||||||
|
summary(
|
||||||
|
{
|
||||||
|
'Svg2Png': svg2png,
|
||||||
|
'Lottie2Gif': lottie2gif,
|
||||||
|
},
|
||||||
|
section: 'Tool',
|
||||||
|
bool_yn: true,
|
||||||
|
)
|
||||||
|
|
||||||
|
summary(
|
||||||
|
{
|
||||||
|
'Lottie Expressions': lottie_expressions,
|
||||||
|
'OpenGL Variant': gl_variant,
|
||||||
|
},
|
||||||
|
section: 'Extra',
|
||||||
|
bool_yn: true,
|
||||||
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue