xref: /aosp_15_r20/build/bazel/rules/apex/apex_info.bzl (revision 7594170e27e0732bc44b93d1440d87a54b6ffe7c)
1*7594170eSAndroid Build Coastguard Worker# Copyright (C) 2022 The Android Open Source Project
2*7594170eSAndroid Build Coastguard Worker#
3*7594170eSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*7594170eSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*7594170eSAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*7594170eSAndroid Build Coastguard Worker#
7*7594170eSAndroid Build Coastguard Worker#     http://www.apache.org/licenses/LICENSE-2.0
8*7594170eSAndroid Build Coastguard Worker#
9*7594170eSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*7594170eSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*7594170eSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*7594170eSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*7594170eSAndroid Build Coastguard Worker# limitations under the License.
14*7594170eSAndroid Build Coastguard Worker
15*7594170eSAndroid Build Coastguard WorkerApexInfo = provider(
16*7594170eSAndroid Build Coastguard Worker    "ApexInfo exports metadata about this apex.",
17*7594170eSAndroid Build Coastguard Worker    fields = {
18*7594170eSAndroid Build Coastguard Worker        "backing_libs": "File containing libraries used by the APEX.",
19*7594170eSAndroid Build Coastguard Worker        "base_file": "A zip file used to create aab files.",
20*7594170eSAndroid Build Coastguard Worker        "base_with_config_zip": "A zip file used to create aab files within mixed builds.",
21*7594170eSAndroid Build Coastguard Worker        "bundle_key_info": "APEX bundle signing public/private key pair (the value of the key: attribute).",
22*7594170eSAndroid Build Coastguard Worker        "container_key_info": "Info of the container key provided as AndroidAppCertificateInfo.",
23*7594170eSAndroid Build Coastguard Worker        "installed_files": "File containing all files installed by the APEX",
24*7594170eSAndroid Build Coastguard Worker        "java_symbols_used_by_apex": "Java symbol list used by this APEX.",
25*7594170eSAndroid Build Coastguard Worker        "package_name": "APEX package name.",
26*7594170eSAndroid Build Coastguard Worker        "provides_native_libs": "Labels of native shared libs that this apex provides.",
27*7594170eSAndroid Build Coastguard Worker        "requires_native_libs": "Labels of native shared libs that this apex requires.",
28*7594170eSAndroid Build Coastguard Worker        "signed_compressed_output": "Signed .capex file.",
29*7594170eSAndroid Build Coastguard Worker        "signed_output": "Signed .apex file.",
30*7594170eSAndroid Build Coastguard Worker        "symbols_used_by_apex": "Symbol list used by this APEX.",
31*7594170eSAndroid Build Coastguard Worker        "unsigned_output": "Unsigned .apex file.",
32*7594170eSAndroid Build Coastguard Worker    },
33*7594170eSAndroid Build Coastguard Worker)
34*7594170eSAndroid Build Coastguard Worker
35*7594170eSAndroid Build Coastguard WorkerApexMkInfo = provider(
36*7594170eSAndroid Build Coastguard Worker    "ApexMkInfo exports metadata about this apex for Android.mk integration / bundled builds.",
37*7594170eSAndroid Build Coastguard Worker    fields = {
38*7594170eSAndroid Build Coastguard Worker        "make_modules_to_install": "Make module names that should be installed to the system along with this APEX.",
39*7594170eSAndroid Build Coastguard Worker        "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*7594170eSAndroid Build Coastguard Worker    },
41*7594170eSAndroid Build Coastguard Worker)
42