3 default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=c++14'],
7 config_h = configuration_data()
9 src_dir = '/'.join(meson.current_source_dir().split('\\'))
10 add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/images"'.format(src_dir),
11 '-DTEST_DIR="@0@/test/images"'.format(src_dir),
14 config_h.set_quoted('THORVG_VERSION_STRING', meson.project_version())
16 if get_option('engines').contains('sw') == true
17 config_h.set10('THORVG_SW_RASTER_SUPPORT', true)
20 if get_option('engines').contains('gl') == true
21 config_h.set10('THORVG_GL_RASTER_SUPPORT', true)
26 if get_option('loaders').contains('all') == true
30 if all_loaders or get_option('loaders').contains('svg') == true
31 config_h.set10('THORVG_SVG_LOADER_SUPPORT', true)
34 if all_loaders or get_option('loaders').contains('tvg') == true
35 config_h.set10('THORVG_TVG_LOADER_SUPPORT', true)
38 if all_loaders or get_option('loaders').contains('png') == true
39 config_h.set10('THORVG_PNG_LOADER_SUPPORT', true)
42 if all_loaders or get_option('loaders').contains('jpg') == true
43 config_h.set10('THORVG_JPG_LOADER_SUPPORT', true)
46 if get_option('savers').contains('tvg') == true
47 config_h.set10('THORVG_TVG_SAVER_SUPPORT', true)
52 if get_option('vector') == true
53 if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64'
54 config_h.set10('THORVG_AVX_VECTOR_SUPPORT', true)
56 elif host_machine.cpu_family() == 'arm'
57 config_h.set10('THORVG_NEON_VECTOR_SUPPORT', true)
62 if get_option('bindings').contains('capi') == true
63 config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
66 if get_option('log') == true
67 config_h.set10('THORVG_LOG_ENABLED', true)
73 if get_option('tools').contains('all') == true
80 configuration: config_h
83 headers = [include_directories('inc'), include_directories('.')]
88 if get_option('tests') == true
99 Raster Engine (SW): @4@
100 Raster Engine (GL): @5@
114 meson.project_version(),
115 get_option('buildtype'),
116 get_option('prefix'),
118 get_option('engines').contains('sw'),
119 get_option('engines').contains('gl'),
120 all_loaders or get_option('loaders').contains('tvg'),
121 all_loaders or get_option('loaders').contains('svg'),
122 all_loaders or get_option('loaders').contains('png'),
123 all_loaders or get_option('loaders').contains('jpg'),
124 get_option('savers').contains('tvg'),
125 get_option('bindings').contains('capi'),
128 get_option('examples'),
129 all_tools or get_option('tools').contains('svg2tvg'),
130 all_tools or get_option('tools').contains('svg2png'),