mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00

examples are not considered a feature of ThorVG; hence, they are excluded from the src directory. This change allows developers to concentrate more effectively on the core ThorVG sources for practical usages.
96 lines
2.3 KiB
Meson
96 lines
2.3 KiB
Meson
if (lib_type == 'static')
|
|
compiler_flags += ['-DTVG_STATIC']
|
|
endif
|
|
|
|
examples_dep = dependency('elementary', required : true)
|
|
|
|
source_file = [
|
|
'Accessor.cpp',
|
|
'AnimateMasking.cpp',
|
|
'Animation.cpp',
|
|
'Arc.cpp',
|
|
'Blending.cpp',
|
|
'ClipPath.cpp',
|
|
'CustomTransform.cpp',
|
|
'DataLoad.cpp',
|
|
'DirectUpdate.cpp',
|
|
'Duplicate.cpp',
|
|
'FillRule.cpp',
|
|
'GifSaver.cpp',
|
|
'GradientMasking.cpp',
|
|
'GradientStroke.cpp',
|
|
'GradientTransform.cpp',
|
|
'ImageScaleDown.cpp',
|
|
'ImageScaleUp.cpp',
|
|
'InvLumaMasking.cpp',
|
|
'InvMasking.cpp',
|
|
'LinearGradient.cpp',
|
|
'Lottie.cpp',
|
|
'LumaMasking.cpp',
|
|
'Masking.cpp',
|
|
'MaskingMethods.cpp',
|
|
'MultiCanvas.cpp',
|
|
'MultiShapes.cpp',
|
|
'Opacity.cpp',
|
|
'PathCopy.cpp',
|
|
'Path.cpp',
|
|
'Performance.cpp',
|
|
'PictureJpg.cpp',
|
|
'PicturePng.cpp',
|
|
'PictureRaw.cpp',
|
|
'PictureSvg.cpp',
|
|
'PictureTvg.cpp',
|
|
'PictureWebp.cpp',
|
|
'RadialGradient.cpp',
|
|
'Retaining.cpp',
|
|
'Scene.cpp',
|
|
'SceneBlending.cpp',
|
|
'SceneClipper.cpp',
|
|
'SceneTransform.cpp',
|
|
'Shape.cpp',
|
|
'Stroke.cpp',
|
|
'StrokeLine.cpp',
|
|
'StrokeMiterlimit.cpp',
|
|
'Svg.cpp',
|
|
'Texmap.cpp',
|
|
'Text.cpp',
|
|
'Transform.cpp',
|
|
'Tvg.cpp',
|
|
'TvgSaver.cpp',
|
|
'Update.cpp',
|
|
]
|
|
|
|
|
|
if get_option('loaders').contains('all') == true or get_option('loaders').contains('lottie') == true
|
|
source_file += 'LottieExtension.cpp'
|
|
endif
|
|
|
|
|
|
foreach current_file : source_file
|
|
name = current_file.split('.')[0]
|
|
executable(name, current_file,
|
|
include_directories : headers,
|
|
link_with : thorvg_lib,
|
|
cpp_args : compiler_flags,
|
|
dependencies : examples_dep)
|
|
endforeach
|
|
|
|
|
|
if get_option('bindings').contains('capi') == true
|
|
capi_source_file = [
|
|
'Capi.cpp'
|
|
]
|
|
|
|
foreach current_file : capi_source_file
|
|
name = current_file.split('.')[0]
|
|
executable(name, current_file,
|
|
include_directories : headers,
|
|
link_with : thorvg_lib,
|
|
cpp_args : compiler_flags,
|
|
dependencies : examples_dep)
|
|
endforeach
|
|
endif
|
|
|
|
execute_all_src = join_paths(meson.source_root(), 'examples/all.sh')
|
|
execute_all_dst = join_paths(meson.build_root(), 'examples/all.sh')
|
|
run_command('cp', execute_all_src, execute_all_dst, check: true)
|