| 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 | // ======================================================== | 
| Bob Badour | 9b85a6c | 2021-02-12 21:28:32 -0800 | [diff] [blame] | 19 | package { | 
|  | 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 Hong | 2b291f0 | 2020-07-21 18:46:26 -0700 | [diff] [blame] | 28 | aidl_interface { | 
|  | 29 | name: "libupdate_engine_stable", | 
| Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 30 |  | 
|  | 31 | // This header library is available to core and product modules. | 
| Justin Yun | 6d121de | 2020-11-11 19:31:57 +0900 | [diff] [blame] | 32 | product_available: true, | 
| Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 33 |  | 
| Yifan Hong | 2b291f0 | 2020-07-21 18:46:26 -0700 | [diff] [blame] | 34 | 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 | }, | 
| Jiyong Park | 4ac16e5 | 2021-05-21 11:23:06 +0900 | [diff] [blame] | 52 | versions: ["1"], | 
| Yifan Hong | 2b291f0 | 2020-07-21 18:46:26 -0700 | [diff] [blame] | 53 | } | 
| Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 54 |  | 
|  | 55 | // update_engine_stable_client (type: executable) | 
|  | 56 | // ======================================================== | 
| Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 57 | // update_engine console client installed to APEXes. | 
| Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 58 | cc_binary { | 
|  | 59 | name: "update_engine_stable_client", | 
| Yifan Hong | 309c8a8 | 2020-10-06 18:31:08 -0700 | [diff] [blame] | 60 | product_specific: true, | 
| Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 61 | header_libs: [ | 
|  | 62 | "libupdate_engine_headers", | 
|  | 63 | ], | 
|  | 64 | shared_libs: [ | 
|  | 65 | "libbinder_ndk", | 
|  | 66 | "libbase", | 
|  | 67 | "liblog", | 
|  | 68 | ], | 
|  | 69 | static_libs: [ | 
|  | 70 | "libgflags", | 
| Jiyong Park | 43cb9c0 | 2021-07-27 12:21:02 +0900 | [diff] [blame] | 71 | "libupdate_engine_stable-V1-ndk", | 
| Yifan Hong | d51738c | 2020-07-23 17:06:25 -0700 | [diff] [blame] | 72 | ], | 
|  | 73 | srcs: [ | 
|  | 74 | "update_engine_stable_client.cc", | 
|  | 75 | ], | 
|  | 76 | apex_available: [ | 
|  | 77 | "com.android.gki.*", | 
|  | 78 | ], | 
|  | 79 | } |