xref: /aosp_15_r20/system/update_engine/stable/Android.bp (revision 5a9231315b4521097b8dc3750bc806fcafe0c72f)
1//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17// Stable AIDL interface between update_engine and other APEXes
18// ========================================================
19package {
20    // See: http://go/android-license-faq
21    // A large-scale-change added 'default_applicable_licenses' to import
22    // all of the 'license_kinds' from "system_update_engine_license"
23    // to get the below license kinds:
24    //   SPDX-license-identifier-Apache-2.0
25    default_applicable_licenses: ["system_update_engine_license"],
26}
27
28aidl_interface {
29    name: "libupdate_engine_stable",
30
31    // This header library is available to core and product modules.
32    product_available: true,
33
34    srcs: [
35        "android/os/IUpdateEngineStable.aidl",
36        "android/os/IUpdateEngineStableCallback.aidl",
37    ],
38    backend: {
39        cpp: {
40            enabled: true,
41        },
42        java: {
43            enabled: true,
44        },
45        ndk: {
46            enabled: true,
47            apex_available: [
48                "com.android.gki.*",
49            ],
50        },
51    },
52    versions_with_info: [
53        {
54            version: "1",
55            imports: [],
56        },
57        {
58            version: "2",
59            imports: [],
60        },
61        {
62            version: "3",
63            imports: [],
64        },
65
66    ],
67    frozen: true,
68
69}
70
71// update_engine_stable_client (type: executable)
72// ========================================================
73// update_engine console client installed to APEXes.
74cc_binary {
75    name: "update_engine_stable_client",
76    product_specific: true,
77    header_libs: [
78        "libupdate_engine_headers",
79    ],
80    shared_libs: [
81        "libbinder_ndk",
82        "libbase",
83        "liblog",
84    ],
85    static_libs: [
86        "libgflags",
87        "libupdate_engine_stable-V2-ndk",
88    ],
89    srcs: [
90        "update_engine_stable_client.cc",
91    ],
92    apex_available: [
93        "com.android.gki.*",
94    ],
95}
96