2018-05-26 13:49:28 +00:00
|
|
|
# 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) {
|
2018-08-02 15:54:16 +00:00
|
|
|
import("skottie.gni")
|
2018-05-26 13:49:28 +00:00
|
|
|
public_configs = [ ":public_config" ]
|
2018-08-02 15:54:16 +00:00
|
|
|
public = skia_skottie_public
|
|
|
|
sources = skia_skottie_sources
|
2018-05-26 13:49:28 +00:00
|
|
|
configs += [ "../../:skia_private" ]
|
|
|
|
deps = [
|
|
|
|
"../..:skia",
|
2018-06-14 20:16:01 +00:00
|
|
|
"../sksg",
|
2018-05-26 13:49:28 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-18 16:40:09 +00:00
|
|
|
if (defined(is_skia_standalone)) {
|
2018-11-09 21:19:44 +00:00
|
|
|
config("utils_config") {
|
|
|
|
include_dirs = [ "utils" ]
|
|
|
|
}
|
|
|
|
source_set("utils") {
|
|
|
|
if (skia_enable_skottie) {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
public_configs = [ ":utils_config" ]
|
|
|
|
configs += [ "../../:skia_private" ]
|
|
|
|
sources = [
|
|
|
|
"utils/SkottieUtils.cpp",
|
|
|
|
]
|
|
|
|
deps = [
|
|
|
|
":skottie",
|
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-18 16:40:09 +00:00
|
|
|
source_set("tests") {
|
|
|
|
if (skia_enable_skottie) {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs += [
|
|
|
|
"../..:skia_private",
|
|
|
|
"../..:tests_config",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/SkottieTest.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":skottie",
|
|
|
|
"../..:gpu_tool_utils",
|
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2018-06-18 17:10:51 +00:00
|
|
|
|
2018-10-18 16:40:09 +00:00
|
|
|
source_set("fuzz") {
|
|
|
|
if (skia_enable_skottie) {
|
|
|
|
testonly = true
|
2018-06-18 17:10:51 +00:00
|
|
|
|
2018-10-18 16:40:09 +00:00
|
|
|
configs += [ "../..:skia_private" ]
|
2018-12-14 16:42:53 +00:00
|
|
|
include_dirs = [
|
|
|
|
"../../tools",
|
|
|
|
"../../tools/flags",
|
|
|
|
"../../tools/fonts",
|
|
|
|
]
|
2018-10-18 16:40:09 +00:00
|
|
|
sources = [
|
2018-12-14 16:42:53 +00:00
|
|
|
"../../tools/Resources.cpp",
|
|
|
|
"../../tools/fonts/SkTestFontMgr.cpp",
|
|
|
|
"../../tools/fonts/SkTestSVGTypeface.cpp",
|
|
|
|
"../../tools/fonts/SkTestTypeface.cpp",
|
2018-10-18 16:40:09 +00:00
|
|
|
"fuzz/FuzzSkottieJSON.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
2018-12-14 16:42:53 +00:00
|
|
|
"../..:experimental_svg_model",
|
2018-10-18 16:40:09 +00:00
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [
|
|
|
|
":skottie",
|
|
|
|
]
|
|
|
|
}
|
2018-06-18 17:10:51 +00:00
|
|
|
}
|
|
|
|
|
2018-10-18 16:40:09 +00:00
|
|
|
source_set("tool") {
|
2018-05-26 13:49:28 +00:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs += [ "../..:skia_private" ]
|
|
|
|
sources = [
|
2018-10-18 16:40:09 +00:00
|
|
|
"src/SkottieTool.cpp",
|
2018-05-26 13:49:28 +00:00
|
|
|
]
|
2018-05-29 14:30:01 +00:00
|
|
|
|
2018-05-26 13:49:28 +00:00
|
|
|
deps = [
|
2018-10-18 16:40:09 +00:00
|
|
|
"../..:flags",
|
2018-05-29 14:30:01 +00:00
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [
|
2018-05-26 13:49:28 +00:00
|
|
|
":skottie",
|
2018-11-09 21:19:44 +00:00
|
|
|
":utils",
|
2018-05-26 13:49:28 +00:00
|
|
|
]
|
|
|
|
}
|
2018-06-05 20:16:57 +00:00
|
|
|
|
2018-10-18 16:40:09 +00:00
|
|
|
source_set("gm") {
|
|
|
|
if (skia_enable_skottie) {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
# would be nice to have a gm_config
|
|
|
|
include_dirs = [ "../../gm" ]
|
|
|
|
|
|
|
|
configs += [ "../..:skia_private" ]
|
|
|
|
sources = [
|
|
|
|
"gm/SkottieGM.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":skottie",
|
2018-11-09 21:19:44 +00:00
|
|
|
":utils",
|
2018-10-18 16:40:09 +00:00
|
|
|
"../..:gpu_tool_utils",
|
|
|
|
"../..:skia",
|
|
|
|
"../..:tool_utils",
|
|
|
|
]
|
|
|
|
}
|
2018-09-20 18:35:30 +00:00
|
|
|
}
|
|
|
|
}
|