mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00

The previous meson script was incomplete, therefore this change requires it to be revised. To enable static linking use the next meson option. "-Ddefault_library=static" Issue: https://github.com/thorvg/thorvg/issues/1234
28 lines
596 B
Meson
28 lines
596 B
Meson
compiler_flags = ['-DTVG_BUILD']
|
|
|
|
test_file = [
|
|
'testAccessor.cpp',
|
|
'testFill.cpp',
|
|
'testInitializer.cpp',
|
|
'testMain.cpp',
|
|
'testPaint.cpp',
|
|
'testPicture.cpp',
|
|
'testSavers.cpp',
|
|
'testScene.cpp',
|
|
'testShape.cpp',
|
|
'testSwCanvas.cpp',
|
|
'testSwCanvasBase.cpp',
|
|
'testSwEngine.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
|