thorvg/src/loaders/meson.build
JunsuChoi 590381f68b infra meson: Add -Dstatic option
Add an option for use in environments where
the use of static libraries must be enforced.
2021-11-02 13:14:16 +09:00

38 lines
833 B
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('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
subdir('raw')
loader_dep = declare_dependency(
dependencies: subloader_dep,
include_directories : include_directories('.'),
)