lottie: updated library dependancy to c++14
[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++14', '-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 if get_option('example') == true
24     subdir('example')
25 endif
26
27 if get_option('test') == true
28    subdir('test')
29 endif
30
31 pkg_mod = import('pkgconfig')
32
33 pkg_mod.generate( libraries   : lottie_player_lib,
34                   version     : lottie_player_lib_version,
35                   name        : 'liblottie-player',
36                   filebase    : 'lottie-player',
37                   description : 'A Library for rendering lottie files.'
38                 )