skia2/include/ports/BUILD.bazel
Kevin Lubick 9488e0237d [infra] Experiment generating BUILD.bazel files
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>
2021-11-23 18:53:16 +00:00

160 lines
4.0 KiB
Python

load("//bazel:macros.bzl", "generated_cc_atom")
generated_cc_atom(
name = "SkCFObject_hdr",
hdrs = ["SkCFObject.h"],
visibility = ["//:__subpackages__"],
deps = ["//include/core:SkTypes_hdr"],
)
generated_cc_atom(
name = "SkFontConfigInterface_hdr",
hdrs = ["SkFontConfigInterface.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkFontStyle_hdr",
"//include/core:SkRefCnt_hdr",
"//include/core:SkStream_hdr",
"//include/core:SkTypeface_hdr",
],
)
generated_cc_atom(
name = "SkFontMgr_FontConfigInterface_hdr",
hdrs = ["SkFontMgr_FontConfigInterface.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkRefCnt_hdr",
"//include/core:SkTypes_hdr",
],
)
generated_cc_atom(
name = "SkFontMgr_android_hdr",
hdrs = ["SkFontMgr_android.h"],
visibility = ["//:__subpackages__"],
deps = ["//include/core:SkRefCnt_hdr"],
)
generated_cc_atom(
name = "SkFontMgr_directory_hdr",
hdrs = ["SkFontMgr_directory.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkRefCnt_hdr",
"//include/core:SkTypes_hdr",
],
)
generated_cc_atom(
name = "SkFontMgr_empty_hdr",
hdrs = ["SkFontMgr_empty.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkRefCnt_hdr",
"//include/core:SkTypes_hdr",
],
)
generated_cc_atom(
name = "SkFontMgr_fontconfig_hdr",
hdrs = ["SkFontMgr_fontconfig.h"],
visibility = ["//:__subpackages__"],
deps = ["//include/core:SkRefCnt_hdr"],
)
generated_cc_atom(
name = "SkFontMgr_fuchsia_hdr",
hdrs = ["SkFontMgr_fuchsia.h"],
visibility = ["//:__subpackages__"],
deps = ["//include/core:SkRefCnt_hdr"],
)
generated_cc_atom(
name = "SkFontMgr_indirect_hdr",
hdrs = ["SkFontMgr_indirect.h"],
visibility = ["//:__subpackages__"],
deps = [
":SkRemotableFontMgr_hdr",
"//include/core:SkFontMgr_hdr",
"//include/core:SkRefCnt_hdr",
"//include/core:SkTypeface_hdr",
"//include/core:SkTypes_hdr",
"//include/private:SkMutex_hdr",
"//include/private:SkOnce_hdr",
"//include/private:SkTArray_hdr",
],
)
generated_cc_atom(
name = "SkFontMgr_mac_ct_hdr",
hdrs = ["SkFontMgr_mac_ct.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkRefCnt_hdr",
"//include/core:SkTypes_hdr",
],
)
generated_cc_atom(
name = "SkImageGeneratorCG_hdr",
hdrs = ["SkImageGeneratorCG.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkData_hdr",
"//include/core:SkImageGenerator_hdr",
"//include/core:SkTypes_hdr",
],
)
generated_cc_atom(
name = "SkImageGeneratorNDK_hdr",
hdrs = ["SkImageGeneratorNDK.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkData_hdr",
"//include/core:SkImageGenerator_hdr",
"//include/core:SkTypes_hdr",
],
)
generated_cc_atom(
name = "SkImageGeneratorWIC_hdr",
hdrs = ["SkImageGeneratorWIC.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkData_hdr",
"//include/core:SkImageGenerator_hdr",
"//include/core:SkTypes_hdr",
],
)
generated_cc_atom(
name = "SkRemotableFontMgr_hdr",
hdrs = ["SkRemotableFontMgr.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkFontStyle_hdr",
"//include/core:SkRefCnt_hdr",
"//include/core:SkTypes_hdr",
"//include/private:SkTemplates_hdr",
],
)
generated_cc_atom(
name = "SkTypeface_mac_hdr",
hdrs = ["SkTypeface_mac.h"],
visibility = ["//:__subpackages__"],
deps = ["//include/core:SkTypeface_hdr"],
)
generated_cc_atom(
name = "SkTypeface_win_hdr",
hdrs = ["SkTypeface_win.h"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkTypeface_hdr",
"//include/core:SkTypes_hdr",
],
)