Yifan Hong | 2b291f0 | 2020-07-21 18:46:26 -0700 | [diff] [blame] | 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 | // ======================================================== |
| 19 | aidl_interface { |
| 20 | name: "libupdate_engine_stable", |
Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 21 | |
| 22 | // This header library is available to core and product modules. |
Justin Yun | 6d121de | 2020-11-11 19:31:57 +0900 | [diff] [blame^] | 23 | product_available: true, |
Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 24 | |
Yifan Hong | 2b291f0 | 2020-07-21 18:46:26 -0700 | [diff] [blame] | 25 | srcs: [ |
| 26 | "android/os/IUpdateEngineStable.aidl", |
| 27 | "android/os/IUpdateEngineStableCallback.aidl", |
| 28 | ], |
| 29 | backend: { |
| 30 | cpp: { |
| 31 | enabled: true, |
| 32 | }, |
| 33 | java: { |
| 34 | enabled: false, |
| 35 | }, |
| 36 | ndk: { |
| 37 | enabled: true, |
| 38 | apex_available: [ |
| 39 | "com.android.gki.*", |
| 40 | ], |
| 41 | }, |
| 42 | }, |
| 43 | } |
Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 44 | |
| 45 | // update_engine_stable_client (type: executable) |
| 46 | // ======================================================== |
Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 47 | // update_engine console client installed to APEXes. |
Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 48 | cc_binary { |
| 49 | name: "update_engine_stable_client", |
Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 50 | product_specific: true, |
Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 51 | header_libs: [ |
| 52 | "libupdate_engine_headers", |
| 53 | ], |
| 54 | shared_libs: [ |
| 55 | "libbinder_ndk", |
| 56 | "libbase", |
| 57 | "liblog", |
| 58 | ], |
| 59 | static_libs: [ |
| 60 | "libgflags", |
| 61 | "libupdate_engine_stable-ndk_platform", |
| 62 | ], |
| 63 | srcs: [ |
| 64 | "update_engine_stable_client.cc", |
| 65 | ], |
| 66 | apex_available: [ |
| 67 | "com.android.gki.*", |
| 68 | ], |
| 69 | } |