skia2/modules/skottie/utils/BUILD.bazel
Kevin Lubick e94b52c442 [canvaskit] Add skottie to Bazel build
PS 1 regenerates existing Bazel files
PS 2 adds generated Bazel files to skottie and its dependencies,
as well as incorporating it into CanvasKit.

This changes the version of Bazel we use to 5.0.0 (recently
released).We had been using a pre-release of 6.0 because we
wanted the new features in one of the 5.0 release candidates,
but not the regression that was there (and reverted before the
full 5.0 release). I'd like to stick to the latest stable Bazel
release where possible.

Suggested Review Order:
 - //modules/skottie/BUILD.bazel (this was hand written
   to encapsulate the skottie library). The files in the
   deps are based on skottie.gni.
 - //modules/skresources/BUILD.bazel and //modules/sksg/BUILD.bazel
   which expose all sources
 - //third_party/file_map_for_bazel.json which ignores the
   ffmpeg libraries (we won't actually build the SkVideoDecoder
   stuff because HAVE_VIDEO_DECODER is not set).
 - //modules/canvaskit/BUILD.bazel which makes use of the skottie
   library and includes the interface skottie.js file.
 - .bazelversion which changes the Bazel version used (e.g. by
   Bazelisk).
 - All other changes should be auto-generated or related to
   deleted files.

Change-Id: Ic26f9a9dea5310f2cbd9cda7d701847924a39a22
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/503828
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
2022-02-04 19:18:27 +00:00

28 lines
642 B
Python

load("//bazel:macros.bzl", "generated_cc_atom")
filegroup(
name = "hdrs",
srcs = [
"SkottieUtils.h",
],
visibility = ["//modules/skottie:__pkg__"],
)
generated_cc_atom(
name = "SkottieUtils_hdr",
hdrs = ["SkottieUtils.h"],
visibility = ["//:__subpackages__"],
deps = [
"//modules/skottie/include:ExternalLayer_hdr",
"//modules/skottie/include:SkottieProperty_hdr",
"//modules/skottie/include:Skottie_hdr",
],
)
generated_cc_atom(
name = "SkottieUtils_src",
srcs = ["SkottieUtils.cpp"],
visibility = ["//:__subpackages__"],
deps = [":SkottieUtils_hdr"],
)