1 # Copyright 2018 Google Inc.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
6 import("../../gn/skia.gni")
8 if (skia_enable_skottie) {
9 config("public_config") {
10 defines = [ "SK_ENABLE_SKOTTIE" ]
11 include_dirs = [ "include" ]
14 skia_component("skottie") {
15 check_includes = false
17 public_configs = [ ":public_config" ]
18 public = skia_skottie_public
19 sources = skia_skottie_sources
20 configs = [ "../../:skia_private" ]
30 if (defined(is_skia_standalone)) {
31 config("utils_config") {
32 include_dirs = [ "utils" ]
34 skia_source_set("utils") {
35 check_includes = false
38 public_configs = [ ":utils_config" ]
39 configs = [ "../../:skia_private" ]
41 sources = [ "utils/SkottieUtils.cpp" ]
48 if (skia_enable_tools) {
49 skia_source_set("tests") {
57 "src/SkottieTest.cpp",
58 "tests/AudioLayer.cpp",
59 "tests/Expression.cpp",
73 skia_source_set("fuzz") {
74 check_includes = false
77 configs = [ "../..:skia_private" ]
84 "../../tools/Resources.cpp",
85 "../../tools/fonts/TestFontMgr.cpp",
86 "../../tools/fonts/TestSVGTypeface.cpp",
87 "../../tools/fonts/TestTypeface.cpp",
88 "fuzz/FuzzSkottieJSON.cpp",
96 public_deps = [ ":skottie" ]
99 skia_source_set("tool") {
100 check_includes = false
103 configs = [ "../..:skia_private" ]
104 sources = [ "src/SkottieTool.cpp" ]
109 "../../experimental/ffmpeg:video_encoder",
118 skia_source_set("gm") {
119 check_includes = false
122 # would be nice to have a gm_config
123 include_dirs = [ "../../gm" ]
125 configs = [ "../..:skia_private" ]
127 "gm/ExternalProperties.cpp",
134 "../..:gpu_tool_utils",