thorvg/src/renderer/sw_engine/meson.build
Hermet Park 27f173faa3 sw_engine: applied OpenMP to improve post-processing performance.
- OpenMp threads will be allocated alongside the TaskSculeduler::threads()
- Performance improved by 2x in a specific animation.
- Disable the thread feature in the Android build test due to system issues with OpenMP compilation.
2024-09-29 15:04:22 +09:00

35 lines
No EOL
794 B
Meson

source_file = [
'tvgSwCommon.h',
'tvgSwRasterC.h',
'tvgSwRasterAvx.h',
'tvgSwRasterNeon.h',
'tvgSwRasterTexmap.h',
'tvgSwFill.cpp',
'tvgSwImage.cpp',
'tvgSwMath.cpp',
'tvgSwMemPool.cpp',
'tvgSwPostEffect.cpp',
'tvgSwRenderer.h',
'tvgSwRaster.cpp',
'tvgSwRenderer.cpp',
'tvgSwRle.cpp',
'tvgSwShape.cpp',
'tvgSwStroke.cpp',
]
omp_dep = []
sw_compiler_args = []
if (get_option('threads'))
omp_dep = dependency('openmp', required: false)
if (omp_dep.found())
sw_compiler_args = '-DTHORVG_SW_OPENMP_SUPPORT=1'
endif
endif
engine_dep += [declare_dependency(
compile_args : sw_compiler_args,
include_directories : include_directories('.'),
dependencies : omp_dep,
sources : source_file
)]