mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
33 lines
700 B
Meson
33 lines
700 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',
|
|
'testSwCanvasBase.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') == true
|
|
subdir('capi')
|
|
endif
|