examples: move tests to src/examples
[platform/core/graphics/tizenvg.git] / meson.build
1 project('thorvg',
2         'cpp',
3         default_options : ['buildtype=debugoptimized', 'werror=false', 'optimization=s'],
4         version : '0.1.0',
5         license : 'MIT')
6
7 config_h = configuration_data()
8
9 add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/svgs"'.format(meson.current_source_dir()), language : 'cpp')
10
11 if get_option('engines').contains('sw') == true
12     config_h.set10('THORVG_SW_RASTER_SUPPORT', true)
13 endif
14
15 if get_option('engines').contains('gl') == true
16     config_h.set10('THORVG_GL_RASTER_SUPPORT', true)
17 endif
18
19 if get_option('loaders').contains('svg') == true
20     config_h.set10('THORVG_SVG_LOADER_SUPPORT', true)
21 endif
22
23 if get_option('vectors').contains('avx') == true
24     config_h.set10('THORVG_AVX_VECTOR_SUPPORT', true)
25 endif
26
27 if get_option('bindings').contains('capi') == true
28     config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
29 endif
30
31 configure_file(
32     output: 'config.h',
33     configuration: config_h
34 )
35
36 headers = [include_directories('inc'), include_directories('.')]
37
38 subdir('inc')
39 subdir('src')
40
41 summary = '''
42
43 Summary:
44     thorvg version :        @0@
45     Build type      :       @1@
46     Prefix          :       @2@
47 '''.format(
48         meson.project_version(),
49         get_option('buildtype'),
50         get_option('prefix'),
51     )
52
53 message(summary)