blob: 0cf0f360b35560af36eebd6416252b3577fa6a91 [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 ],
Spandan Das4f771f12023-03-29 22:25:59 +000025}
26
27java_library {
28 name: "core-current-stubs-for-system-modules-no-annotations.from-text",
29 visibility: ["//visibility:private"],
30 defaults: [
31 "system-modules-no-annotations",
32 ],
33 static_libs: [
Spandan Das0cb803a2023-04-03 23:20:28 +000034 "core.current.stubs.from-text",
Spandan Das760f8802023-04-03 23:27:25 +000035 "core-lambda-stubs.from-text",
Spandan Das4f771f12023-03-29 22:25:59 +000036 ],
Spandan Das4f771f12023-03-29 22:25:59 +000037}
38
39// Same as core-module-lib-stubs-system-modules, but the stubs are generated from .txt files
40java_system_modules {
41 name: "core-module-lib-stubs-system-modules.from-text",
42 visibility: ["//visibility:public"],
43 libs: [
44 "core-module-lib-stubs-for-system-modules-no-annotations.from-text",
45 ],
Spandan Das4f771f12023-03-29 22:25:59 +000046}
47
48java_library {
49 name: "core-module-lib-stubs-for-system-modules-no-annotations.from-text",
50 visibility: ["//visibility:private"],
51 defaults: [
52 "system-modules-no-annotations",
53 ],
54 static_libs: [
Spandan Das0cb803a2023-04-03 23:20:28 +000055 "core.module_lib.stubs.from-text",
Spandan Das760f8802023-04-03 23:27:25 +000056 "core-lambda-stubs.from-text",
Spandan Das4f771f12023-03-29 22:25:59 +000057 ],
Spandan Das4f771f12023-03-29 22:25:59 +000058}
59
60java_library {
61 name: "core.module_lib.stubs.from-text",
62 static_libs: [
63 "art.module.public.api.stubs.module_lib.from-text",
64
65 // Replace the following with the module-lib correspondence when Conscrypt or i18N module
66 // provides @SystemApi(MODULE_LIBRARIES). Currently, assume that only ART module provides
67 // @SystemApi(MODULE_LIBRARIES).
68 "conscrypt.module.public.api.stubs.from-text",
69 "i18n.module.public.api.stubs.from-text",
70 ],
71 sdk_version: "none",
72 system_modules: "none",
73 visibility: ["//visibility:private"],
Spandan Das4f771f12023-03-29 22:25:59 +000074}
Spandan Dasa032c352023-03-29 23:44:06 +000075
76// Same as legacy-core-platform-api-stubs-system-modules, but the stubs are generated from .txt files
77java_system_modules {
78 name: "legacy-core-platform-api-stubs-system-modules.from-text",
79 visibility: core_platform_visibility,
80 libs: [
81 "legacy.core.platform.api.no.annotations.stubs.from-text",
Spandan Das760f8802023-04-03 23:27:25 +000082 "core-lambda-stubs.from-text",
Spandan Dasa032c352023-03-29 23:44:06 +000083 ],
Spandan Dasa032c352023-03-29 23:44:06 +000084}
85
86java_library {
87 name: "legacy.core.platform.api.no.annotations.stubs.from-text",
88 visibility: core_platform_visibility,
89 defaults: [
90 "system-modules-no-annotations",
91 ],
92 hostdex: true,
93 compile_dex: true,
94
95 static_libs: [
96 "legacy.core.platform.api.stubs.from-text",
97 ],
98 patch_module: "java.base",
Spandan Dasa032c352023-03-29 23:44:06 +000099}
100
101// Same as stable-core-platform-api-stubs-system-modules, but the stubs are generated from .txt files
102java_system_modules {
103 name: "stable-core-platform-api-stubs-system-modules.from-text",
104 visibility: core_platform_visibility,
105 libs: [
106 "stable.core.platform.api.no.annotations.stubs.from-text",
Spandan Das760f8802023-04-03 23:27:25 +0000107 "core-lambda-stubs.from-text",
Spandan Dasa032c352023-03-29 23:44:06 +0000108 ],
Spandan Dasa032c352023-03-29 23:44:06 +0000109}
110
111java_library {
112 name: "stable.core.platform.api.no.annotations.stubs.from-text",
113 visibility: core_platform_visibility,
114 defaults: [
115 "system-modules-no-annotations",
116 ],
117 hostdex: true,
118 compile_dex: true,
119
120 static_libs: [
121 "stable.core.platform.api.stubs.from-text",
122 ],
123 patch_module: "java.base",
Spandan Dasa032c352023-03-29 23:44:06 +0000124}
Spandan Das760f8802023-04-03 23:27:25 +0000125
126java_api_library {
127 name: "core-lambda-stubs.from-text",
128 api_surface: "toolchain",
129 api_contributions: [
130 "art.module.toolchain.api.api.contribution",
131 ],
132 libs: [
133 // LambdaMetaFactory depends on CallSite etc. which is part of the Core API surface
134 "core.current.stubs.from-text",
135 ],
Spandan Das760f8802023-04-03 23:27:25 +0000136}