skia2/modules/skottie/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

92 lines
4.5 KiB
Python

cc_library(
name = "skottie",
hdrs = ["//modules/skottie/include:hdrs"],
visibility = ["//:__subpackages__"],
deps = [
"//modules/skottie/src:Camera_src",
"//modules/skottie/src:Composition_src",
"//modules/skottie/src:Layer_src",
"//modules/skottie/src:Path_src",
"//modules/skottie/src:SkottieJson_src",
"//modules/skottie/src:SkottieProperty_src",
"//modules/skottie/src:Skottie_src",
"//modules/skottie/src:Transform_src",
"//modules/skottie/src/animator:Animator_src",
"//modules/skottie/src/animator:KeyframeAnimator_src",
"//modules/skottie/src/animator:ScalarKeyframeAnimator_src",
"//modules/skottie/src/animator:ShapeKeyframeAnimator_src",
"//modules/skottie/src/animator:TextKeyframeAnimator_src",
"//modules/skottie/src/animator:Vec2KeyframeAnimator_src",
"//modules/skottie/src/animator:VectorKeyframeAnimator_src",
"//modules/skottie/src/effects:BlackAndWhiteEffect_src",
"//modules/skottie/src/effects:BrightnessContrastEffect_src",
"//modules/skottie/src/effects:BuldgeEffect_src",
"//modules/skottie/src/effects:CCTonerEffect_src",
"//modules/skottie/src/effects:CornerPinEffect_src",
"//modules/skottie/src/effects:DirectionalBlur_src",
"//modules/skottie/src/effects:DisplacementMapEffect_src",
"//modules/skottie/src/effects:DropShadowEffect_src",
"//modules/skottie/src/effects:Effects_src",
"//modules/skottie/src/effects:FillEffect_src",
"//modules/skottie/src/effects:FractalNoiseEffect_src",
"//modules/skottie/src/effects:GaussianBlurEffect_src",
"//modules/skottie/src/effects:GlowStyles_src",
"//modules/skottie/src/effects:GradientEffect_src",
"//modules/skottie/src/effects:HueSaturationEffect_src",
"//modules/skottie/src/effects:InvertEffect_src",
"//modules/skottie/src/effects:LevelsEffect_src",
"//modules/skottie/src/effects:LinearWipeEffect_src",
"//modules/skottie/src/effects:MotionBlurEffect_src",
"//modules/skottie/src/effects:MotionTileEffect_src",
"//modules/skottie/src/effects:RadialWipeEffect_src",
"//modules/skottie/src/effects:ShadowStyles_src",
"//modules/skottie/src/effects:SharpenEffect_src",
"//modules/skottie/src/effects:ShiftChannelsEffect_src",
"//modules/skottie/src/effects:SkSLEffect_src",
"//modules/skottie/src/effects:SphereEffect_src",
"//modules/skottie/src/effects:ThresholdEffect_src",
"//modules/skottie/src/effects:TintEffect_src",
"//modules/skottie/src/effects:TransformEffect_src",
"//modules/skottie/src/effects:TritoneEffect_src",
"//modules/skottie/src/effects:VenetianBlindsEffect_src",
"//modules/skottie/src/layers:AudioLayer_src",
"//modules/skottie/src/layers:FootageLayer_src",
"//modules/skottie/src/layers:NullLayer_src",
"//modules/skottie/src/layers:PrecompLayer_src",
"//modules/skottie/src/layers:SolidLayer_src",
"//modules/skottie/src/layers:TextLayer_src",
"//modules/skottie/src/layers/shapelayer:Ellipse_src",
"//modules/skottie/src/layers/shapelayer:FillStroke_src",
"//modules/skottie/src/layers/shapelayer:Gradient_src",
"//modules/skottie/src/layers/shapelayer:MergePaths_src",
"//modules/skottie/src/layers/shapelayer:OffsetPaths_src",
"//modules/skottie/src/layers/shapelayer:Polystar_src",
"//modules/skottie/src/layers/shapelayer:PuckerBloat_src",
"//modules/skottie/src/layers/shapelayer:Rectangle_src",
"//modules/skottie/src/layers/shapelayer:Repeater_src",
"//modules/skottie/src/layers/shapelayer:RoundCorners_src",
"//modules/skottie/src/layers/shapelayer:ShapeLayer_src",
"//modules/skottie/src/layers/shapelayer:TrimPaths_src",
"//modules/skottie/src/text:RangeSelector_src",
"//modules/skottie/src/text:SkottieShaper_src",
"//modules/skottie/src/text:TextAdapter_src",
"//modules/skottie/src/text:TextAnimator_src",
"//modules/skottie/src/text:TextValue_src",
"//modules/skresources",
"//modules/sksg",
"//modules/skshaper",
"//modules/skunicode",
"//src/utils:json_srcs",
],
)
cc_library(
name = "utils",
hdrs = ["//modules/skottie/utils:hdrs"],
visibility = ["//:__subpackages__"],
deps = [
":skottie",
"//modules/skottie/utils:SkottieUtils_src",
],
)