infra: move the examples folder outside of the source directory.
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.
|
@ -13,6 +13,6 @@
|
||||||
/src/loaders/webp/ @JSUYA
|
/src/loaders/webp/ @JSUYA
|
||||||
/src/savers/gif/ @JSUYA
|
/src/savers/gif/ @JSUYA
|
||||||
/src/tools/svg2png/ @JSUYA
|
/src/tools/svg2png/ @JSUYA
|
||||||
/src/examples/ @JSUYA @RuiwenTang @SergeyLebedkin @tinyjin @mgrudzinska
|
/examples/ @JSUYA @RuiwenTang @SergeyLebedkin @tinyjin @mgrudzinska
|
||||||
/test/* @JSUYA @RuiwenTang @SergeyLebedkin @tinyjin @mgrudzinska
|
/test/* @JSUYA @RuiwenTang @SergeyLebedkin @tinyjin @mgrudzinska
|
||||||
/web/* @tinyjin
|
/web/* @tinyjin
|
||||||
|
|
|
@ -172,7 +172,7 @@ void transitGlCb(Elm_Transit_Effect *effect, Elm_Transit* transit, double progre
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
tvg::CanvasEngine tvgEngine = tvg::CanvasEngine::Sw;
|
auto tvgEngine = tvg::CanvasEngine::Sw;
|
||||||
|
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
if (!strcmp(argv[1], "gl")) tvgEngine = tvg::CanvasEngine::Gl;
|
if (!strcmp(argv[1], "gl")) tvgEngine = tvg::CanvasEngine::Gl;
|
|
@ -91,6 +91,6 @@ if get_option('bindings').contains('capi') == true
|
||||||
endforeach
|
endforeach
|
||||||
endif
|
endif
|
||||||
|
|
||||||
execute_all_src = join_paths(meson.source_root(), 'src/examples/all.sh')
|
execute_all_src = join_paths(meson.source_root(), 'examples/all.sh')
|
||||||
execute_all_dst = join_paths(meson.build_root(), 'src/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)
|
run_command('cp', execute_all_src, execute_all_dst, check: true)
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 310 KiB After Width: | Height: | Size: 310 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 399 KiB After Width: | Height: | Size: 399 KiB |
Before Width: | Height: | Size: 450 KiB After Width: | Height: | Size: 450 KiB |
Before Width: | Height: | Size: 426 KiB After Width: | Height: | Size: 426 KiB |