infra: print enabled features in the meson summary list.

instead removed individual messages.
This commit is contained in:
Hermet Park 2021-07-03 14:58:17 +09:00
parent 99263d54d1
commit 8d31496648
6 changed files with 24 additions and 15 deletions

View file

@ -38,7 +38,6 @@ endif
if get_option('log') == true if get_option('log') == true
config_h.set10('THORVG_LOG_ENABLED', true) config_h.set10('THORVG_LOG_ENABLED', true)
message('Enable Log')
endif endif
configure_file( configure_file(
@ -58,17 +57,36 @@ endif
summary = ''' summary = '''
Summary: Summary:
ThorVG version : @0@ ThorVG version: @0@
Build Type : @1@ Build Type: @1@
Prefix : @2@ Prefix: @2@
Tests : @3@ Raster Engine (SW): @3@
Examples : @4@ Raster Engine (GL): @4@
AVX SIMD Instruction: @5@
Loader (TVG): @6@
Loader (SVG): @7@
Loader (PNG): @8@
CAPI Binding: @9@
Log Message: @10@
Tests: @11@
Examples: @12@
Tool (Svg2Png): @13@
'''.format( '''.format(
meson.project_version(), meson.project_version(),
get_option('buildtype'), get_option('buildtype'),
get_option('prefix'), get_option('prefix'),
get_option('engines').contains('sw'),
get_option('engines').contains('gl'),
get_option('vectors').contains('avx'),
get_option('loaders').contains('tvg'),
get_option('loaders').contains('svg'),
get_option('loaders').contains('png'),
get_option('bindings').contains('capi'),
get_option('log'),
get_option('tests'), get_option('tests'),
get_option('examples'), get_option('examples'),
get_option('tools').contains('svg2png'),
) )
message(summary) message(summary)

View file

@ -1,5 +1,4 @@
if get_option('tools').contains('svg2png') == true if get_option('tools').contains('svg2png') == true
message('Enable Tools: svg2png')
subdir('svg2png') subdir('svg2png')
endif endif

View file

@ -2,7 +2,6 @@ subbinding_dep = []
if get_option('bindings').contains('capi') == true if get_option('bindings').contains('capi') == true
subdir('capi') subdir('capi')
message('Enable CAPI Bindings')
endif endif
binding_dep = declare_dependency( binding_dep = declare_dependency(

View file

@ -2,12 +2,10 @@ engine_dep = []
if get_option('engines').contains('sw') == true if get_option('engines').contains('sw') == true
subdir('sw_engine') subdir('sw_engine')
message('Enable SW Raster Engine')
endif endif
if get_option('engines').contains('gl') == true if get_option('engines').contains('gl') == true
subdir('gl_engine') subdir('gl_engine')
message('Enable GL Raster Engine')
endif endif
source_file = [ source_file = [

View file

@ -2,17 +2,14 @@ subloader_dep = []
if get_option('loaders').contains('svg') == true if get_option('loaders').contains('svg') == true
subdir('svg') subdir('svg')
message('Enable SVG Loader')
endif endif
if get_option('loaders').contains('png') == true if get_option('loaders').contains('png') == true
subdir('png') subdir('png')
message('Enable PNG Loader')
endif endif
if get_option('loaders').contains('tvg') == true if get_option('loaders').contains('tvg') == true
subdir('tvg') subdir('tvg')
message('Enable TVG Loader')
endif endif
subdir('raw') subdir('raw')

View file

@ -4,7 +4,6 @@ cc = meson.get_compiler('cpp')
if (cc.get_id() != 'msvc') if (cc.get_id() != 'msvc')
if get_option('vectors').contains('avx') if get_option('vectors').contains('avx')
compiler_flags += ['-mavx'] compiler_flags += ['-mavx']
message('Enable Advanced Vector Extension')
endif endif
if get_option('b_sanitize') == 'none' if get_option('b_sanitize') == 'none'
compiler_flags += ['-fno-exceptions', '-fno-rtti', compiler_flags += ['-fno-exceptions', '-fno-rtti',
@ -59,6 +58,5 @@ pkg_mod.generate(
subdir('bin') subdir('bin')
if get_option('examples') == true if get_option('examples') == true
message('Enable Examples')
subdir('examples') subdir('examples')
endif endif