mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +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.
15 lines
192 B
Meson
15 lines
192 B
Meson
if lib_type == 'static'
|
|
compiler_flags += ['-DTVG_STATIC']
|
|
endif
|
|
|
|
if svg2png
|
|
subdir('svg2png')
|
|
endif
|
|
|
|
if svg2tvg
|
|
subdir('svg2tvg')
|
|
endif
|
|
|
|
if lottie2gif
|
|
subdir('lottie2gif')
|
|
endif
|