Fix build when (is_ios && !skia_enable_skottie)

Bug: skia:9726
Change-Id: I2ad05e28f8699fc7c5159145cc59065fc8bd5b93
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/265520
Reviewed-by: Hal Canary <halcanary@skia.org>
Commit-Queue: Hal Canary <halcanary@skia.org>
Auto-Submit: Hal Canary <halcanary@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index c44a81e..8ebd593 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -2518,7 +2518,7 @@
   }
 }
 
-if (is_ios && !skia_enable_flutter_defines) {
+if (is_ios && skia_enable_skottie && !skia_enable_flutter_defines) {
   group("skottie_ios") {
     deps = [
       "tools/skottie_ios_app",