xref: /aosp_15_r20/bootable/libbootloader/gbl/bazel.MODULE.bazel (revision 5225e6b173e52d2efc6bcf950c27374fd72adabc)
1*5225e6b1SAndroid Build Coastguard Worker# Copyright (C) 2024 The Android Open Source Project
2*5225e6b1SAndroid Build Coastguard Worker#
3*5225e6b1SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*5225e6b1SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*5225e6b1SAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*5225e6b1SAndroid Build Coastguard Worker#
7*5225e6b1SAndroid Build Coastguard Worker#       http://www.apache.org/licenses/LICENSE-2.0
8*5225e6b1SAndroid Build Coastguard Worker#
9*5225e6b1SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*5225e6b1SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*5225e6b1SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*5225e6b1SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*5225e6b1SAndroid Build Coastguard Worker# limitations under the License.
14*5225e6b1SAndroid Build Coastguard Worker
15*5225e6b1SAndroid Build Coastguard Worker"""Custom MODULE.bazel definition for GBL.
16*5225e6b1SAndroid Build Coastguard Worker
17*5225e6b1SAndroid Build Coastguard WorkerThis is a stripped down version of Kleaf's MODULE.bazel because this repository does not build
18*5225e6b1SAndroid Build Coastguard Workerkernel.
19*5225e6b1SAndroid Build Coastguard Worker"""
20*5225e6b1SAndroid Build Coastguard Worker
21*5225e6b1SAndroid Build Coastguard Workermodule(
22*5225e6b1SAndroid Build Coastguard Worker    name = "uefi-gbl",
23*5225e6b1SAndroid Build Coastguard Worker    version = "0.0.0",
24*5225e6b1SAndroid Build Coastguard Worker)
25*5225e6b1SAndroid Build Coastguard Worker
26*5225e6b1SAndroid Build Coastguard Workerregister_toolchains(
27*5225e6b1SAndroid Build Coastguard Worker    "//prebuilts/build-tools:py_toolchain",
28*5225e6b1SAndroid Build Coastguard Worker)
29*5225e6b1SAndroid Build Coastguard Worker
30*5225e6b1SAndroid Build Coastguard Workerbazel_dep(
31*5225e6b1SAndroid Build Coastguard Worker    name = "bazel_skylib",
32*5225e6b1SAndroid Build Coastguard Worker)
33*5225e6b1SAndroid Build Coastguard Workerbazel_dep(
34*5225e6b1SAndroid Build Coastguard Worker    name = "platforms",
35*5225e6b1SAndroid Build Coastguard Worker)
36*5225e6b1SAndroid Build Coastguard Workerbazel_dep(
37*5225e6b1SAndroid Build Coastguard Worker    name = "rules_cc",
38*5225e6b1SAndroid Build Coastguard Worker)
39*5225e6b1SAndroid Build Coastguard Workerbazel_dep(
40*5225e6b1SAndroid Build Coastguard Worker    name = "rules_pkg",
41*5225e6b1SAndroid Build Coastguard Worker)
42*5225e6b1SAndroid Build Coastguard Worker
43*5225e6b1SAndroid Build Coastguard Workerlocal_path_override(
44*5225e6b1SAndroid Build Coastguard Worker    module_name = "apple_support",
45*5225e6b1SAndroid Build Coastguard Worker    path = "external/bazelbuild-apple_support",
46*5225e6b1SAndroid Build Coastguard Worker)
47*5225e6b1SAndroid Build Coastguard Worker
48*5225e6b1SAndroid Build Coastguard Workerlocal_path_override(
49*5225e6b1SAndroid Build Coastguard Worker    module_name = "bazel_features",
50*5225e6b1SAndroid Build Coastguard Worker    path = "external/bazel-contrib-bazel_features",
51*5225e6b1SAndroid Build Coastguard Worker)
52*5225e6b1SAndroid Build Coastguard Worker
53*5225e6b1SAndroid Build Coastguard Workerlocal_path_override(
54*5225e6b1SAndroid Build Coastguard Worker    module_name = "bazel_skylib",
55*5225e6b1SAndroid Build Coastguard Worker    path = "external/bazel-skylib",
56*5225e6b1SAndroid Build Coastguard Worker)
57*5225e6b1SAndroid Build Coastguard Worker
58*5225e6b1SAndroid Build Coastguard Workerlocal_path_override(
59*5225e6b1SAndroid Build Coastguard Worker    module_name = "platforms",
60*5225e6b1SAndroid Build Coastguard Worker    path = "external/bazelbuild-platforms",
61*5225e6b1SAndroid Build Coastguard Worker)
62*5225e6b1SAndroid Build Coastguard Worker
63*5225e6b1SAndroid Build Coastguard Workerlocal_path_override(
64*5225e6b1SAndroid Build Coastguard Worker    module_name = "rules_cc",
65*5225e6b1SAndroid Build Coastguard Worker    path = "external/bazelbuild-rules_cc",
66*5225e6b1SAndroid Build Coastguard Worker)
67*5225e6b1SAndroid Build Coastguard Worker
68*5225e6b1SAndroid Build Coastguard Workerlocal_path_override(
69*5225e6b1SAndroid Build Coastguard Worker    module_name = "rules_java",
70*5225e6b1SAndroid Build Coastguard Worker    path = "external/bazelbuild-rules_java",
71*5225e6b1SAndroid Build Coastguard Worker)
72*5225e6b1SAndroid Build Coastguard Worker
73*5225e6b1SAndroid Build Coastguard Workerlocal_path_override(
74*5225e6b1SAndroid Build Coastguard Worker    module_name = "rules_license",
75*5225e6b1SAndroid Build Coastguard Worker    path = "external/bazelbuild-rules_license",
76*5225e6b1SAndroid Build Coastguard Worker)
77*5225e6b1SAndroid Build Coastguard Worker
78*5225e6b1SAndroid Build Coastguard Workerlocal_path_override(
79*5225e6b1SAndroid Build Coastguard Worker    module_name = "rules_pkg",
80*5225e6b1SAndroid Build Coastguard Worker    path = "external/bazelbuild-rules_pkg",
81*5225e6b1SAndroid Build Coastguard Worker)
82*5225e6b1SAndroid Build Coastguard Worker
83*5225e6b1SAndroid Build Coastguard Workerlocal_path_override(
84*5225e6b1SAndroid Build Coastguard Worker    module_name = "rules_python",
85*5225e6b1SAndroid Build Coastguard Worker    path = "external/bazelbuild-rules_python",
86*5225e6b1SAndroid Build Coastguard Worker)
87