xref: /aosp_15_r20/build/bazel/rules/apex/apex_info.bzl (revision 7594170e27e0732bc44b93d1440d87a54b6ffe7c)
1# Copyright (C) 2022 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
15ApexInfo = provider(
16    "ApexInfo exports metadata about this apex.",
17    fields = {
18        "backing_libs": "File containing libraries used by the APEX.",
19        "base_file": "A zip file used to create aab files.",
20        "base_with_config_zip": "A zip file used to create aab files within mixed builds.",
21        "bundle_key_info": "APEX bundle signing public/private key pair (the value of the key: attribute).",
22        "container_key_info": "Info of the container key provided as AndroidAppCertificateInfo.",
23        "installed_files": "File containing all files installed by the APEX",
24        "java_symbols_used_by_apex": "Java symbol list used by this APEX.",
25        "package_name": "APEX package name.",
26        "provides_native_libs": "Labels of native shared libs that this apex provides.",
27        "requires_native_libs": "Labels of native shared libs that this apex requires.",
28        "signed_compressed_output": "Signed .capex file.",
29        "signed_output": "Signed .apex file.",
30        "symbols_used_by_apex": "Symbol list used by this APEX.",
31        "unsigned_output": "Unsigned .apex file.",
32    },
33)
34
35ApexMkInfo = provider(
36    "ApexMkInfo exports metadata about this apex for Android.mk integration / bundled builds.",
37    fields = {
38        "make_modules_to_install": "Make module names that should be installed to the system along with this APEX.",
39        "files_info": "Metadata about the files included in the APEX payload. Used for generating Make code for final packaging step (e.g. coverage zip files).",
40    },
41)
42