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.
|
|
|
|
|
2019-02-22 15:04:06 +00:00
|
|
|
import("../../gn/skia.gni")
|
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
if (skia_enable_skottie) {
|
|
|
|
config("public_config") {
|
2018-05-26 13:49:28 +00:00
|
|
|
defines = [ "SK_ENABLE_SKOTTIE" ]
|
|
|
|
include_dirs = [ "include" ]
|
|
|
|
}
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_component("skottie") {
|
2019-02-26 16:54:25 +00:00
|
|
|
check_includes = false
|
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
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [ "../../:skia_private" ]
|
2018-05-26 13:49:28 +00:00
|
|
|
deps = [
|
|
|
|
"../..:skia",
|
2019-11-25 18:24:59 +00:00
|
|
|
"../skresources",
|
2018-06-14 20:16:01 +00:00
|
|
|
"../sksg",
|
2019-02-07 15:05:32 +00:00
|
|
|
"../skshaper",
|
2021-09-03 13:45:53 +00:00
|
|
|
"../skunicode",
|
2018-05-26 13:49:28 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
if (defined(is_skia_standalone)) {
|
|
|
|
config("utils_config") {
|
|
|
|
include_dirs = [ "utils" ]
|
|
|
|
}
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("utils") {
|
2019-04-10 17:51:53 +00:00
|
|
|
check_includes = false
|
2018-11-09 21:19:44 +00:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
public_configs = [ ":utils_config" ]
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [ "../../:skia_private" ]
|
2019-05-30 20:12:56 +00:00
|
|
|
|
2020-04-01 18:47:34 +00:00
|
|
|
sources = [ "utils/SkottieUtils.cpp" ]
|
2018-11-09 21:19:44 +00:00
|
|
|
deps = [
|
|
|
|
":skottie",
|
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
if (skia_enable_tools) {
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("tests") {
|
2019-02-22 15:04:06 +00:00
|
|
|
testonly = true
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [
|
2019-02-22 15:04:06 +00:00
|
|
|
"../..:skia_private",
|
|
|
|
"../..:tests_config",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/SkottieTest.cpp",
|
2020-08-12 01:29:01 +00:00
|
|
|
"tests/AudioLayer.cpp",
|
2021-08-03 18:22:35 +00:00
|
|
|
"tests/Expression.cpp",
|
2020-12-03 17:51:28 +00:00
|
|
|
"tests/Image.cpp",
|
2020-02-13 18:23:47 +00:00
|
|
|
"tests/Keyframe.cpp",
|
2020-11-12 17:56:16 +00:00
|
|
|
"tests/Text.cpp",
|
2019-02-22 15:04:06 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":skottie",
|
|
|
|
"../..:skia",
|
2021-02-18 03:14:34 +00:00
|
|
|
"../..:test",
|
2019-07-26 18:54:40 +00:00
|
|
|
"../skshaper",
|
2019-02-22 15:04:06 +00:00
|
|
|
]
|
|
|
|
}
|
2018-10-18 16:40:09 +00:00
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("fuzz") {
|
2019-02-26 16:54:25 +00:00
|
|
|
check_includes = false
|
2019-02-22 15:04:06 +00:00
|
|
|
testonly = true
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [ "../..:skia_private" ]
|
2019-02-22 15:04:06 +00:00
|
|
|
include_dirs = [
|
|
|
|
"../../tools",
|
|
|
|
"../../tools/flags",
|
|
|
|
"../../tools/fonts",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"../../tools/Resources.cpp",
|
2019-03-20 16:08:46 +00:00
|
|
|
"../../tools/fonts/TestFontMgr.cpp",
|
|
|
|
"../../tools/fonts/TestSVGTypeface.cpp",
|
|
|
|
"../../tools/fonts/TestTypeface.cpp",
|
2019-02-22 15:04:06 +00:00
|
|
|
"fuzz/FuzzSkottieJSON.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"../..:skia",
|
2020-10-15 22:10:29 +00:00
|
|
|
"../svg",
|
2019-02-22 15:04:06 +00:00
|
|
|
]
|
|
|
|
|
2020-04-01 18:47:34 +00:00
|
|
|
public_deps = [ ":skottie" ]
|
2019-02-22 15:04:06 +00:00
|
|
|
}
|
2018-06-18 17:10:51 +00:00
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("tool") {
|
2019-04-10 17:51:53 +00:00
|
|
|
check_includes = false
|
|
|
|
testonly = true
|
2018-06-18 17:10:51 +00:00
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [ "../..:skia_private" ]
|
2020-04-01 18:47:34 +00:00
|
|
|
sources = [ "src/SkottieTool.cpp" ]
|
2018-10-18 16:40:09 +00:00
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
deps = [
|
|
|
|
"../..:flags",
|
2022-06-22 19:20:04 +00:00
|
|
|
"../..:gpu_tool_utils",
|
|
|
|
"../..:skia",
|
|
|
|
"../../experimental/ffmpeg:video_encoder",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [
|
|
|
|
":skottie",
|
|
|
|
":utils",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
# A couple of backend specific targets, to facilitate binary size experiments.
|
|
|
|
skia_source_set("tool_cpu") {
|
|
|
|
check_includes = false
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs = [ "../..:skia_private" ]
|
|
|
|
sources = [ "src/SkottieTool.cpp" ]
|
|
|
|
defines = [ "CPU_ONLY" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"../..:flags",
|
|
|
|
"../..:gpu_tool_utils",
|
|
|
|
"../..:skia",
|
|
|
|
"../../experimental/ffmpeg:video_encoder",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [
|
|
|
|
":skottie",
|
|
|
|
":utils",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
skia_source_set("tool_gpu") {
|
|
|
|
check_includes = false
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs = [ "../..:skia_private" ]
|
|
|
|
sources = [ "src/SkottieTool.cpp" ]
|
|
|
|
defines = [ "GPU_ONLY" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
"../..:flags",
|
|
|
|
"../..:gpu_tool_utils",
|
2019-04-10 17:51:53 +00:00
|
|
|
"../..:skia",
|
2020-04-24 15:10:27 +00:00
|
|
|
"../../experimental/ffmpeg:video_encoder",
|
2019-04-10 17:51:53 +00:00
|
|
|
]
|
2018-10-18 16:40:09 +00:00
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
public_deps = [
|
|
|
|
":skottie",
|
|
|
|
":utils",
|
|
|
|
]
|
|
|
|
}
|
2018-05-29 14:30:01 +00:00
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
skia_source_set("gm") {
|
2019-02-26 16:54:25 +00:00
|
|
|
check_includes = false
|
2019-02-22 15:04:06 +00:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
# would be nice to have a gm_config
|
|
|
|
include_dirs = [ "../../gm" ]
|
|
|
|
|
2021-03-16 18:29:20 +00:00
|
|
|
configs = [ "../..:skia_private" ]
|
2019-02-22 15:04:06 +00:00
|
|
|
sources = [
|
2020-01-16 23:39:44 +00:00
|
|
|
"gm/ExternalProperties.cpp",
|
2019-02-22 15:04:06 +00:00
|
|
|
"gm/SkottieGM.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":skottie",
|
|
|
|
":utils",
|
|
|
|
"../..:gpu_tool_utils",
|
|
|
|
"../..:skia",
|
|
|
|
"../..:tool_utils",
|
|
|
|
]
|
|
|
|
}
|
2018-10-18 16:40:09 +00:00
|
|
|
}
|
2018-09-20 18:35:30 +00:00
|
|
|
}
|
2019-04-10 17:51:53 +00:00
|
|
|
} else {
|
|
|
|
group("skottie") {
|
|
|
|
}
|
|
|
|
group("fuzz") {
|
|
|
|
}
|
|
|
|
group("gm") {
|
|
|
|
}
|
|
|
|
group("tests") {
|
|
|
|
}
|
|
|
|
group("utils") {
|
|
|
|
}
|
2018-09-20 18:35:30 +00:00
|
|
|
}
|