thorvg/test/meson.build
Elliott Sales de Andrade ee19753f36 build: Remove redundant comparisons
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.
2024-09-30 16:44:21 +09:00

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