| 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. | 
|  | 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 Hong | 2b291f0 | 2020-07-21 18:46:26 -0700 | [diff] [blame] | 28 | 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 Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 47 |  | 
|  | 48 | // update_engine_stable_client (type: executable) | 
|  | 49 | // ======================================================== | 
| Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 50 | // update_engine console client installed to APEXes. | 
| Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 51 | cc_binary { | 
|  | 52 | name: "update_engine_stable_client", | 
| Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 53 | product_specific: true, | 
| Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 54 | 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 | } |