mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-24 00:43:56 +00:00
parent
9453273fc8
commit
4795927dc1
2 changed files with 10 additions and 1 deletions
|
@ -20,6 +20,10 @@ if get_option('loaders').contains('svg') == true
|
|||
config_h.set10('THORVG_SVG_LOADER_SUPPORT', true)
|
||||
endif
|
||||
|
||||
if get_option('loaders').contains('tvg') == true
|
||||
config_h.set10('THORVG_TVG_LOADER_SUPPORT', true)
|
||||
endif
|
||||
|
||||
if get_option('loaders').contains('png') == true
|
||||
config_h.set10('THORVG_PNG_LOADER_SUPPORT', true)
|
||||
endif
|
||||
|
|
|
@ -29,7 +29,10 @@
|
|||
#include "tvgPngLoader.h"
|
||||
#endif
|
||||
|
||||
#include "tvgTvgLoader.h"
|
||||
#ifdef THORVG_TVG_LOADER_SUPPORT
|
||||
#include "tvgTvgLoader.h"
|
||||
#endif
|
||||
|
||||
#include "tvgRawLoader.h"
|
||||
|
||||
/************************************************************************/
|
||||
|
@ -56,7 +59,9 @@ static Loader* _find(FileType type)
|
|||
break;
|
||||
}
|
||||
case FileType::Tvg: {
|
||||
#ifdef THORVG_TVG_LOADER_SUPPORT
|
||||
return new TvgLoader;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
|
Loading…
Add table
Reference in a new issue