mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-20 06:52:03 +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.
7 lines
142 B
Meson
7 lines
142 B
Meson
if get_option('bindings').contains('capi')
|
|
subdir('capi')
|
|
endif
|
|
|
|
if get_option('bindings').contains('wasm_beta')
|
|
subdir('wasm')
|
|
endif
|