Spandan Das | 4f771f1 | 2023-03-29 22:25:59 +0000 | [diff] [blame] | 1 | // 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 |
| 19 | java_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 Das | 4f771f1 | 2023-03-29 22:25:59 +0000 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | java_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 Das | 0cb803a | 2023-04-03 23:20:28 +0000 | [diff] [blame] | 34 | "core.current.stubs.from-text", |
Spandan Das | 760f880 | 2023-04-03 23:27:25 +0000 | [diff] [blame] | 35 | "core-lambda-stubs.from-text", |
Spandan Das | 4f771f1 | 2023-03-29 22:25:59 +0000 | [diff] [blame] | 36 | ], |
Spandan Das | 4f771f1 | 2023-03-29 22:25:59 +0000 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | // Same as core-module-lib-stubs-system-modules, but the stubs are generated from .txt files |
| 40 | java_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 Das | 4f771f1 | 2023-03-29 22:25:59 +0000 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | java_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 Das | 0cb803a | 2023-04-03 23:20:28 +0000 | [diff] [blame] | 55 | "core.module_lib.stubs.from-text", |
Spandan Das | 760f880 | 2023-04-03 23:27:25 +0000 | [diff] [blame] | 56 | "core-lambda-stubs.from-text", |
Spandan Das | 4f771f1 | 2023-03-29 22:25:59 +0000 | [diff] [blame] | 57 | ], |
Spandan Das | 4f771f1 | 2023-03-29 22:25:59 +0000 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | java_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 Das | 4f771f1 | 2023-03-29 22:25:59 +0000 | [diff] [blame] | 74 | } |
Spandan Das | a032c35 | 2023-03-29 23:44:06 +0000 | [diff] [blame] | 75 | |
| 76 | // Same as legacy-core-platform-api-stubs-system-modules, but the stubs are generated from .txt files |
| 77 | java_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 Das | 760f880 | 2023-04-03 23:27:25 +0000 | [diff] [blame] | 82 | "core-lambda-stubs.from-text", |
Spandan Das | a032c35 | 2023-03-29 23:44:06 +0000 | [diff] [blame] | 83 | ], |
Spandan Das | a032c35 | 2023-03-29 23:44:06 +0000 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | java_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 Das | a032c35 | 2023-03-29 23:44:06 +0000 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | // Same as stable-core-platform-api-stubs-system-modules, but the stubs are generated from .txt files |
| 102 | java_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 Das | 760f880 | 2023-04-03 23:27:25 +0000 | [diff] [blame] | 107 | "core-lambda-stubs.from-text", |
Spandan Das | a032c35 | 2023-03-29 23:44:06 +0000 | [diff] [blame] | 108 | ], |
Spandan Das | a032c35 | 2023-03-29 23:44:06 +0000 | [diff] [blame] | 109 | } |
| 110 | |
| 111 | java_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 Das | a032c35 | 2023-03-29 23:44:06 +0000 | [diff] [blame] | 124 | } |
Spandan Das | 760f880 | 2023-04-03 23:27:25 +0000 | [diff] [blame] | 125 | |
| 126 | java_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 Das | 760f880 | 2023-04-03 23:27:25 +0000 | [diff] [blame] | 136 | } |