blob: a415ac5ef6c39a427d9ff8dee430b9b7dd9feb18 [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// ========================================================
19aidl_interface {
20 name: "libupdate_engine_stable",
Yifan Hong309c8a82020-10-06 18:31:08 -070021
22 // This header library is available to core and product modules.
23 // Right now, vendor_available is the only way to specify this.
24 // vendor modules should NOT use this library.
25 // TODO(b/150902910): change this to product_available.
26 vendor_available: true,
27
Yifan Hong2b291f02020-07-21 18:46:26 -070028 srcs: [
29 "android/os/IUpdateEngineStable.aidl",
30 "android/os/IUpdateEngineStableCallback.aidl",
31 ],
32 backend: {
33 cpp: {
34 enabled: true,
35 },
36 java: {
37 enabled: false,
38 },
39 ndk: {
40 enabled: true,
41 apex_available: [
42 "com.android.gki.*",
43 ],
44 },
45 },
46}
Yifan Hongd51738c2020-07-23 17:06:25 -070047
48// update_engine_stable_client (type: executable)
49// ========================================================
Yifan Hong309c8a82020-10-06 18:31:08 -070050// update_engine console client installed to APEXes.
Yifan Hongd51738c2020-07-23 17:06:25 -070051cc_binary {
52 name: "update_engine_stable_client",
Yifan Hong309c8a82020-10-06 18:31:08 -070053 product_specific: true,
Yifan Hongd51738c2020-07-23 17:06:25 -070054 header_libs: [
55 "libupdate_engine_headers",
56 ],
57 shared_libs: [
58 "libbinder_ndk",
59 "libbase",
60 "liblog",
61 ],
62 static_libs: [
63 "libgflags",
64 "libupdate_engine_stable-ndk_platform",
65 ],
66 srcs: [
67 "update_engine_stable_client.cc",
68 ],
69 apex_available: [
70 "com.android.gki.*",
71 ],
72}