3 default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s'],
7 config_h = configuration_data()
9 add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/images"'.format(meson.current_source_dir()), language : 'cpp')
11 if get_option('engines').contains('sw') == true
12 config_h.set10('THORVG_SW_RASTER_SUPPORT', true)
15 if get_option('engines').contains('gl') == true
16 config_h.set10('THORVG_GL_RASTER_SUPPORT', true)
19 if get_option('loaders').contains('svg') == true
20 config_h.set10('THORVG_SVG_LOADER_SUPPORT', true)
23 if get_option('loaders').contains('tvg') == true
24 config_h.set10('THORVG_TVG_LOADER_SUPPORT', true)
27 if get_option('loaders').contains('png') == true
28 config_h.set10('THORVG_PNG_LOADER_SUPPORT', true)
31 if get_option('vectors').contains('avx') == true
32 config_h.set10('THORVG_AVX_VECTOR_SUPPORT', true)
35 if get_option('bindings').contains('capi') == true
36 config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
39 if get_option('log') == true
40 config_h.set10('THORVG_LOG_ENABLED', true)
46 configuration: config_h
49 headers = [include_directories('inc'), include_directories('.')]
54 if get_option('tests') == true
67 meson.project_version(),
68 get_option('buildtype'),
71 get_option('examples'),