69a60e6dc0
These four directories had IWYU enforced previously and that enforcement was turned back on: - src/sksl/ - src/utils/ - src/svg/ - tools/debugger/ It was discovered that src/sksl/ir had been missed with the previous IWYU enforcement, so many files needed updating (see https://skia-review.googlesource.com/c/skia/+/547256). We do not currently include src/svg/ or tools/debugger/ in any Bazel builds, so that enforcement has not been tested with the new system. When we add in builds that use those packages, we may need to update includes. Suggested Review order: - clang_trampoline_linux.sh to see list expanded - bazel/Makefile to see convenient target for testing this locally (follow-up CL will have a CI job for this). Change-Id: Ifef1659ccd1a0e6c862b82102576a06296a6b42e Bug: skia:12541 skia:13052 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/546608 Reviewed-by: Ben Wagner <bungeman@google.com>
66 lines
3.5 KiB
Makefile
66 lines
3.5 KiB
Makefile
generate:
|
|
echo "You do not need to run this any more for C++ code, only if you modify go code"
|
|
|
|
generate_go:
|
|
cd .. && bazelisk run //:gazelle -- update infra/bots/task_drivers modules/canvaskit/go
|
|
|
|
# This target should be run after the go.mod file is updated (e.g. version rolls or new updates)
|
|
gazelle_update_repo:
|
|
cd .. && bazelisk run //:gazelle -- update-repos -from_file=go.mod -to_macro=go_repositories.bzl%go_repositories
|
|
|
|
# Run this target to test all known working Bazel builds
|
|
known_good_builds:
|
|
bazelisk build //:skia_public --config=clang_linux
|
|
bazelisk build //:skia_internal --config=clang_linux
|
|
bazelisk build //experimental/bazel_test/... --config=clang_linux
|
|
bazelisk run //experimental/bazel_test:bazel_test_exe --config=clang_linux
|
|
bazelisk build //example:hello_world_gl --config=clang_linux
|
|
bazelisk build //example:hello_world_vulkan --config=clang_linux
|
|
bazelisk build //example:hello_world_dawn --config=clang_linux
|
|
bazelisk build //example:vulkan_basic --config=clang_linux
|
|
bazelisk build //src/sksl/lex:sksllex --config=clang_linux
|
|
bazelisk build //tools/skdiff --config=clang_linux
|
|
bazelisk build //tools/skslc --config=clang_linux
|
|
bazelisk build //modules/canvaskit:canvaskit_wasm --config=ck_release
|
|
|
|
rbe_known_good_builds:
|
|
bazelisk build //:skia_public --config=linux_rbe --remote_download_minimal
|
|
bazelisk build //:skia_internal --config=linux_rbe --remote_download_minimal
|
|
bazelisk build //experimental/bazel_test/... --config=linux_rbe --remote_download_minimal
|
|
bazelisk run //experimental/bazel_test:bazel_test_exe --config=linux_rbe --remote_download_toplevel
|
|
bazelisk build //example:hello_world_gl --config=linux_rbe --remote_download_minimal
|
|
bazelisk build //example:hello_world_vulkan --config=linux_rbe --remote_download_minimal
|
|
bazelisk build //example:hello_world_dawn --config=linux_rbe --remote_download_minimal
|
|
bazelisk build //example:vulkan_basic --config=linux_rbe --remote_download_minimal
|
|
bazelisk build //src/sksl/lex:sksllex --config=linux_rbe --remote_download_minimal
|
|
bazelisk build //tools/skdiff --config=linux_rbe --remote_download_minimal
|
|
bazelisk build //tools/skslc --config=linux_rbe --remote_download_minimal
|
|
## TODO(kjlubick) CanvasKit in release mode (i.e. with Closure) requires
|
|
## https://github.com/emscripten-core/emscripten/pull/16640 to land
|
|
bazelisk build //modules/canvaskit:canvaskit_wasm --compilation_mode dbg --config=linux_rbe \
|
|
--remote_download_minimal
|
|
|
|
iwyu_rbe:
|
|
bazelisk build //:skia_public --config=linux_rbe --config=enforce_iwyu \
|
|
--keep_going --remote_download_minimal
|
|
bazelisk build //example:hello_world_gl --config=linux_rbe --config=enforce_iwyu \
|
|
--keep_going --remote_download_minimal
|
|
bazelisk build //example:hello_world_vulkan --config=linux_rbe --config=enforce_iwyu \
|
|
--keep_going --remote_download_minimal
|
|
bazelisk build //example:hello_world_dawn --config=linux_rbe --config=enforce_iwyu \
|
|
--keep_going --remote_download_minimal
|
|
bazelisk build //example:vulkan_basic --config=linux_rbe --config=enforce_iwyu \
|
|
--keep_going --remote_download_minimal
|
|
|
|
iwyu:
|
|
bazelisk build //:skia_public --config=clang_linux --config=enforce_iwyu \
|
|
--keep_going
|
|
bazelisk build //example:hello_world_gl --config=clang_linux --config=enforce_iwyu \
|
|
--keep_going
|
|
bazelisk build //example:hello_world_vulkan --config=clang_linux --config=enforce_iwyu \
|
|
--keep_going
|
|
bazelisk build //example:hello_world_dawn --config=clang_linux --config=enforce_iwyu \
|
|
--keep_going
|
|
bazelisk build //example:vulkan_basic --config=clang_linux --config=enforce_iwyu \
|
|
--keep_going
|