lottie-player : Initial draft for lottie-player library
[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','-std=c++11', '-fvisibility=hidden']
10
11 if (build_machine.system() == 'linux')
12     compiler_flags += ['-pthread']
13     add_global_link_arguments('-pthread', language: 'cpp')
14 endif
15
16 add_global_arguments(compiler_flags, language: 'cpp')
17
18 inc = include_directories('inc')
19
20 subdir('inc')
21 subdir('src')
22
23 subdir('example')
24
25 if get_option('test') == true
26    subdir('test')
27 endif
28
29 pkg_mod = import('pkgconfig')
30
31 pkg_mod.generate( libraries   : lottie_player_lib,
32                   version     : lottie_player_lib_version,
33                   name        : 'liblottie-player',
34                   filebase    : 'lottie-player',
35                   description : 'A Library for rendering lottie files.'
36                 )