1 project('lottie-player library',
5 lottie_player_lib_version = '0.0.1'
7 add_global_arguments('-DDEMO_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp')
9 compiler_flags = ['-Wall', '-O2', '-std=c++14', '-fvisibility=hidden']
11 if get_option('asan') == true
12 compiler_flags += ['-fsanitize=address']
13 add_global_link_arguments('-fsanitize=address', language: 'cpp')
16 if get_option('msan') == true
17 compiler_flags += ['-fsanitize=memory']
18 add_global_link_arguments('-fsanitize=memory', language: 'cpp')
21 if get_option('tsan') == true
22 compiler_flags += ['-fsanitize=thread']
23 add_global_link_arguments('-fsanitize=thread', language: 'cpp')
27 if (build_machine.system() == 'linux')
28 compiler_flags += ['-pthread']
29 add_global_link_arguments('-pthread', language: 'cpp')
32 add_global_arguments(compiler_flags, language: 'cpp')
34 inc = include_directories('inc')
39 if get_option('example') == true
43 if get_option('test') == true
47 pkg_mod = import('pkgconfig')
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.'