skia2/bazel/external
Kevin Lubick 97caefd055 [bazel] Move zlib and libpng out of //third_party/BUILD.bazel
I had to copy some config_settings out of //bazel/common_config_settings
because these are now treated as separate entities and cannot
see that file.

For libpng, note that we use a genrule to create the
pnglibconf.h instead of pointing to one somewhere else.
This ended up being easier than other things I tried.

Another approach would be to not depend on the version
in third_party/externals, but to clone it via
new_git_repository [1] and apply a patch that creates
the configuration file.

[1] https://bazel.build/rules/lib/repo/git#new_git_repository

Bug: skia:12541
Change-Id: I9a284775dc0f2bdabb145518d5f0803c74fb99fa
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/545368
Reviewed-by: Ben Wagner <bungeman@google.com>
2022-06-01 12:19:01 +00:00
..
dawn [bazel] Get GPU examples working 2022-05-31 14:14:54 +00:00
libpng [bazel] Move zlib and libpng out of //third_party/BUILD.bazel 2022-06-01 12:19:01 +00:00
vulkan_headers [bazel] Move third party BUILD.bazel files to bazel/external 2022-05-17 12:13:49 +00:00
vulkan_tools [bazel] Move third party BUILD.bazel files to bazel/external 2022-05-17 12:13:49 +00:00
vulkanmemoryallocator [bazel] Move third party BUILD.bazel files to bazel/external 2022-05-17 12:13:49 +00:00
zlib [bazel] Move zlib and libpng out of //third_party/BUILD.bazel 2022-06-01 12:19:01 +00:00
README.md [bazel] Move third party BUILD.bazel files to bazel/external 2022-05-17 12:13:49 +00:00

This folder is where we put BUILD.bazel files for external (e.g. third party) dependencies.

If a dependency supports Bazel, we should use those rules, but if the dependency does not, we need to create our own rules in a subdirectory.

These BUILD.bazel files are used in WORKSPACE.bazel (e.g. new_local_repository or new_git_repository).