9488e0237d
This uses the gazelle extension from https://skia-review.googlesource.com/c/buildbot/+/473357 Review Tips: - Ignore any changes to .h or .cpp files. Those have been pulled out into their own CLs. - Start with bazel/macros.bzl. - Read the CL with the generation code, if you haven't already. - Look at third_party/file_map_for_bazel.json. - See experimental/bazel_test for an idea of how a cc_binary would be made. - Spot check one or two of the BUILD.bazel files. This CL generates the "atomic" rules for src/, include/ and modules/skshaper, as a starting point. `bazel build --config clang //include/...` works `bazel build --config clang //src/...` starts compiling, (which verifies that the BUILD.bazel files are all valid), but runs into errors because not all third_party deps have been resolved, and there are some files missing from the toolchain still (e.g. EGL headers). Change-Id: Ib7e0fb0efdb9f08655f06cbc56e9bb4cf416294b Bug: skia:12541 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/474240 Reviewed-by: Ben Wagner <bungeman@google.com> Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
156 lines
3.8 KiB
Python
156 lines
3.8 KiB
Python
load("//bazel:macros.bzl", "generated_cc_atom")
|
|
|
|
generated_cc_atom(
|
|
name = "SkAnimCodecPlayer_hdr",
|
|
hdrs = ["SkAnimCodecPlayer.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//include/codec:SkCodec_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkBase64_hdr",
|
|
hdrs = ["SkBase64.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//include/core:SkTypes_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkCamera_hdr",
|
|
hdrs = ["SkCamera.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/core:SkM44_hdr",
|
|
"//include/core:SkMatrix_hdr",
|
|
"//include/private:SkNoncopyable_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkCanvasStateUtils_hdr",
|
|
hdrs = ["SkCanvasStateUtils.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//include/core:SkCanvas_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkCustomTypeface_hdr",
|
|
hdrs = ["SkCustomTypeface.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/core:SkFontMetrics_hdr",
|
|
"//include/core:SkFontStyle_hdr",
|
|
"//include/core:SkImage_hdr",
|
|
"//include/core:SkPaint_hdr",
|
|
"//include/core:SkPath_hdr",
|
|
"//include/core:SkPicture_hdr",
|
|
"//include/core:SkTypeface_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkEventTracer_hdr",
|
|
hdrs = ["SkEventTracer.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//include/core:SkTypes_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkNWayCanvas_hdr",
|
|
hdrs = ["SkNWayCanvas.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":SkNoDrawCanvas_hdr",
|
|
"//include/core:SkCanvasVirtualEnforcer_hdr",
|
|
"//include/private:SkTDArray_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkNoDrawCanvas_hdr",
|
|
hdrs = ["SkNoDrawCanvas.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/core:SkCanvasVirtualEnforcer_hdr",
|
|
"//include/core:SkCanvas_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkNullCanvas_hdr",
|
|
hdrs = ["SkNullCanvas.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//include/core:SkCanvas_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkOrderedFontMgr_hdr",
|
|
hdrs = ["SkOrderedFontMgr.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//include/core:SkFontMgr_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkPaintFilterCanvas_hdr",
|
|
hdrs = ["SkPaintFilterCanvas.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":SkNWayCanvas_hdr",
|
|
"//include/core:SkCanvasVirtualEnforcer_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkParsePath_hdr",
|
|
hdrs = ["SkParsePath.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//include/core:SkPath_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkParse_hdr",
|
|
hdrs = ["SkParse.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//include/core:SkColor_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkRandom_hdr",
|
|
hdrs = ["SkRandom.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/core:SkScalar_hdr",
|
|
"//include/private:SkFixed_hdr",
|
|
"//include/private:SkFloatBits_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkShadowUtils_hdr",
|
|
hdrs = ["SkShadowUtils.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/core:SkColor_hdr",
|
|
"//include/core:SkPoint3_hdr",
|
|
"//include/core:SkScalar_hdr",
|
|
"//include/private:SkShadowFlags_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkTextUtils_hdr",
|
|
hdrs = ["SkTextUtils.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
"//include/core:SkCanvas_hdr",
|
|
"//include/core:SkFont_hdr",
|
|
"//include/core:SkPaint_hdr",
|
|
"//include/core:SkString_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkTraceEventPhase_hdr",
|
|
hdrs = ["SkTraceEventPhase.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
)
|