aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer
diff options
context:
space:
mode:
Diffstat (limited to 'tools/viewer')
-rw-r--r--tools/viewer/Viewer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp
index 90c4dfc150..7500f3ff5b 100644
--- a/tools/viewer/Viewer.cpp
+++ b/tools/viewer/Viewer.cpp
@@ -12,7 +12,6 @@
#include "ImageSlide.h"
#include "Resources.h"
#include "SampleSlide.h"
-#include "SkottieSlide.h"
#include "SKPSlide.h"
#include "SlideDir.h"
#include "SvgSlide.h"
@@ -47,6 +46,10 @@
#include <stdlib.h>
#include <map>
+#if defined(SK_ENABLE_SKOTTIE)
+ #include "SkottieSlide.h"
+#endif
+
using namespace sk_app;
static std::map<GpuPathRenderers, std::string> gPathRendererNames;
@@ -585,10 +588,12 @@ void Viewer::initSlides() {
[](const SkString& name, const SkString& path) -> sk_sp<Slide> {
return sk_make_sp<ImageSlide>(name, path);}
},
+#if defined(SK_ENABLE_SKOTTIE)
{ ".json", "skottie-dir", FLAGS_jsons,
[](const SkString& name, const SkString& path) -> sk_sp<Slide> {
return sk_make_sp<SkottieSlide>(name, path);}
},
+#endif
{ ".svg", "svg-dir", FLAGS_svgs,
[](const SkString& name, const SkString& path) -> sk_sp<Slide> {
return sk_make_sp<SvgSlide>(name, path);}