2022-01-11 12:35:26 +00:00
|
|
|
# This target should be run when new files are added or includes changed.
|
2021-11-23 19:58:20 +00:00
|
|
|
generate:
|
2022-01-06 16:19:22 +00:00
|
|
|
bazelisk build @org_skia_go_infra//bazel/gazelle:gazelle_cpp
|
2021-11-23 19:58:20 +00:00
|
|
|
cd .. && bazel-bin/external/org_skia_go_infra/bazel/gazelle/gazelle_cpp_/gazelle_cpp update \
|
|
|
|
--third_party_file_map="third_party/file_map_for_bazel.json" \
|
2022-02-09 18:14:25 +00:00
|
|
|
include src tools gm tests \
|
2021-11-30 20:59:32 +00:00
|
|
|
modules/skshaper modules/svg modules/skresources modules/skparagraph modules/skunicode \
|
2022-02-04 15:05:29 +00:00
|
|
|
modules/skottie modules/skresources modules/sksg experimental/ffmpeg \
|
2022-02-04 20:04:15 +00:00
|
|
|
modules/particles \
|
2022-04-11 15:48:46 +00:00
|
|
|
experimental/bazel_test example \
|
2022-03-03 15:42:57 +00:00
|
|
|
modules/canvaskit/go \
|
|
|
|
infra/bots/task_drivers
|
2021-11-23 19:58:20 +00:00
|
|
|
|
2022-01-11 12:35:26 +00:00
|
|
|
# This target should be run after the go.mod file is updated (e.g. version rolls or new updates)
|
2021-11-23 19:58:20 +00:00
|
|
|
gazelle_update_repo:
|
2022-01-06 16:19:22 +00:00
|
|
|
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:
|
2022-03-30 13:00:12 +00:00
|
|
|
bazelisk build //experimental/bazel_test/... --config=clang
|
|
|
|
bazelisk run //experimental/bazel_test:bazel_test_exe --config=clang
|
|
|
|
bazelisk build //:skia_core --config=clang
|
|
|
|
bazelisk build //src/sksl/lex:sksllex --config=clang
|
|
|
|
bazelisk build //tools/skdiff --config=clang
|
2022-04-08 15:29:33 +00:00
|
|
|
bazelisk build //tools/skslc --config=clang
|
2022-03-21 13:11:28 +00:00
|
|
|
bazelisk build //modules/canvaskit:canvaskit_wasm --compilation_mode opt --sandbox_base=/dev/shm
|
2022-03-15 18:18:53 +00:00
|
|
|
|
|
|
|
# Test the enforcement of include what you use
|
2022-03-30 13:00:12 +00:00
|
|
|
bazelisk build //example:hello_world_gl --config=clang --features skia_enforce_iwyu
|
2022-03-15 18:18:53 +00:00
|
|
|
# Both with and without a GPU backend should be error free (i.e. IWYU should let us
|
|
|
|
# conditionally import things.
|
2022-03-30 13:00:12 +00:00
|
|
|
bazelisk build //src/svg/... --config=clang --features skia_enforce_iwyu \
|
|
|
|
--gpu_backend=gl_backend --include_decoder=jpeg_decode_codec
|
|
|
|
bazelisk build //src/svg/... --config=clang --features skia_enforce_iwyu
|
|
|
|
bazelisk build //tools/debugger --config=clang --gpu_backend=gl_backend \
|
2022-03-25 18:59:33 +00:00
|
|
|
--features skia_enforce_iwyu
|
2022-04-07 13:03:48 +00:00
|
|
|
bazelisk build //:skia_core --config=clang --features skia_enforce_iwyu
|
2022-04-28 15:04:30 +00:00
|
|
|
bazelisk build //src/utils/... --config=clang --features skia_enforce_iwyu
|
|
|
|
bazelisk build //src/utils/... --config=clang --gpu_backend=gl_backend \
|
|
|
|
--features skia_enforce_iwyu
|
2022-03-25 18:59:33 +00:00
|
|
|
|
|
|
|
rbe_known_good_builds:
|
|
|
|
bazelisk build //experimental/bazel_test/... --config=linux-rbe
|
|
|
|
bazelisk run //experimental/bazel_test:bazel_test_exe --config=linux-rbe
|
|
|
|
bazelisk build //:skia_core --config=linux-rbe
|
|
|
|
bazelisk build //src/sksl/lex:sksllex --config=linux-rbe
|
|
|
|
bazelisk build //tools/skdiff --config=linux-rbe
|
2022-04-08 15:29:33 +00:00
|
|
|
bazelisk build //tools/skslc --config=linux-rbe
|
2022-03-31 13:44:41 +00:00
|
|
|
# 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 \
|
|
|
|
--jobs 100
|
2022-03-25 18:59:33 +00:00
|
|
|
|
|
|
|
# Test the enforcement of include what you use
|
|
|
|
bazelisk build //example:hello_world_gl --config=linux-rbe --features skia_enforce_iwyu
|
|
|
|
# Both with and without a GPU backend should be error free (i.e. IWYU should let us
|
|
|
|
# conditionally import things.
|
|
|
|
bazelisk build //src/svg/... --config=linux-rbe --features skia_enforce_iwyu \
|
|
|
|
--gpu_backend=gl_backend --include_decoder=jpeg_decode_codec
|
|
|
|
bazelisk build //src/svg/... --config=linux-rbe --features skia_enforce_iwyu
|
2022-03-30 13:00:12 +00:00
|
|
|
bazelisk build //tools/debugger --config=linux-rbe --gpu_backend=gl_backend \
|
2022-04-07 13:03:48 +00:00
|
|
|
--features skia_enforce_iwyu
|
|
|
|
bazelisk build //:skia_core --config=linux-rbe --features skia_enforce_iwyu
|