executable('demo',
demo_sources,
include_directories : inc,
- link_with : lottie_player_lib,
+ link_with : rlottie_lib,
dependencies : demo_dep)
lottieview_test_src = files('lottieviewtest.cpp')
executable('lottieviewTest',
lottieview_test_src,
include_directories : inc,
- link_with : lottie_player_lib,
+ link_with : rlottie_lib,
dependencies : demo_dep)
uxsample_test_src = files('uxsampletest.cpp')
executable('uxsampleTest',
uxsample_test_src,
include_directories : inc,
- link_with : lottie_player_lib,
+ link_with : rlottie_lib,
dependencies : demo_dep)
lottieviewer_sources = files('lottieviewer.cpp')
executable('lottieviewer',
lottieviewer_sources,
include_directories : inc,
- link_with : lottie_player_lib,
+ link_with : rlottie_lib,
dependencies : demo_dep)
if (meson.get_compiler('cpp').has_header('elementary-1/elm_animation_view.h'))
executable('efl_animview',
'efl_animview.cpp',
include_directories : inc,
- link_with : lottie_player_lib,
+ link_with : rlottie_lib,
dependencies : demo_dep)
endif
-project('lottie-player library',
+project('rlottie library',
'cpp',
license : 'Apache')
-lottie_player_lib_version = '0.0.1'
+rlottie_lib_version = '0.0.1'
add_global_arguments('-DDEMO_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp')
pkg_mod = import('pkgconfig')
-pkg_mod.generate( libraries : lottie_player_lib,
- version : lottie_player_lib_version,
- name : 'liblottie-player',
- filebase : 'lottie-player',
+pkg_mod.generate( libraries : rlottie_lib,
+ version : rlottie_lib_version,
+ name : 'librlottie',
+ filebase : 'rlottie',
description : 'A Library for rendering lottie files.'
)
library_deps += lottie_dep
library_deps += binding_dep
-lottie_player_lib = shared_library( 'lottie-player',
- include_directories : inc,
- version : lottie_player_lib_version,
- dependencies : library_deps,
- install : true
- )
+rlottie_lib = shared_library('rlottie',
+ include_directories : inc,
+ version : rlottie_lib_version,
+ dependencies : library_deps,
+ install : true
+ )
-lottie_image_loader_sources = ['stb_image.cpp']
+rlottie_image_loader_sources = ['stb_image.cpp']
-lottie_image_loader_lib = shared_library( 'lottie-image-loader',
- lottie_image_loader_sources,
- install : true)
+rlottie_image_loader_lib = shared_library('rlottie-image-loader',
+ rlottie_image_loader_sources,
+ install : true
+ )
Impl()
{
#ifdef __APPLE__
- dl_handle = dlopen("liblottie-image-loader.dylib", RTLD_LAZY);
+ dl_handle = dlopen("librlottie-image-loader.dylib", RTLD_LAZY);
#else
- dl_handle = dlopen("liblottie-image-loader.so", RTLD_LAZY);
+ dl_handle = dlopen("librlottie-image-loader.so", RTLD_LAZY);
#endif
if (!dl_handle)
- vWarning<<"Failed to dlopen liblottie-image-loader library";
+ vWarning<<"Failed to dlopen librlottie-image-loader library";
lottie_image_load = (lottie_image_load_f) dlsym(dl_handle, "lottie_image_load");
if (!lottie_image_load)
- vWarning<<"Failed to find symbol lottie_image_load in liblottie-image-loader library";
+ vWarning<<"Failed to find symbol lottie_image_load in librlottie-image-loader library";
lottie_image_free = (lottie_image_free_f) dlsym(dl_handle, "lottie_image_free");
if (!lottie_image_free)
- vWarning<<"Failed to find symbol lottie_image_free in liblottie-image-loader library";
+ vWarning<<"Failed to find symbol lottie_image_free in librlottie-image-loader library";
}
~Impl()
{
animation_testsuite = executable('animationTestSuite',
animation_test_sources,
include_directories : inc,
- link_with : lottie_player_lib,
+ link_with : rlottie_lib,
dependencies : gtest_dep)
test('Animation Testsuite', animation_testsuite)