blob: 2c1ab847d6898bff8861796ce98e5fdad3398478 [file] [log] [blame]
Googler3c84aa82023-04-11 09:40:31 -07001# 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
18load("//:distdir.bzl", "dist_http_file")
19
20def embedded_jdk_repositories():
21 """OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK."""
22 dist_http_file(
23 name = "openjdk_linux_vanilla",
24 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
25 )
26
27 dist_http_file(
28 name = "openjdk_linux_aarch64_vanilla",
29 downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
30 )
31
32 dist_http_file(
33 name = "openjdk_linux_ppc64le_vanilla",
34 downloaded_file_path = "adoptopenjdk-ppc64le-vanilla.tar.gz",
35 )
36
37 dist_http_file(
38 name = "openjdk_linux_s390x_vanilla",
39 downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz",
40 )
41
42 dist_http_file(
43 name = "openjdk_macos_x86_64_vanilla",
44 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
45 )
46
47 dist_http_file(
48 name = "openjdk_macos_aarch64_vanilla",
49 downloaded_file_path = "zulu-macos-aarch64-vanilla.tar.gz",
50 )
51
52 dist_http_file(
53 name = "openjdk_win_vanilla",
54 downloaded_file_path = "zulu-win-vanilla.zip",
55 )
56
57 dist_http_file(
58 name = "openjdk_win_arm64_vanilla",
59 downloaded_file_path = "zulu-win-arm64.zip",
60 )