mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-19 14:31:39 +00:00

Built to libwebp code in to support the static option of webp loader. Code from :https://github.com/jacklicn/libwebp This forking version only contains the minimal webp decoding feature. Binary Size: +68kb Co-authored-by: Hermet Park <hermet@lottiefiles.com> issue: https://github.com/thorvg/thorvg/issues/1427
57 lines
1.2 KiB
Meson
57 lines
1.2 KiB
Meson
subloader_dep = []
|
|
|
|
if all_loaders or get_option('loaders').contains('tvg') == true
|
|
subdir('tvg')
|
|
endif
|
|
|
|
if all_loaders or get_option('loaders').contains('svg') == true
|
|
subdir('svg')
|
|
endif
|
|
|
|
if all_loaders or get_option('loaders').contains('ttf') == true
|
|
subdir('ttf')
|
|
endif
|
|
|
|
if all_loaders or get_option('loaders').contains('lottie') == true
|
|
subdir('lottie')
|
|
endif
|
|
|
|
if all_loaders or get_option('loaders').contains('png') == true
|
|
if get_option('static') == true
|
|
subdir('png')
|
|
else
|
|
subdir('external_png')
|
|
if not png_dep.found()
|
|
subdir('png')
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
if all_loaders or get_option('loaders').contains('jpg') == true
|
|
if get_option('static') == true
|
|
subdir('jpg')
|
|
else
|
|
subdir('external_jpg')
|
|
if not jpg_dep.found()
|
|
subdir('jpg')
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
if all_loaders or get_option('loaders').contains('webp') == true
|
|
if get_option('static') == true
|
|
subdir('webp')
|
|
else
|
|
subdir('external_webp')
|
|
if not webp_dep.found()
|
|
subdir('webp')
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
subdir('raw')
|
|
|
|
loader_dep = declare_dependency(
|
|
dependencies: subloader_dep,
|
|
include_directories : include_directories('.'),
|
|
)
|