46eaab3959
Ran the following commands: find -name "BUILD.bazel" -exec sed -i -e '1iload("//bazel:macros.bzl", "cc_library", "exports_files_legacy")\nexports_files_legacy()' {} + buildifier --lint=fix --mode=fix -r . This had the effect of making sure we can export all of our files in G3 (until we no longer have legacy targets) and making all of our cc_libraries shim-able. bazel/macros.bzl has the human-contributed changes, the rest were mechanical. Change-Id: I8e24e30e74b038cfd072cdbe4078bfd1d213dd46 Bug: skia:13211 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/535359 Reviewed-by: Ben Wagner <bungeman@google.com>
77 lines
1.9 KiB
Python
77 lines
1.9 KiB
Python
load("//bazel:macros.bzl", "exports_files_legacy", "generated_cc_atom")
|
|
|
|
exports_files_legacy()
|
|
|
|
licenses(["notice"])
|
|
|
|
generated_cc_atom(
|
|
name = "ChromeTracingTracer_hdr",
|
|
hdrs = ["ChromeTracingTracer.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":EventTracingPriv_hdr",
|
|
"//include/core:SkString_hdr",
|
|
"//include/private:SkSpinlock_hdr",
|
|
"//include/private:SkTHash_hdr",
|
|
"//include/utils:SkEventTracer_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "ChromeTracingTracer_src",
|
|
srcs = ["ChromeTracingTracer.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":ChromeTracingTracer_hdr",
|
|
"//include/core:SkStream_hdr",
|
|
"//include/private:SkThreadID_hdr",
|
|
"//src/core:SkOSFile_hdr",
|
|
"//src/core:SkTraceEvent_hdr",
|
|
"//src/utils:SkJSONWriter_hdr",
|
|
"//src/utils:SkOSPath_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "EventTracingPriv_hdr",
|
|
hdrs = ["EventTracingPriv.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = ["//include/private:SkMutex_hdr"],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "EventTracingPriv_src",
|
|
srcs = ["EventTracingPriv.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":ChromeTracingTracer_hdr",
|
|
":EventTracingPriv_hdr",
|
|
":SkDebugfTracer_hdr",
|
|
"//include/utils:SkEventTracer_hdr",
|
|
"//src/core:SkATrace_hdr",
|
|
"//src/core:SkTraceEvent_hdr",
|
|
"//tools/flags:CommandLineFlags_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkDebugfTracer_hdr",
|
|
hdrs = ["SkDebugfTracer.h"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":EventTracingPriv_hdr",
|
|
"//include/core:SkString_hdr",
|
|
"//include/utils:SkEventTracer_hdr",
|
|
],
|
|
)
|
|
|
|
generated_cc_atom(
|
|
name = "SkDebugfTracer_src",
|
|
srcs = ["SkDebugfTracer.cpp"],
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":SkDebugfTracer_hdr",
|
|
"//src/core:SkTraceEvent_hdr",
|
|
],
|
|
)
|