mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
to enable use meson -Dexample=true build while configuring meson. or meson configure -Dexample=true in the build directory. Change-Id: If267e6883fb866a741bf18dbfedd2a7782e21df5
39 lines
998 B
Meson
39 lines
998 B
Meson
project('lottie-player library',
|
|
'cpp',
|
|
license : 'Apache')
|
|
|
|
lottie_player_lib_version = '0.0.1'
|
|
|
|
add_global_arguments('-DDEMO_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp')
|
|
|
|
compiler_flags = ['-Wall','-std=c++11', '-fvisibility=hidden']
|
|
|
|
if (build_machine.system() == 'linux')
|
|
compiler_flags += ['-pthread']
|
|
add_global_link_arguments('-pthread', language: 'cpp')
|
|
endif
|
|
|
|
add_global_arguments(compiler_flags, language: 'cpp')
|
|
|
|
inc = include_directories('inc')
|
|
|
|
subdir('inc')
|
|
subdir('src')
|
|
|
|
if get_option('example') == true
|
|
subdir('example')
|
|
endif
|
|
|
|
if get_option('test') == true
|
|
subdir('test')
|
|
endif
|
|
|
|
pkg_mod = import('pkgconfig')
|
|
|
|
pkg_mod.generate( libraries : lottie_player_lib,
|
|
version : lottie_player_lib_version,
|
|
name : 'liblottie-player',
|
|
filebase : 'lottie-player',
|
|
description : 'A Library for rendering lottie files.'
|
|
)
|