blob: 5e54e9a0be1440fccd3a74373ab47fae1fa2fea2 [file] [log] [blame]
Yifan Hong2b291f02020-07-21 18:46:26 -07001//
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// ========================================================
Bob Badour9b85a6c2021-02-12 21:28:32 -080019package {
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
Yifan Hong2b291f02020-07-21 18:46:26 -070028aidl_interface {
29 name: "libupdate_engine_stable",
Yifan Hong309c8a82020-10-06 18:31:08 -070030
31 // This header library is available to core and product modules.
Justin Yun6d121de2020-11-11 19:31:57 +090032 product_available: true,
Yifan Hong309c8a82020-10-06 18:31:08 -070033
Yifan Hong2b291f02020-07-21 18:46:26 -070034 srcs: [
35 "android/os/IUpdateEngineStable.aidl",
36 "android/os/IUpdateEngineStableCallback.aidl",
37 ],
38 backend: {
39 cpp: {
40 enabled: true,
41 },
42 java: {
43 enabled: false,
44 },
45 ndk: {
46 enabled: true,
47 apex_available: [
48 "com.android.gki.*",
49 ],
50 },
51 },
52}
Yifan Hongd51738c2020-07-23 17:06:25 -070053
54// update_engine_stable_client (type: executable)
55// ========================================================
Yifan Hong309c8a82020-10-06 18:31:08 -070056// update_engine console client installed to APEXes.
Yifan Hongd51738c2020-07-23 17:06:25 -070057cc_binary {
58 name: "update_engine_stable_client",
Yifan Hong309c8a82020-10-06 18:31:08 -070059 product_specific: true,
Yifan Hongd51738c2020-07-23 17:06:25 -070060 header_libs: [
61 "libupdate_engine_headers",
62 ],
63 shared_libs: [
64 "libbinder_ndk",
65 "libbase",
66 "liblog",
67 ],
68 static_libs: [
69 "libgflags",
Jeongik Cha95f89e92021-01-26 22:33:11 +090070 "libupdate_engine_stable-V1-ndk_platform",
Yifan Hongd51738c2020-07-23 17:06:25 -070071 ],
72 srcs: [
73 "update_engine_stable_client.cc",
74 ],
75 apex_available: [
76 "com.android.gki.*",
77 ],
78}