3 default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=gnu++14'],
7 config_h = configuration_data()
9 add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/images"'.format(meson.current_source_dir()),
10 '-DTEST_DIR="@0@/test/images"'.format(meson.current_source_dir()),
13 config_h.set_quoted('THORVG_VERSION_STRING', meson.project_version())
15 if get_option('engines').contains('sw') == true
16 config_h.set10('THORVG_SW_RASTER_SUPPORT', true)
19 if get_option('engines').contains('gl') == true
20 config_h.set10('THORVG_GL_RASTER_SUPPORT', true)
23 if get_option('loaders').contains('svg') == true
24 config_h.set10('THORVG_SVG_LOADER_SUPPORT', true)
27 if get_option('loaders').contains('tvg') == true
28 config_h.set10('THORVG_TVG_LOADER_SUPPORT', true)
31 if get_option('loaders').contains('png') == true
32 config_h.set10('THORVG_PNG_LOADER_SUPPORT', true)
35 if get_option('loaders').contains('jpg') == true
36 config_h.set10('THORVG_JPG_LOADER_SUPPORT', true)
39 if get_option('savers').contains('tvg') == true
40 config_h.set10('THORVG_TVG_SAVER_SUPPORT', true)
45 if get_option('vector') == true
46 if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64'
47 config_h.set10('THORVG_AVX_VECTOR_SUPPORT', true)
49 elif host_machine.cpu_family() == 'arm'
50 config_h.set10('THORVG_NEON_VECTOR_SUPPORT', true)
55 if get_option('bindings').contains('capi') == true
56 config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
59 if get_option('log') == true
60 config_h.set10('THORVG_LOG_ENABLED', true)
65 configuration: config_h
68 headers = [include_directories('inc'), include_directories('.')]
73 if get_option('tests') == true
84 Raster Engine (SW): @4@
85 Raster Engine (GL): @5@
99 meson.project_version(),
100 get_option('buildtype'),
101 get_option('prefix'),
103 get_option('engines').contains('sw'),
104 get_option('engines').contains('gl'),
105 get_option('loaders').contains('tvg'),
106 get_option('loaders').contains('svg'),
107 get_option('loaders').contains('png'),
108 get_option('loaders').contains('jpg'),
109 get_option('savers').contains('tvg'),
110 get_option('bindings').contains('capi'),
113 get_option('examples'),
114 get_option('tools').contains('svg2tvg'),
115 get_option('tools').contains('svg2png'),