thorvg/src/loaders/meson.build
Elliott Sales de Andrade 5f08b9ade4 build: Remove redundant comparisons
If a Meson option is typed as `boolean`, the `get_option` returns a
boolean, and comparing it with `true` is redundant. Meson also errors if
you try to compare across types, so it couldn't _not_ be a boolean.

Also, Meson is not C, so no need for parentheses around `if` conditions.
2024-08-19 17:42:40 +09:00

57 lines
898 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')
subdir('png')
else
subdir('external_png')
if not png_dep.found()
subdir('png')
endif
endif
endif
if jpg_loader
if get_option('static')
subdir('jpg')
else
subdir('external_jpg')
if not jpg_dep.found()
subdir('jpg')
endif
endif
endif
if webp_loader
if get_option('static')
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('.'),
)