42f710f3fa
This is a reland of commit ae5e846047
Original change's description:
> [graphite] Move Graphite into Skia base directories.
>
> Change-Id: Ie0fb74f3766a8b33387c145bd1151344c25808cb
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/528708
> Reviewed-by: Kevin Lubick <kjlubick@google.com>
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Commit-Queue: Jim Van Verth <jvanverth@google.com>
Change-Id: Ia575fd49206ad0b665a6a9153317e738bb321446
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/529059
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
61 lines
3.2 KiB
Makefile
61 lines
3.2 KiB
Makefile
# This target should be run when new files are added or includes changed.
|
|
generate:
|
|
bazelisk build @org_skia_go_infra//bazel/gazelle:gazelle_cpp
|
|
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" \
|
|
include src tools gm tests \
|
|
modules/skshaper modules/svg modules/skresources modules/skparagraph modules/skunicode \
|
|
modules/skottie modules/skresources modules/sksg experimental/ffmpeg \
|
|
modules/particles \
|
|
experimental/bazel_test example \
|
|
modules/canvaskit/go \
|
|
infra/bots/task_drivers
|
|
|
|
# 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 //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
|
|
bazelisk build //tools/skslc --config=clang
|
|
bazelisk build //modules/canvaskit:canvaskit_wasm --compilation_mode opt --sandbox_base=/dev/shm
|
|
|
|
# Test the enforcement of include what you use
|
|
bazelisk build //example:hello_world_gl --config=clang --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=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 \
|
|
--features skia_enforce_iwyu
|
|
bazelisk build //:skia_core --config=clang --features skia_enforce_iwyu
|
|
|
|
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
|
|
bazelisk build //tools/skslc --config=linux-rbe
|
|
# 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
|
|
|
|
# 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
|
|
bazelisk build //tools/debugger --config=linux-rbe --gpu_backend=gl_backend \
|
|
--features skia_enforce_iwyu
|
|
bazelisk build //:skia_core --config=linux-rbe --features skia_enforce_iwyu
|