mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 04:24:28 +00:00

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.
57 lines
898 B
Meson
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('.'),
|
|
)
|