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" \
|
2021-11-30 20:59:32 +00:00
|
|
|
include src tools \
|
|
|
|
modules/skshaper modules/svg modules/skresources modules/skparagraph modules/skunicode \
|
2022-01-11 12:35:26 +00:00
|
|
|
experimental/bazel_test experimental/graphite example
|
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:
|
|
|
|
bazelisk build //experimental/bazel_test/... --config=clang
|
2022-01-11 12:35:26 +00:00
|
|
|
bazelisk run //experimental/bazel_test:bazel_test_exe --config=clang
|
2022-01-06 16:19:22 +00:00
|
|
|
bazelisk build //:skia_core --config=clang --sandbox_base=/dev/shm
|
2022-01-11 12:35:26 +00:00
|
|
|
bazelisk build //src/sksl/lex:sksllex --config=clang --sandbox_base=/dev/shm
|
|
|
|
bazelisk build //tools/skdiff --config=clang --sandbox_base=/dev/shm
|
|
|
|
bazelisk build //example:hello_world --config=clang --sandbox_base=/dev/shm
|