blob: b63ce4204e278d8f5d9ae49b2f85248ea6ee539b [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}
Spandan Dasa032c352023-03-29 23:44:06 +000085
86// Same as legacy-core-platform-api-stubs-system-modules, but the stubs are generated from .txt files
87java_system_modules {
88 name: "legacy-core-platform-api-stubs-system-modules.from-text",
89 visibility: core_platform_visibility,
90 libs: [
91 "legacy.core.platform.api.no.annotations.stubs.from-text",
92 "core-lambda-stubs-for-system-modules",
93 ],
94 // TODO: Enable after stub generation from .txt file is available
95 enabled: false,
96}
97
98java_library {
99 name: "legacy.core.platform.api.no.annotations.stubs.from-text",
100 visibility: core_platform_visibility,
101 defaults: [
102 "system-modules-no-annotations",
103 ],
104 hostdex: true,
105 compile_dex: true,
106
107 static_libs: [
108 "legacy.core.platform.api.stubs.from-text",
109 ],
110 patch_module: "java.base",
111 // TODO: Enable after stub generation from .txt file is available
112 enabled: false,
113}
114
115// Same as stable-core-platform-api-stubs-system-modules, but the stubs are generated from .txt files
116java_system_modules {
117 name: "stable-core-platform-api-stubs-system-modules.from-text",
118 visibility: core_platform_visibility,
119 libs: [
120 "stable.core.platform.api.no.annotations.stubs.from-text",
121 "core-lambda-stubs-for-system-modules",
122 ],
123 // TODO: Enable after stub generation from .txt file is available
124 enabled: false,
125}
126
127java_library {
128 name: "stable.core.platform.api.no.annotations.stubs.from-text",
129 visibility: core_platform_visibility,
130 defaults: [
131 "system-modules-no-annotations",
132 ],
133 hostdex: true,
134 compile_dex: true,
135
136 static_libs: [
137 "stable.core.platform.api.stubs.from-text",
138 ],
139 patch_module: "java.base",
140 // TODO: Enable after stub generation from .txt file is available
141 enabled: false,
142}