extra_setup.bzl 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License in the LICENSE file at the
  6. # root of this repository, or online at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. load("@//misc/bazel/rules:utils.bzl", "maybe_github_archive")
  16. def protoc_setup():
  17. """
  18. Extra setup required to build `protoc`.
  19. Nothing prevents these rules from being defined in `WORKSPACE`, but because
  20. they're specific to building `protoc` we split them out to reduce noise in
  21. that relatively crowded file.
  22. Note: We could use "@com_google_protobuf//:protobuf_deps.bzl", but that pulls in
  23. unneccessary toolchains that we don't need, like Java, so we manually
  24. specify dependencies here.
  25. """
  26. maybe_github_archive(
  27. name = "com_google_absl",
  28. repo = "https://github.com/abseil/abseil-cpp",
  29. commit = "4a2c63365eff8823a5221db86ef490e828306f9d", # Abseil LTS 20240116.0
  30. sha256 = "2926ae3b70cb9a4cd4f6bb73eac2f16b7c02fa709a87a32a89634eaecc3ac208",
  31. )
  32. maybe_github_archive(
  33. name = "rules_ruby",
  34. repo = "https://github.com/protocolbuffers/rules_ruby",
  35. commit = "b7f3e9756f3c45527be27bc38840d5a1ba690436",
  36. sha256 = "44da36d57fe9f6c94e745f75d852e9acb9f1bd91cc5c14f16940c61669b66f1f",
  37. )
  38. maybe_github_archive(
  39. name = "utf8_range",
  40. repo = "https://github.com/protocolbuffers/utf8_range",
  41. commit = "d863bc33e15cba6d873c878dcca9e6fe52b2f8cb",
  42. sha256 = "c56f0a8c562050e6523a3095cf5610d19c190cd99bac622cc3e5754be51aaa7b",
  43. )