fix build break.

regression by - 15b56a66de
This commit is contained in:
Hermet Park 2021-06-11 21:02:36 +09:00 committed by Hermet Park
parent 9453273fc8
commit 4795927dc1
2 changed files with 10 additions and 1 deletions

View file

@ -20,6 +20,10 @@ if get_option('loaders').contains('svg') == true
config_h.set10('THORVG_SVG_LOADER_SUPPORT', true) config_h.set10('THORVG_SVG_LOADER_SUPPORT', true)
endif endif
if get_option('loaders').contains('tvg') == true
config_h.set10('THORVG_TVG_LOADER_SUPPORT', true)
endif
if get_option('loaders').contains('png') == true if get_option('loaders').contains('png') == true
config_h.set10('THORVG_PNG_LOADER_SUPPORT', true) config_h.set10('THORVG_PNG_LOADER_SUPPORT', true)
endif endif

View file

@ -29,7 +29,10 @@
#include "tvgPngLoader.h" #include "tvgPngLoader.h"
#endif #endif
#include "tvgTvgLoader.h" #ifdef THORVG_TVG_LOADER_SUPPORT
#include "tvgTvgLoader.h"
#endif
#include "tvgRawLoader.h" #include "tvgRawLoader.h"
/************************************************************************/ /************************************************************************/
@ -56,7 +59,9 @@ static Loader* _find(FileType type)
break; break;
} }
case FileType::Tvg: { case FileType::Tvg: {
#ifdef THORVG_TVG_LOADER_SUPPORT
return new TvgLoader; return new TvgLoader;
#endif
break; break;
} }
default: { default: {