Paul Duffin | 1128114 | 2021-01-25 18:31:26 +0000 | [diff] [blame] | 1 | // Copyright (C) 2021 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 | |
Bob Badour | 051ef78 | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "frameworks_base_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | // SPDX-license-identifier-MIT |
| 22 | // SPDX-license-identifier-Unicode-DFS |
| 23 | default_applicable_licenses: ["frameworks_base_license"], |
| 24 | } |
| 25 | |
Paul Duffin | 3e4ec3b | 2021-04-01 11:53:32 +0100 | [diff] [blame] | 26 | // This module provides access to information Soong has related to the |
| 27 | // whole platform bootclasspath. Currently, that information is provided solely |
| 28 | // through configuration but additional information will be added here. |
| 29 | // |
| 30 | // This will provide support for the following: |
| 31 | // * Hidden API processing for those parts of the bootclasspath that are not |
| 32 | // part of an APEX. |
| 33 | // * Compatibility checking to ensure that the hidden API bits encoded into the |
| 34 | // dex files by the modularized hidden API processing is compatible with the |
| 35 | // runtimes of earlier releases which expect the bits to have been computed |
| 36 | // over the entirety of the bootclasspath in one go not separately. |
| 37 | // * Dexpreopting apps and other libraries not on the platform bootclasspath. |
| 38 | // * Generating and installing the appropriate files to the device which will |
| 39 | // allow it to generate the bootclasspath related environment variables |
| 40 | // dynamically. |
| 41 | // |
| 42 | // This module needs to be present in the build for the above processing to be |
| 43 | // done correctly. |
| 44 | platform_bootclasspath { |
| 45 | name: "platform-bootclasspath", |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 46 | |
Paul Duffin | b2d391d | 2021-04-08 09:05:39 +0100 | [diff] [blame] | 47 | // The bootclasspath_fragments that contribute to the platform |
| 48 | // bootclasspath. |
| 49 | fragments: [ |
| 50 | { |
| 51 | apex: "com.android.art", |
| 52 | module: "art-bootclasspath-fragment", |
| 53 | }, |
Paul Duffin | fc8fd10 | 2021-04-14 19:17:52 +0100 | [diff] [blame] | 54 | { |
| 55 | apex: "com.android.i18n", |
| 56 | module: "i18n-bootclasspath-fragment", |
| 57 | }, |
Paul Duffin | b2d391d | 2021-04-08 09:05:39 +0100 | [diff] [blame] | 58 | ], |
| 59 | |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 60 | // Additional information needed by hidden api processing. |
| 61 | hidden_api: { |
| 62 | unsupported: [ |
| 63 | "hiddenapi/hiddenapi-unsupported.txt", |
| 64 | ], |
| 65 | removed: [ |
| 66 | ":combined-removed-dex", |
| 67 | ], |
| 68 | max_target_r_low_priority: [ |
| 69 | "hiddenapi/hiddenapi-max-target-r-loprio.txt", |
| 70 | ], |
| 71 | max_target_q: [ |
| 72 | "hiddenapi/hiddenapi-max-target-q.txt", |
| 73 | ], |
| 74 | max_target_p: [ |
| 75 | "hiddenapi/hiddenapi-max-target-p.txt", |
| 76 | ], |
| 77 | max_target_o_low_priority: [ |
| 78 | "hiddenapi/hiddenapi-max-target-o.txt", |
| 79 | ], |
Paul Duffin | 81af1f5 | 2021-04-08 19:22:50 +0100 | [diff] [blame] | 80 | unsupported_packages: [ |
| 81 | "hiddenapi/hiddenapi-unsupported-packages.txt", |
| 82 | ], |
| 83 | }, |
Paul Duffin | 3969fad | 2021-04-12 12:57:06 +0100 | [diff] [blame] | 84 | |
| 85 | dists: [ |
| 86 | { |
| 87 | targets: ["droidcore"], |
| 88 | tag: "hiddenapi-flags.csv", |
| 89 | }, |
| 90 | { |
| 91 | targets: ["droidcore"], |
| 92 | tag: "hiddenapi-index.csv", |
| 93 | }, |
| 94 | { |
| 95 | targets: ["droidcore"], |
| 96 | tag: "hiddenapi-metadata.csv", |
| 97 | // Legacy name |
| 98 | dest: "hiddenapi-unsupported.csv", |
| 99 | }, |
| 100 | ], |
satayev | 8e93d88 | 2021-04-29 11:54:02 +0100 | [diff] [blame] | 101 | |
| 102 | required: [ |
| 103 | "platform-systemserverclasspath", |
| 104 | ], |
| 105 | } |
| 106 | |
| 107 | platform_systemserverclasspath { |
| 108 | name: "platform-systemserverclasspath", |
Paul Duffin | 1128114 | 2021-01-25 18:31:26 +0000 | [diff] [blame] | 109 | } |