diff options
Diffstat (limited to 'modules/skottie/BUILD.gn')
-rw-r--r-- | modules/skottie/BUILD.gn | 49 |
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 + ] + } +} |