Neil Fuller | 6bf280b | 2018-09-10 12:37:16 +0100 | [diff] [blame] | 1 | // Copyright (C) 2018 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 | |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 15 | // Referenced implicitly from art.module.intra.core.api. |
Bob Badour | 4f70e80 | 2021-02-03 19:03:54 -0800 | [diff] [blame] | 16 | package { |
| 17 | // http://go/android-license-faq |
| 18 | // A large-scale-change added 'default_applicable_licenses' to import |
| 19 | // the below license kinds from "libcore_license": |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | // SPDX-license-identifier-GPL |
| 22 | // SPDX-license-identifier-GPL-2.0 |
| 23 | // SPDX-license-identifier-LGPL |
| 24 | // SPDX-license-identifier-MIT |
| 25 | // SPDX-license-identifier-W3C |
| 26 | default_applicable_licenses: ["libcore_license"], |
| 27 | } |
| 28 | |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 29 | filegroup { |
| 30 | name: "art.module.intra.core.api.api.public.latest", |
Paul Duffin | a38da2d | 2019-10-01 17:49:50 +0100 | [diff] [blame] | 31 | srcs: [ |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 32 | "api/intra/last-api.txt", |
Paul Duffin | a38da2d | 2019-10-01 17:49:50 +0100 | [diff] [blame] | 33 | ], |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 34 | } |
Neil Fuller | 6bf280b | 2018-09-10 12:37:16 +0100 | [diff] [blame] | 35 | |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 36 | // Referenced implicitly from art.module.intra.core.api. |
| 37 | filegroup { |
| 38 | name: "art.module.intra.core.api-removed.api.public.latest", |
| 39 | srcs: [ |
| 40 | "api/intra/last-removed.txt", |
| 41 | ], |
Neil Fuller | 6bf280b | 2018-09-10 12:37:16 +0100 | [diff] [blame] | 42 | } |
| 43 | |
Jaewoong Jung | 4dc28fd | 2021-03-09 16:08:49 -0800 | [diff] [blame] | 44 | // Referenced implicitly from art.module.intra.core.api. |
| 45 | filegroup { |
| 46 | name: "art.module.intra.core.api-incompatibilities.api.public.latest", |
| 47 | srcs: [ |
| 48 | "api/intra/last-incompatibilities.txt", |
| 49 | ], |
| 50 | } |
| 51 | |
Paul Duffin | a38da2d | 2019-10-01 17:49:50 +0100 | [diff] [blame] | 52 | // A library containing the intra-core API stubs of the ART module. |
| 53 | // |
| 54 | // Intra-core APIs are only intended for the use of other core library modules. |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 55 | // |
| 56 | // The API specification .txt files managed by this only contain the additional |
| 57 | // classes/members that are in the intra-core API but which are not the public API. |
| 58 | java_sdk_library { |
| 59 | name: "art.module.intra.core.api", |
Paul Duffin | a38da2d | 2019-10-01 17:49:50 +0100 | [diff] [blame] | 60 | visibility: [ |
Paul Duffin | 317bd51 | 2019-10-02 14:51:13 +0100 | [diff] [blame] | 61 | "//libcore/mmodules/core_platform_api", |
Paul Duffin | a38da2d | 2019-10-01 17:49:50 +0100 | [diff] [blame] | 62 | ], |
| 63 | srcs: [ |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 64 | ":art_module_api_files", |
Paul Duffin | a38da2d | 2019-10-01 17:49:50 +0100 | [diff] [blame] | 65 | ], |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 66 | api_dir: "api/intra", |
| 67 | api_only: true, |
| 68 | droiddoc_options: [ |
| 69 | "--hide-annotation libcore.api.Hide", |
| 70 | "--show-single-annotation libcore.api.IntraCoreApi", |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 71 | ], |
| 72 | merge_inclusion_annotations_dirs: ["ojluni-annotated-mmodule-stubs"], |
Neil Fuller | 6bf280b | 2018-09-10 12:37:16 +0100 | [diff] [blame] | 73 | |
Paul Duffin | 83c2538 | 2019-06-07 14:10:49 +0100 | [diff] [blame] | 74 | sdk_version: "none", |
Paul Duffin | a8173c5 | 2019-09-24 13:04:42 +0100 | [diff] [blame] | 75 | system_modules: "none", |
Paul Duffin | 1d7d4a7 | 2019-10-10 18:15:01 +0100 | [diff] [blame] | 76 | patch_module: "java.base", |
Paul Duffin | 81a0fdf | 2020-11-19 19:21:07 +0000 | [diff] [blame] | 77 | |
| 78 | // Don't copy any output files to the dist. |
| 79 | no_dist: true, |
Neil Fuller | 6bf280b | 2018-09-10 12:37:16 +0100 | [diff] [blame] | 80 | } |
| 81 | |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 82 | // Bootstrap the art-module-intra-core-api-stubs-system-modules. |
| 83 | // |
| 84 | // This is needed to build art-module-intra-core-api-stubs-system-modules-lib |
| 85 | // which is in turn needed to build art-module-intra-core-api-stubs-system-modules |
| 86 | java_system_modules { |
| 87 | name: "art-module-intra-core-api-stubs-bootstrap-system-modules", |
| 88 | libs: [ |
| 89 | // The intra core API stubs library. |
| 90 | "art.module.intra.core.api.stubs", |
| 91 | ], |
| 92 | } |
| 93 | |
| 94 | // A library containing additional classes that are needed in the system modules. |
| 95 | java_library { |
| 96 | name: "art-module-intra-core-api-stubs-system-modules-lib", |
| 97 | srcs: [ |
| 98 | ":openjdk_lambda_stub_files", |
| 99 | ":openjdk_generated_annotation_stub_files", |
| 100 | ], |
| 101 | libs: [ |
| 102 | "art.module.intra.core.api", |
| 103 | ], |
| 104 | system_modules: "art-module-intra-core-api-stubs-bootstrap-system-modules", |
| 105 | sdk_version: "none", |
| 106 | patch_module: "java.base", |
| 107 | } |
| 108 | |
Paul Duffin | a38da2d | 2019-10-01 17:49:50 +0100 | [diff] [blame] | 109 | // Used when compiling against art.module.intra.core.api.stubs. |
| 110 | java_system_modules { |
| 111 | name: "art-module-intra-core-api-stubs-system-modules", |
| 112 | visibility: [ |
Paul Duffin | 5db4b03 | 2020-02-07 14:54:34 +0000 | [diff] [blame] | 113 | "//art/build/sdk", |
Paul Duffin | f545bc7 | 2019-10-02 14:07:04 +0100 | [diff] [blame] | 114 | "//external/bouncycastle", |
Paul Duffin | a38da2d | 2019-10-01 17:49:50 +0100 | [diff] [blame] | 115 | "//external/conscrypt", |
| 116 | "//external/icu/android_icu4j", |
| 117 | ], |
Paul Duffin | 918d459 | 2020-02-07 15:26:39 +0000 | [diff] [blame] | 118 | libs: [ |
| 119 | // The intra core API stubs library. |
| 120 | "art.module.intra.core.api.stubs", |
| 121 | |
| 122 | // Additional classes needed by javac but which are not present in the stubs. |
| 123 | "art-module-intra-core-api-stubs-system-modules-lib", |
| 124 | ], |
Paul Duffin | a38da2d | 2019-10-01 17:49:50 +0100 | [diff] [blame] | 125 | } |