lottie/vector: Added texture and transformation support in brush.
[platform/core/uifw/lottie-player.git] / meson.build
1 project('lottie-player library',
2         'cpp',
3         license : 'Apache')
4
5 lottie_player_lib_version = '0.0.1'
6
7 add_global_arguments('-DDEMO_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp')
8
9 compiler_flags = ['-Wall', '-O2', '-std=c++14', '-fvisibility=hidden']
10
11 if get_option('asan') == true
12     compiler_flags += ['-fsanitize=address']
13     add_global_link_arguments('-fsanitize=address', language: 'cpp')
14 endif
15
16 if get_option('msan') == true
17     compiler_flags += ['-fsanitize=memory']
18     add_global_link_arguments('-fsanitize=memory', language: 'cpp')
19 endif
20
21 if get_option('tsan') == true
22     compiler_flags += ['-fsanitize=thread']
23     add_global_link_arguments('-fsanitize=thread', language: 'cpp')
24 endif
25
26
27 if (build_machine.system() == 'linux')
28     compiler_flags += ['-pthread']
29     add_global_link_arguments('-pthread', language: 'cpp')
30 endif
31
32 add_global_arguments(compiler_flags, language: 'cpp')
33
34 inc = include_directories('inc')
35
36 subdir('inc')
37 subdir('src')
38
39 if get_option('example') == true
40     subdir('example')
41 endif
42
43 if get_option('test') == true
44    subdir('test')
45 endif
46
47 pkg_mod = import('pkgconfig')
48
49 pkg_mod.generate( libraries   : lottie_player_lib,
50                   version     : lottie_player_lib_version,
51                   name        : 'liblottie-player',
52                   filebase    : 'lottie-player',
53                   description : 'A Library for rendering lottie files.'
54                 )