mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-20 15:03:25 +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.
13 lines
491 B
Meson
13 lines
491 B
Meson
if cc.get_id() == 'emscripten'
|
|
source_file = files('tvgWasmLottieAnimation.cpp')
|
|
thorvg_wasm_dep = declare_dependency(include_directories
|
|
: include_directories('.'), sources
|
|
: source_file)
|
|
executable('thorvg-wasm',
|
|
[],
|
|
include_directories : headers,
|
|
dependencies : [thorvg_lib_dep, thorvg_wasm_dep],
|
|
)
|
|
else
|
|
message('wasm compiler is not the emscripten!')
|
|
endif
|