mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +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.
32 lines
662 B
Meson
32 lines
662 B
Meson
if lib_type == 'static'
|
|
compiler_flags += ['-DTVG_STATIC']
|
|
endif
|
|
|
|
test_file = [
|
|
'testAccessor.cpp',
|
|
'testAnimation.cpp',
|
|
'testFill.cpp',
|
|
'testInitializer.cpp',
|
|
'testLottie.cpp',
|
|
'testMain.cpp',
|
|
'testPaint.cpp',
|
|
'testPicture.cpp',
|
|
'testSavers.cpp',
|
|
'testScene.cpp',
|
|
'testShape.cpp',
|
|
'testSwCanvas.cpp',
|
|
'testSwEngine.cpp',
|
|
'testText.cpp'
|
|
]
|
|
|
|
tests = executable('tvgUnitTests',
|
|
test_file,
|
|
include_directories : headers,
|
|
link_with : thorvg_lib,
|
|
cpp_args : compiler_flags)
|
|
|
|
test('Unit Tests', tests, args : ['--success'])
|
|
|
|
if get_option('bindings').contains('capi')
|
|
subdir('capi')
|
|
endif
|