4511c7b7fb
gazelle ended up being more liability than asset for our C++ rules. It required devs to manually run the command frequently (and was easy to forget until the CQ failed). The fact that we still had to edit the source files (e.g. the "srcs" cc_libraries) meant that the mixture between generated and hand-written caused some tension (see include/third_party/vulkan for a good example). The combination of gazelle and our IWYU enforcement added several bits of churn without any real benefit. The generated rules also didn't help identify cases where we were not keeping tight boundaries (e.g. non-gpu code and gpu code). Identifying third_party deps automatically ended up being trickier than anticipated (see the deleted //third_party/file_map_for_bazel.json) Using the "maximum set of dependencies" worked ok, but ended up increasing build time unnecessarily. For example, compiling CanvasKit for WebGL always needed to compile Dawn because SkSLCompiler.cpp sometimes needs to include tint/tint.h. Follow-up CLs will rebuild the BUILD.bazel rules without gazelle. Note to Reviewers: - The only file worth manually reviewing here is bazel/Makefile. Change-Id: I36d6fc3747487fabaf699690780c95f1f6765770 Bug: skia:12541 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/543976 Reviewed-by: Leandro Lovisolo <lovisolo@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> |
||
---|---|---|
.. | ||
android | ||
calmbench | ||
copyright | ||
debugger | ||
doxygen | ||
fiddle | ||
flags | ||
fm | ||
fonts | ||
gdb | ||
gpu | ||
graphite | ||
infra | ||
lottie-web-perf | ||
lottiecap | ||
malisc | ||
perf-canvaskit-puppeteer | ||
run-wasm-gm-tests | ||
sk_app | ||
skdiff | ||
skiaserve | ||
skottie_ios_app | ||
skottie-wasm-perf | ||
skp | ||
skpbench | ||
skqp | ||
sksl-precompile | ||
skslc | ||
skui | ||
svg | ||
timer | ||
trace | ||
viewer | ||
__init__.py | ||
abandon_gerrit_cls.py | ||
add_codereview_message.py | ||
AndroidSkDebugToStdOut.cpp | ||
AutoreleasePool.h | ||
AutoreleasePool.mm | ||
bloaty_treemap.py | ||
blob_cache_sim.cpp | ||
BUILD_simulator.py | ||
build_workaround_header.py | ||
check-headers-self-sufficient | ||
chrome_fuzz.cpp | ||
clang-tidy.sh | ||
convert-to-nia.cpp | ||
cpu_modules.cpp | ||
CrashHandler.cpp | ||
CrashHandler.h | ||
DDLPromiseImageHelper.cpp | ||
DDLPromiseImageHelper.h | ||
DDLTileHelper.cpp | ||
DDLTileHelper.h | ||
doxygen_footer.txt | ||
dump_record.cpp | ||
embed_resources.py | ||
find_run_binary.py | ||
fix_pythonpath.py | ||
force_older_glibc_math.h | ||
gcov_shim | ||
get_current_monitor_profile.cpp | ||
get_images_from_skps.cpp | ||
git-sync-deps | ||
HashAndEncode.cpp | ||
HashAndEncode.h | ||
image_diff_metric.cpp | ||
imgcvt.cpp | ||
install_dependencies.sh | ||
ios_utils.h | ||
ios_utils.m | ||
list_gms.cpp | ||
list_gpu_unit_tests.cpp | ||
LsanSuppressions.cpp | ||
merge_static_libs.py | ||
milestone.py | ||
mirror-dev.sh | ||
misc_utils.py | ||
MSKPPlayer.cpp | ||
MSKPPlayer.h | ||
OverwriteLine.h | ||
parse_llvm_coverage.py | ||
pathops_sorter.htm | ||
pathops_visualizer.htm | ||
ProcStats.cpp | ||
ProcStats.h | ||
public_headers_warnings_check.cpp | ||
random_parse_path.cpp | ||
random_parse_path.h | ||
reformat-json.py | ||
Registry.h | ||
remote_demo.cpp | ||
ResourceFactory.h | ||
Resources.cpp | ||
Resources.h | ||
rewrite_includes.py | ||
RuntimeBlendUtils.cpp | ||
RuntimeBlendUtils.h | ||
sanitize_source_files.py | ||
serve_wasm.py | ||
SkMetaData.cpp | ||
SkMetaData.h | ||
skottie2movie.cpp | ||
skp_parser.cpp | ||
skpinfo.cpp | ||
SkSharingProc.cpp | ||
SkSharingProc.h | ||
Stats.h | ||
test_all.py | ||
test_pdfs.py | ||
ToolUtils.cpp | ||
ToolUtils.h | ||
UrlDataManager.cpp | ||
UrlDataManager.h | ||
using_skia_and_harfbuzz.cpp | ||
valgrind.supp | ||
win_dbghelp.cpp | ||
win_dbghelp.h | ||
win_lcid.cpp | ||
xsan.supp |