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" ]
|
|
|
|
}
|
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
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
|
2018-05-26 13:49:28 +00:00
|
|
|
configs += [ "../../:skia_private" ]
|
|
|
|
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",
|
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" ]
|
|
|
|
}
|
|
|
|
source_set("utils") {
|
|
|
|
check_includes = false
|
2018-11-09 21:19:44 +00:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
public_configs = [ ":utils_config" ]
|
|
|
|
configs += [ "../../:skia_private" ]
|
2019-05-30 20:12:56 +00:00
|
|
|
|
2018-11-09 21:19:44 +00:00
|
|
|
sources = [
|
2019-07-25 16:33:48 +00:00
|
|
|
"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) {
|
|
|
|
source_set("tests") {
|
2019-02-22 15:04:06 +00:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs += [
|
|
|
|
"../..:skia_private",
|
|
|
|
"../..:tests_config",
|
|
|
|
]
|
|
|
|
sources = [
|
|
|
|
"src/SkottieTest.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":skottie",
|
|
|
|
"../..:gpu_tool_utils",
|
|
|
|
"../..:skia",
|
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
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
source_set("fuzz") {
|
2019-02-26 16:54:25 +00:00
|
|
|
check_includes = false
|
2019-02-22 15:04:06 +00:00
|
|
|
testonly = true
|
|
|
|
|
|
|
|
configs += [ "../..:skia_private" ]
|
|
|
|
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 = [
|
|
|
|
"../..:experimental_svg_model",
|
|
|
|
"../..:skia",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [
|
|
|
|
":skottie",
|
|
|
|
]
|
|
|
|
}
|
2018-06-18 17:10:51 +00:00
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
source_set("tool") {
|
|
|
|
check_includes = false
|
|
|
|
testonly = true
|
2018-06-18 17:10:51 +00:00
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
configs += [ "../..:skia_private" ]
|
|
|
|
sources = [
|
|
|
|
"src/SkottieTool.cpp",
|
|
|
|
]
|
2018-10-18 16:40:09 +00:00
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
deps = [
|
|
|
|
"../..:flags",
|
|
|
|
"../..:skia",
|
|
|
|
]
|
2019-10-09 17:04:15 +00:00
|
|
|
if (skia_use_ffmpeg) {
|
|
|
|
defines = [ "HAVE_VIDEO_ENCODER" ]
|
|
|
|
deps += [ "../..:video_decoder" ]
|
|
|
|
}
|
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
|
|
|
|
2019-04-10 17:51:53 +00:00
|
|
|
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" ]
|
|
|
|
|
|
|
|
configs += [ "../..:skia_private" ]
|
|
|
|
sources = [
|
2019-04-30 17:44:26 +00:00
|
|
|
"gm/3dgm.cpp",
|
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
|
|
|
}
|