common: revise transform interfaces.
[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 : 'Apache-2.0')
6
7 config_h = configuration_data()
8
9 if get_option('engines').contains('sw') == true
10     config_h.set10('THORVG_SW_RASTER_SUPPORT', true)
11 endif
12
13 if get_option('engines').contains('gl') == true
14     config_h.set10('THORVG_GL_RASTER_SUPPORT', true)
15 endif
16
17 if get_option('loaders').contains('svg') == true
18     config_h.set10('THORVG_SVG_LOADER_SUPPORT', true)
19 endif
20
21 if get_option('vectors').contains('avx') == true
22     config_h.set10('THORVG_AVX_VECTOR_SUPPORT', true)
23 endif
24
25 if get_option('bindings').contains('capi') == true
26     config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
27 endif
28
29 configure_file(
30     output: 'config.h',
31     configuration: config_h
32 )
33
34 headers = [include_directories('inc'), include_directories('.')]
35
36 subdir('inc')
37 subdir('src')
38
39 summary = '''
40
41 Summary:
42     thorvg version :        @0@
43     Build type      :       @1@
44     Prefix          :       @2@
45 '''.format(
46         meson.project_version(),
47         get_option('buildtype'),
48         get_option('prefix'),
49     )
50
51 message(summary)