David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 1 | // |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 2 | // Copyright (C) 2019 The Android Open Source Project |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 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 | cc_binary { |
| 18 | name: "gsi_tool", |
| 19 | shared_libs: [ |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 20 | "gsi_aidl_interface-cpp", |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 21 | "libbase", |
David Anderson | 83fdeca | 2019-09-09 17:56:22 -0700 | [diff] [blame] | 22 | "libbinder", |
David Anderson | b33f2b1 | 2019-01-22 14:14:10 -0800 | [diff] [blame] | 23 | "libcutils", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 24 | "libgsi", |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 25 | "liblog", |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 26 | "libutils", |
| 27 | ], |
David Anderson | 83fdeca | 2019-09-09 17:56:22 -0700 | [diff] [blame] | 28 | static_libs: [ |
| 29 | "libgsid", |
| 30 | ], |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 31 | srcs: [ |
| 32 | "gsi_tool.cpp", |
| 33 | ], |
| 34 | } |
| 35 | |
| 36 | cc_library { |
| 37 | name: "libgsi", |
| 38 | recovery_available: true, |
Howard Chen | 9e20bdf | 2019-01-09 17:54:26 +0800 | [diff] [blame] | 39 | host_supported: true, |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 40 | srcs: [ |
| 41 | "libgsi.cpp", |
| 42 | ], |
| 43 | shared_libs: [ |
| 44 | "libbase", |
| 45 | ], |
| 46 | export_include_dirs: ["include"], |
| 47 | } |
| 48 | |
David Anderson | 83fdeca | 2019-09-09 17:56:22 -0700 | [diff] [blame] | 49 | cc_library_static { |
| 50 | name: "libgsid", |
| 51 | srcs: [ |
| 52 | "libgsid.cpp", |
| 53 | ], |
| 54 | shared_libs: [ |
| 55 | "gsi_aidl_interface-cpp", |
| 56 | "libbase", |
| 57 | "libbinder", |
| 58 | "libcutils", |
| 59 | "liblog", |
| 60 | "libservices", |
| 61 | "libutils", |
| 62 | ], |
| 63 | static_libs: [ |
| 64 | "libgsi", |
| 65 | ], |
| 66 | export_include_dirs: ["include"], |
| 67 | } |
| 68 | |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 69 | cc_library_headers { |
| 70 | name: "libgsi_headers", |
Howard Chen | 9e20bdf | 2019-01-09 17:54:26 +0800 | [diff] [blame] | 71 | host_supported: true, |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 72 | recovery_available: true, |
| 73 | vendor_available: true, |
| 74 | export_include_dirs: ["include"], |
| 75 | } |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 76 | |
| 77 | cc_binary { |
| 78 | name: "gsid", |
| 79 | srcs: [ |
| 80 | "daemon.cpp", |
| 81 | "gsi_service.cpp", |
Howard Chen | 4663de6 | 2019-11-05 20:46:20 +0800 | [diff] [blame] | 82 | "partition_installer.cpp", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 83 | ], |
| 84 | required: [ |
| 85 | "mke2fs", |
| 86 | ], |
| 87 | init_rc: [ |
| 88 | "gsid.rc", |
| 89 | ], |
| 90 | shared_libs: [ |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 91 | "libbase", |
| 92 | "libbinder", |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 93 | "libcrypto", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 94 | "liblog", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 95 | ], |
| 96 | static_libs: [ |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 97 | "gsi_aidl_interface-cpp", |
Yo Chiang | 53bed1c | 2020-01-01 16:25:19 +0800 | [diff] [blame] | 98 | "libavb", |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 99 | "libcutils", |
David Anderson | 963d7cc | 2019-01-17 13:34:57 -0800 | [diff] [blame] | 100 | "libdm", |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 101 | "libext4_utils", |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 102 | "libfs_mgr", |
| 103 | "libgsi", |
| 104 | "libgsid", |
| 105 | "liblp", |
| 106 | "libutils", |
Howard Chen | ee5c2b1 | 2019-11-08 11:57:47 +0800 | [diff] [blame] | 107 | "libc++fs", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 108 | ], |
| 109 | local_include_dirs: ["include"], |
| 110 | } |
| 111 | |
| 112 | aidl_interface { |
| 113 | name: "gsi_aidl_interface", |
Jiyong Park | 5e06a0a | 2020-04-13 12:56:16 +0900 | [diff] [blame] | 114 | unstable: true, |
David Anderson | 6f373b7 | 2019-06-05 15:04:00 -0700 | [diff] [blame] | 115 | srcs: [":gsiservice_aidl"], |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 116 | local_include_dir: "aidl", |
| 117 | backend: { |
| 118 | ndk: { |
| 119 | enabled: false, |
| 120 | }, |
| 121 | }, |
| 122 | } |
| 123 | |
| 124 | filegroup { |
| 125 | name: "gsiservice_aidl", |
| 126 | srcs: [ |
Yo Chiang | 53bed1c | 2020-01-01 16:25:19 +0800 | [diff] [blame] | 127 | "aidl/android/gsi/AvbPublicKey.aidl", |
David Anderson | 6a5b8a7 | 2019-01-16 16:24:48 -0800 | [diff] [blame] | 128 | "aidl/android/gsi/GsiProgress.aidl", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 129 | "aidl/android/gsi/IGsiService.aidl", |
Howard Chen | 0e18806 | 2020-02-26 12:48:41 +0800 | [diff] [blame] | 130 | "aidl/android/gsi/IGsiServiceCallback.aidl", |
Yo Chiang | 53bed1c | 2020-01-01 16:25:19 +0800 | [diff] [blame] | 131 | "aidl/android/gsi/IImageService.aidl", |
Yifan Hong | d66695b | 2019-12-23 16:07:45 -0800 | [diff] [blame] | 132 | "aidl/android/gsi/IProgressCallback.aidl", |
David Anderson | 6f373b7 | 2019-06-05 15:04:00 -0700 | [diff] [blame] | 133 | "aidl/android/gsi/MappedImage.aidl", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 134 | ], |
Jiyong Park | eaabad0 | 2019-08-16 21:10:23 +0900 | [diff] [blame] | 135 | path: "aidl", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 136 | } |
Sasha Smundak | b7b17c1 | 2019-10-29 14:54:14 -0700 | [diff] [blame] | 137 | |
| 138 | vts_config { |
| 139 | name: "VtsGsiBootTest", |
| 140 | } |