thorvg/src/loaders/meson.build
Mira Grudzinska cc92865634 build: enforcing saver/loader usage for given tool
Selecting a tool without choosing the required tools
resulted in a usage error. Now, the activation
of the appropriate saver/loader for a given tool
is enforced.
2024-06-24 12:21:10 +09:00

57 lines
922 B
Meson

subloader_dep = []
if tvg_loader
subdir('tvg')
endif
if svg_loader
subdir('svg')
endif
if ttf_loader
subdir('ttf')
endif
if lottie_loader
subdir('lottie')
endif
if png_loader
if get_option('static') == true
subdir('png')
else
subdir('external_png')
if not png_dep.found()
subdir('png')
endif
endif
endif
if jpg_loader
if get_option('static') == true
subdir('jpg')
else
subdir('external_jpg')
if not jpg_dep.found()
subdir('jpg')
endif
endif
endif
if webp_loader
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('.'),
)