evas vector: support json loader for rlottie integration.
Summary:
Introduce a new evas json loader to support lottie animation.
This json loader uses rlottie library which is a new github open project.
These days most ui frameworks (windowpws, skia, qt, xamarin, react, nativescript) supports lottie,
the rlottie was designed to support lottie as a standalone library and compatible with efl as well.
To enable this,please install rlottie library then remove json disabler in meson_options.txt
For more information, See lottie/rlottie project and its a introdcution article:
https://airbnb.io/lottie/#/
https://github.com/samsung/rlottie
https://hermet.pe.kr/143
Co-authored-by: JunsuChoi <jsuya.choi@samsung.com>
{D8941}
{D8944}
Reviewers: #committers, jsuya, bu5hm4n
Subscribers: bu5hm4n, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8940
2019-06-21 01:30:19 -07:00
|
|
|
evas_vg_loaders_file = [
|
|
|
|
['eet', [eet]],
|
|
|
|
['json', [json]],
|
|
|
|
['svg', []],
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach loader_inst : evas_vg_loaders_file
|
|
|
|
loader = loader_inst[0]
|
|
|
|
loader_deps = loader_inst[1]
|
|
|
|
|
|
|
|
if (get_option('evas-loaders-disabler').contains(loader) == false)
|
|
|
|
file = join_paths(loader, 'evas_vg_load_'+loader+'.c')
|
|
|
|
|
|
|
|
static_library('vg_loader_'+loader, file,
|
|
|
|
include_directories : config_dir,
|
|
|
|
dependencies : [evas_pre] + loader_deps
|
|
|
|
)
|
|
|
|
|
|
|
|
evas_static_list += [declare_dependency(
|
|
|
|
sources: file,
|
|
|
|
dependencies: loader_deps,
|
|
|
|
)]
|
|
|
|
|
|
|
|
config_h.set('EVAS_STATIC_BUILD_VG_'+loader.to_upper(), '1')
|
|
|
|
endif
|
2018-08-12 06:26:29 -07:00
|
|
|
endforeach
|