-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmodules.bzl
More file actions
34 lines (28 loc) · 1.24 KB
/
modules.bzl
File metadata and controls
34 lines (28 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# SPDX-License-Identifier: GPL-2.0 OR Apache-2.0
# Copyright (C) 2025 The Android Open Source Project
"""Re-exports of symbols for external usage regarding to lists of modules.
DO NOT ADD MORE SYMBOLS. Additional symbols for external usage should be added
to bazel/modules.bzl, NOT modules.bzl (this file) or bazel/modules_private.bzl.
"""
load(
":bazel/modules.bzl",
_get_gki_modules_list = "get_gki_modules_list",
_get_kunit_modules_list = "get_kunit_modules_list",
)
visibility("public")
def get_gki_modules_list(*args, **kwargs):
# buildifier: disable=print
print("""
WARNING: {this_modules_bzl} is deprecated. Load get_gki_modules_list() from {new_modules_bzl} instead.""".format(
this_modules_bzl = str(Label(":modules.bzl")),
new_modules_bzl = str(Label(":bazel/modules.bzl")),
))
return _get_gki_modules_list(*args, **kwargs)
def get_kunit_modules_list(*args, **kwargs):
# buildifier: disable=print
print("""
WARNING: {this_modules_bzl} is deprecated. Load get_kunit_modules_list() from {new_modules_bzl} instead.""".format(
this_modules_bzl = str(Label(":modules.bzl")),
new_modules_bzl = str(Label(":bazel/modules.bzl")),
))
return _get_kunit_modules_list(*args, **kwargs)