blob: 0046d682e5e2d7afc2929446aa66282a257468f0 [file] [log] [blame]
Spandan Das4f771f12023-03-29 22:25:59 +00001// Copyright (C) 2023 The Android Open Source Project
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
15// This file contains java_system_modules provided by the SDK.
16// These system modules transitively depend on core stub libraries generated from .txt files.
17
18// Same as core-public-stubs-system-modules, but the stubs are generated from .txt files
19java_system_modules {
20 name: "core-public-stubs-system-modules.from-text",
21 visibility: ["//visibility:public"],
22 libs: [
23 "core-current-stubs-for-system-modules-no-annotations.from-text",
24 ],
25 // TODO: Enable after stub generation from .txt file is available
26 enabled: false,
27}
28
29java_library {
30 name: "core-current-stubs-for-system-modules-no-annotations.from-text",
31 visibility: ["//visibility:private"],
32 defaults: [
33 "system-modules-no-annotations",
34 ],
35 static_libs: [
36 "core.current.stubs.from-txt",
37 "core-lambda-stubs-for-system-modules",
38 ],
39 // TODO: Enable after stub generation from .txt file is available
40 enabled: false,
41}
42
43// Same as core-module-lib-stubs-system-modules, but the stubs are generated from .txt files
44java_system_modules {
45 name: "core-module-lib-stubs-system-modules.from-text",
46 visibility: ["//visibility:public"],
47 libs: [
48 "core-module-lib-stubs-for-system-modules-no-annotations.from-text",
49 ],
50 // TODO: Enable after stub generation from .txt file is available
51 enabled: false,
52}
53
54java_library {
55 name: "core-module-lib-stubs-for-system-modules-no-annotations.from-text",
56 visibility: ["//visibility:private"],
57 defaults: [
58 "system-modules-no-annotations",
59 ],
60 static_libs: [
61 "core.module_lib.stubs.txt",
62 "core-lambda-stubs-for-system-modules",
63 ],
64 // TODO: Enable after stub generation from .txt file is available
65 enabled: false,
66}
67
68java_library {
69 name: "core.module_lib.stubs.from-text",
70 static_libs: [
71 "art.module.public.api.stubs.module_lib.from-text",
72
73 // Replace the following with the module-lib correspondence when Conscrypt or i18N module
74 // provides @SystemApi(MODULE_LIBRARIES). Currently, assume that only ART module provides
75 // @SystemApi(MODULE_LIBRARIES).
76 "conscrypt.module.public.api.stubs.from-text",
77 "i18n.module.public.api.stubs.from-text",
78 ],
79 sdk_version: "none",
80 system_modules: "none",
81 visibility: ["//visibility:private"],
82 // TODO: Enable after stub generation from .txt file is available
83 enabled: false,
84}