aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/skottie/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2018-05-26 09:49:28 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-27 02:21:33 +0000
commit3d856bdeee7fae2ff36cdb6a9807c588fc030eb1 (patch)
treeb26aa52b2d2f8877bdc7a7c647e4a34fd3e96f35 /modules/skottie/BUILD.gn
parentd8eb7b6b12d5b155214031d4aa4d8f582ebb91a1 (diff)
[skottie] Relocate to modules/skottie
TBR= Change-Id: I218d251ca56578a3a7fd4fb86cba9abdc10fb3bd Reviewed-on: https://skia-review.googlesource.com/130322 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'modules/skottie/BUILD.gn')
-rw-r--r--modules/skottie/BUILD.gn49
1 files changed, 49 insertions, 0 deletions
diff --git a/modules/skottie/BUILD.gn b/modules/skottie/BUILD.gn
new file mode 100644
index 0000000000..b3c532c00c
--- /dev/null
+++ b/modules/skottie/BUILD.gn
@@ -0,0 +1,49 @@
+# Copyright 2018 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+declare_args() {
+ skia_enable_skottie = true
+}
+
+config("public_config") {
+ if (skia_enable_skottie) {
+ defines = [ "SK_ENABLE_SKOTTIE" ]
+ include_dirs = [ "include" ]
+ }
+}
+
+source_set("skottie") {
+ if (skia_enable_skottie) {
+ public_configs = [ ":public_config" ]
+ sources = [
+ "src/Skottie.cpp",
+ "src/SkottieAdapter.cpp",
+ "src/SkottieAnimator.cpp",
+ "src/SkottieJson.cpp",
+ "src/SkottieValue.cpp",
+ ]
+ configs += [ "../../:skia_private" ]
+ deps = [
+ "../..:skia",
+ "../../third_party/rapidjson",
+ "../sksg:sksg",
+ ]
+ }
+}
+
+source_set("fuzz") {
+ if (skia_enable_skottie) {
+ testonly = true
+
+ configs += [ "../..:skia_private" ]
+ sources = [
+ "fuzz/FuzzSkottieJSON.cpp",
+ ]
+ deps = [
+ ":skottie",
+ "../..:skia", # TODO: refactor to make this nicer
+ ]
+ }
+}