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", |
| 21 | srcs: [ |
| 22 | "android/os/IUpdateEngineStable.aidl", |
| 23 | "android/os/IUpdateEngineStableCallback.aidl", |
| 24 | ], |
| 25 | backend: { |
| 26 | cpp: { |
| 27 | enabled: true, |
| 28 | }, |
| 29 | java: { |
| 30 | enabled: false, |
| 31 | }, |
| 32 | ndk: { |
| 33 | enabled: true, |
| 34 | apex_available: [ |
| 35 | "com.android.gki.*", |
| 36 | ], |
| 37 | }, |
| 38 | }, |
| 39 | } |
Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame^] | 40 | |
| 41 | // update_engine_stable_client (type: executable) |
| 42 | // ======================================================== |
| 43 | // update_engine console client installed to APEXes |
| 44 | cc_binary { |
| 45 | name: "update_engine_stable_client", |
| 46 | |
| 47 | header_libs: [ |
| 48 | "libupdate_engine_headers", |
| 49 | ], |
| 50 | shared_libs: [ |
| 51 | "libbinder_ndk", |
| 52 | "libbase", |
| 53 | "liblog", |
| 54 | ], |
| 55 | static_libs: [ |
| 56 | "libgflags", |
| 57 | "libupdate_engine_stable-ndk_platform", |
| 58 | ], |
| 59 | srcs: [ |
| 60 | "update_engine_stable_client.cc", |
| 61 | ], |
| 62 | apex_available: [ |
| 63 | "com.android.gki.*", |
| 64 | ], |
| 65 | } |