diff options
Diffstat (limited to 'tools/viewer')
-rw-r--r-- | tools/viewer/SkottieSlide.cpp | 4 | ||||
-rw-r--r-- | tools/viewer/SkottieSlide.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tools/viewer/SkottieSlide.cpp b/tools/viewer/SkottieSlide.cpp index 78cda5cbda..f009066182 100644 --- a/tools/viewer/SkottieSlide.cpp +++ b/tools/viewer/SkottieSlide.cpp @@ -7,6 +7,8 @@ #include "SkottieSlide.h" +#if defined(SK_ENABLE_SKOTTIE) + #include "SkAnimTimer.h" #include "SkCanvas.h" #include "Skottie.h" @@ -130,3 +132,5 @@ bool SkottieSlide::onMouse(SkScalar x, SkScalar y, sk_app::Window::InputState st return false; } + +#endif // SK_ENABLE_SKOTTIE diff --git a/tools/viewer/SkottieSlide.h b/tools/viewer/SkottieSlide.h index 0bfe66eef4..9ed4d78c8b 100644 --- a/tools/viewer/SkottieSlide.h +++ b/tools/viewer/SkottieSlide.h @@ -9,6 +9,8 @@ #define SkottieSlide_DEFINED #include "Slide.h" + +#if defined(SK_ENABLE_SKOTTIE) #include "Skottie.h" namespace sksg { class Scene; } @@ -41,4 +43,6 @@ private: typedef Slide INHERITED; }; +#endif // SK_ENABLE_SKOTTIE + #endif // SkottieSlide_DEFINED |