thorvg/meson.build
JunsuChoi 54816339ed svg_loader XmlParser: Print unsupported elements, attribute with log option
* Using printf is temporary. We are planning a proper way to print the log.
When parsing a Svg file, Loader print unsupported elements and attributes.
2020-12-15 14:07:38 +09:00

63 lines
1.5 KiB
Meson

project('thorvg',
'cpp',
default_options : ['buildtype=debugoptimized', 'werror=false', 'optimization=s'],
version : '0.1.0',
license : 'MIT')
config_h = configuration_data()
add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/images"'.format(meson.current_source_dir()), language : 'cpp')
if get_option('engines').contains('sw') == true
config_h.set10('THORVG_SW_RASTER_SUPPORT', true)
endif
if get_option('engines').contains('gl') == true
config_h.set10('THORVG_GL_RASTER_SUPPORT', true)
endif
if get_option('loaders').contains('svg') == true
config_h.set10('THORVG_SVG_LOADER_SUPPORT', true)
endif
if get_option('vectors').contains('avx') == true
config_h.set10('THORVG_AVX_VECTOR_SUPPORT', true)
endif
if get_option('bindings').contains('capi') == true
config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
endif
if get_option('log') == true
config_h.set10('THORVG_LOG_ENABLED', true)
endif
configure_file(
output: 'config.h',
configuration: config_h
)
headers = [include_directories('inc'), include_directories('.')]
subdir('inc')
subdir('src')
if get_option('test') == true
subdir('test')
endif
summary = '''
Summary:
thorvg version : @0@
Build type : @1@
Prefix : @2@
Test : @3@
'''.format(
meson.project_version(),
get_option('buildtype'),
get_option('prefix'),
get_option('test'),
)
message(summary)