diff options
-rw-r--r-- | BUILD.gn | 15 | ||||
-rw-r--r-- | modules/skottie/BUILD.gn | 6 |
2 files changed, 18 insertions, 3 deletions
@@ -1013,9 +1013,16 @@ if (skia_enable_tools) { public_configs = [ ":skia.h_config" ] skia_h = "$target_gen_dir/skia.h" script = "gn/find_headers.py" - args = [ rebase_path("//bin/gn") ] + [ rebase_path("//") ] + - [ rebase_path(skia_h, root_build_dir) ] + - rebase_path(skia_public_includes) + + # TODO: would be cool to not hard-code these here, but how? + module_public_includes = [ + "modules/sksg/include", + "modules/skottie/include", + ] + args = + [ rebase_path("//bin/gn") ] + [ rebase_path("//") ] + + [ rebase_path(skia_h, root_build_dir) ] + + rebase_path(skia_public_includes) + rebase_path(module_public_includes) depfile = "$skia_h.deps" outputs = [ skia_h, @@ -1041,6 +1048,7 @@ if (skia_enable_tools) { ":gpu_tool_utils", ":skia", ":skia.h", + "modules/skottie", ] } } @@ -1054,6 +1062,7 @@ if (skia_enable_tools) { deps = [ ":skia", ":skia.h", + "modules/skottie", ] } } diff --git a/modules/skottie/BUILD.gn b/modules/skottie/BUILD.gn index f704eb4cb7..1e8ccb2df8 100644 --- a/modules/skottie/BUILD.gn +++ b/modules/skottie/BUILD.gn @@ -18,11 +18,17 @@ source_set("skottie") { if (skia_enable_skottie) { public_configs = [ ":public_config" ] sources = [ + # TODO: move this to public + "include/Skottie.h", "src/Skottie.cpp", "src/SkottieAdapter.cpp", + "src/SkottieAdapter.h", "src/SkottieAnimator.cpp", + "src/SkottieAnimator.h", "src/SkottieJson.cpp", + "src/SkottieJson.h", "src/SkottieValue.cpp", + "src/SkottieValue.h", ] configs += [ "../../:skia_private" ] deps = [ |