Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 1 | # Copyright 2023 The Bazel Authors. 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 at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | """Macros for defining dependencies we need to build Bazel. |
| 15 | |
| 16 | """ |
| 17 | |
Googler | c1d753e | 2024-10-04 13:59:07 -0700 | [diff] [blame] | 18 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") |
Yun Peng | 849da31 | 2024-01-30 10:16:17 -0800 | [diff] [blame] | 19 | load("//src/tools/bzlmod:utils.bzl", "get_canonical_repo_name") |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 20 | |
| 21 | ################################################################################## |
| 22 | # |
| 23 | # The list of repositories required while bootstrapping Bazel offline |
| 24 | # |
| 25 | ################################################################################## |
| 26 | DIST_ARCHIVE_REPOS = [get_canonical_repo_name(repo) for repo in [ |
Fabian Meumertzheim | b9a0578 | 2024-05-13 09:18:57 -0700 | [diff] [blame] | 27 | # keep sorted |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 28 | "abseil-cpp", |
| 29 | "apple_support", |
| 30 | "bazel_skylib", |
| 31 | "blake3", |
| 32 | "c-ares", |
| 33 | "com_github_grpc_grpc", |
Xdng Yng | c46b9ce | 2024-10-01 14:21:54 -0700 | [diff] [blame] | 34 | "googleapis", |
| 35 | "grpc-java", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 36 | "io_bazel_skydoc", |
| 37 | "platforms", |
Googler | 6f93554 | 2024-10-24 13:59:33 -0700 | [diff] [blame] | 38 | "protobuf", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 39 | "rules_cc", |
| 40 | "rules_go", |
Fabian Meumertzheim | b9a0578 | 2024-05-13 09:18:57 -0700 | [diff] [blame] | 41 | "rules_graalvm", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 42 | "rules_java", |
| 43 | "rules_jvm_external", |
Yun Peng | 849da31 | 2024-01-30 10:16:17 -0800 | [diff] [blame] | 44 | "rules_kotlin", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 45 | "rules_license", |
| 46 | "rules_pkg", |
| 47 | "rules_proto", |
| 48 | "rules_python", |
Googler | b89ec43 | 2024-10-07 10:05:35 -0700 | [diff] [blame] | 49 | "rules_shell", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 50 | "zlib", |
| 51 | "zstd-jni", |
Xdng Yng | c46b9ce | 2024-10-01 14:21:54 -0700 | [diff] [blame] | 52 | ]] + [(get_canonical_repo_name("com_github_grpc_grpc") + "+grpc_repo_deps_ext+" + suffix) for suffix in [ |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 53 | # Extra grpc dependencies introduced via its module extension |
Xdng Yng | c46b9ce | 2024-10-01 14:21:54 -0700 | [diff] [blame] | 54 | "com_envoyproxy_protoc_gen_validate", |
| 55 | "com_github_cncf_xds", |
| 56 | "envoy_api", |
| 57 | "google_cloud_cpp", |
| 58 | "io_opencensus_cpp", |
| 59 | ]] + [ |
| 60 | "bazel_features+", |
| 61 | "rules_apple+", |
| 62 | "rules_foreign_cc+", |
| 63 | "rules_fuzzing+", |
| 64 | "rules_swift+", |
| 65 | ] |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 66 | |
| 67 | ################################################################################## |
| 68 | # |
| 69 | # Make sure all URLs below are mirrored to https://mirror.bazel.build |
| 70 | # |
| 71 | ################################################################################## |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 72 | |
| 73 | def embedded_jdk_repositories(): |
| 74 | """OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.""" |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 75 | http_file( |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 76 | name = "openjdk_linux_vanilla", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 77 | integrity = "sha256-MY0MLtPIdvt+oslSlFzc997PtSZMpRrs4VnmNaxT1UQ=", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 78 | downloaded_file_path = "zulu-linux-vanilla.tar.gz", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 79 | url = "https://cdn.azul.com/zulu/bin/zulu21.36.17-ca-jdk21.0.4-linux_x64.tar.gz", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 80 | ) |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 81 | http_file( |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 82 | name = "openjdk_linux_aarch64_vanilla", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 83 | integrity = "sha256-2jwtfbM2cLz2ZTJEGut/M9zw0ifI2v5841zuZ/aCnEw=", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 84 | downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 85 | url = "https://cdn.azul.com/zulu/bin/zulu21.36.17-ca-jdk21.0.4-linux_aarch64.tar.gz", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 86 | ) |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 87 | http_file( |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 88 | name = "openjdk_linux_s390x_vanilla", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 89 | integrity = "sha256-yQDI1k+rHlMnSXT6Skxzalo3VEhaXFb0lHKBSAdzZYo=", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 90 | downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 91 | url = "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_s390x_linux_hotspot_21.0.4_7.tar.gz", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 92 | ) |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 93 | http_file( |
| 94 | name = "openjdk_linux_ppc64le_vanilla", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 95 | integrity = "sha256-wgjND7kFYGRKkPkoZn0vU7/kCMlXpeNiBlha2HRCd2E=", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 96 | downloaded_file_path = "adoptopenjdk-ppc64le-vanilla.tar.gz", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 97 | url = "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.4_7.tar.gz", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 98 | ) |
| 99 | http_file( |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 100 | name = "openjdk_macos_x86_64_vanilla", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 101 | integrity = "sha256-XOdaaiR8cCm3TEynz29g/SstaM4eiVb7RI0phDFrX+o=", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 102 | downloaded_file_path = "zulu-macos-vanilla.tar.gz", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 103 | url = "https://cdn.azul.com/zulu/bin/zulu21.36.17-ca-jdk21.0.4-macosx_x64.tar.gz", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 104 | ) |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 105 | http_file( |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 106 | name = "openjdk_macos_aarch64_vanilla", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 107 | integrity = "sha256-vCdQ+BoWbMbpwwroqrpU8lOoyOydjPwEpVX+IHEse/8=", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 108 | downloaded_file_path = "zulu-macos-aarch64-vanilla.tar.gz", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 109 | url = "https://cdn.azul.com/zulu/bin/zulu21.36.17-ca-jdk21.0.4-macosx_aarch64.tar.gz", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 110 | ) |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 111 | http_file( |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 112 | name = "openjdk_win_vanilla", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 113 | integrity = "sha256-13Ha0Q0/C0QMNobR89K2izIIAqyXshLYdnGvPy7viEg=", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 114 | downloaded_file_path = "zulu-win-vanilla.zip", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 115 | url = "https://cdn.azul.com/zulu/bin/zulu21.36.17-ca-jdk21.0.4-win_x64.zip", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 116 | ) |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 117 | http_file( |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 118 | name = "openjdk_win_arm64_vanilla", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 119 | integrity = "sha256-n4c+zPAwsdPch57B6w/14Rv3YALcgcXGRMNGK/bFFGs=", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 120 | downloaded_file_path = "zulu-win-arm64.zip", |
Fabian Meumertzheim | 78b8871 | 2024-10-10 04:51:13 -0700 | [diff] [blame] | 121 | url = "https://cdn.azul.com/zulu/bin/zulu21.36.17-ca-jdk21.0.4-win_aarch64.zip", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 122 | ) |