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 | |
Bob Badour | c4e74fd | 2021-02-12 15:14:18 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 19 | } |
| 20 | |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 21 | cc_binary { |
| 22 | name: "gsi_tool", |
| 23 | shared_libs: [ |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 24 | "gsi_aidl_interface-cpp", |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 25 | "libbase", |
David Anderson | 83fdeca | 2019-09-09 17:56:22 -0700 | [diff] [blame] | 26 | "libbinder", |
David Anderson | b33f2b1 | 2019-01-22 14:14:10 -0800 | [diff] [blame] | 27 | "libcutils", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 28 | "libgsi", |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 29 | "liblog", |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 30 | "libutils", |
| 31 | ], |
David Anderson | 83fdeca | 2019-09-09 17:56:22 -0700 | [diff] [blame] | 32 | static_libs: [ |
| 33 | "libgsid", |
| 34 | ], |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 35 | srcs: [ |
| 36 | "gsi_tool.cpp", |
| 37 | ], |
| 38 | } |
| 39 | |
| 40 | cc_library { |
| 41 | name: "libgsi", |
Inseob Kim | d1ec5f8 | 2021-06-14 11:55:32 +0900 | [diff] [blame] | 42 | ramdisk_available: true, |
David Anderson | e435827 | 2021-07-23 16:57:41 -0700 | [diff] [blame] | 43 | vendor_ramdisk_available: true, |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 44 | recovery_available: true, |
Howard Chen | 9e20bdf | 2019-01-09 17:54:26 +0800 | [diff] [blame] | 45 | host_supported: true, |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 46 | srcs: [ |
| 47 | "libgsi.cpp", |
| 48 | ], |
| 49 | shared_libs: [ |
| 50 | "libbase", |
| 51 | ], |
| 52 | export_include_dirs: ["include"], |
| 53 | } |
| 54 | |
David Anderson | 83fdeca | 2019-09-09 17:56:22 -0700 | [diff] [blame] | 55 | cc_library_static { |
| 56 | name: "libgsid", |
| 57 | srcs: [ |
| 58 | "libgsid.cpp", |
| 59 | ], |
| 60 | shared_libs: [ |
| 61 | "gsi_aidl_interface-cpp", |
| 62 | "libbase", |
| 63 | "libbinder", |
David Anderson | 83fdeca | 2019-09-09 17:56:22 -0700 | [diff] [blame] | 64 | "libutils", |
| 65 | ], |
David Anderson | 83fdeca | 2019-09-09 17:56:22 -0700 | [diff] [blame] | 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, |
Inseob Kim | d1ec5f8 | 2021-06-14 11:55:32 +0900 | [diff] [blame] | 72 | ramdisk_available: true, |
David Anderson | e435827 | 2021-07-23 16:57:41 -0700 | [diff] [blame] | 73 | vendor_ramdisk_available: true, |
David Anderson | ee84d74 | 2019-01-07 18:10:29 -0800 | [diff] [blame] | 74 | recovery_available: true, |
| 75 | vendor_available: true, |
| 76 | export_include_dirs: ["include"], |
| 77 | } |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 78 | |
| 79 | cc_binary { |
| 80 | name: "gsid", |
| 81 | srcs: [ |
| 82 | "daemon.cpp", |
| 83 | "gsi_service.cpp", |
Howard Chen | 4663de6 | 2019-11-05 20:46:20 +0800 | [diff] [blame] | 84 | "partition_installer.cpp", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 85 | ], |
| 86 | required: [ |
| 87 | "mke2fs", |
| 88 | ], |
| 89 | init_rc: [ |
| 90 | "gsid.rc", |
| 91 | ], |
| 92 | shared_libs: [ |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 93 | "libbase", |
| 94 | "libbinder", |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 95 | "libcrypto", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 96 | "liblog", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 97 | ], |
| 98 | static_libs: [ |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 99 | "gsi_aidl_interface-cpp", |
Yo Chiang | 53bed1c | 2020-01-01 16:25:19 +0800 | [diff] [blame] | 100 | "libavb", |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 101 | "libcutils", |
David Anderson | 963d7cc | 2019-01-17 13:34:57 -0800 | [diff] [blame] | 102 | "libdm", |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 103 | "libext4_utils", |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 104 | "libfs_mgr", |
| 105 | "libgsi", |
| 106 | "libgsid", |
| 107 | "liblp", |
Yi-Yo Chiang | f72d88a | 2021-03-22 13:45:39 +0800 | [diff] [blame] | 108 | "libselinux", |
David Anderson | d614eca | 2019-09-09 17:57:06 -0700 | [diff] [blame] | 109 | "libutils", |
Howard Chen | ee5c2b1 | 2019-11-08 11:57:47 +0800 | [diff] [blame] | 110 | "libc++fs", |
Yo Chiang | 1f08091 | 2020-10-07 17:29:57 +0800 | [diff] [blame] | 111 | "libvold_binder", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 112 | ], |
Yo Chiang | 721a0e4 | 2020-12-28 19:29:47 +0800 | [diff] [blame] | 113 | header_libs: [ |
| 114 | "libstorage_literals_headers", |
| 115 | ], |
Stephen Hines | 60bbc03 | 2020-07-14 18:02:03 -0700 | [diff] [blame] | 116 | target: { |
| 117 | android: { |
| 118 | shared_libs: [ |
| 119 | "libprocessgroup", |
| 120 | "libvndksupport", |
| 121 | ], |
| 122 | }, |
| 123 | }, |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 124 | local_include_dirs: ["include"], |
| 125 | } |
| 126 | |
| 127 | aidl_interface { |
| 128 | name: "gsi_aidl_interface", |
Jiyong Park | 4801a3f | 2020-04-13 12:56:16 +0900 | [diff] [blame] | 129 | unstable: true, |
David Anderson | 6f373b7 | 2019-06-05 15:04:00 -0700 | [diff] [blame] | 130 | srcs: [":gsiservice_aidl"], |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 131 | local_include_dir: "aidl", |
| 132 | backend: { |
| 133 | ndk: { |
| 134 | enabled: false, |
| 135 | }, |
| 136 | }, |
| 137 | } |
| 138 | |
| 139 | filegroup { |
| 140 | name: "gsiservice_aidl", |
| 141 | srcs: [ |
Yo Chiang | 53bed1c | 2020-01-01 16:25:19 +0800 | [diff] [blame] | 142 | "aidl/android/gsi/AvbPublicKey.aidl", |
David Anderson | 6a5b8a7 | 2019-01-16 16:24:48 -0800 | [diff] [blame] | 143 | "aidl/android/gsi/GsiProgress.aidl", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 144 | "aidl/android/gsi/IGsiService.aidl", |
Howard Chen | 7885d3c | 2020-02-26 12:48:41 +0800 | [diff] [blame] | 145 | "aidl/android/gsi/IGsiServiceCallback.aidl", |
Yo Chiang | 53bed1c | 2020-01-01 16:25:19 +0800 | [diff] [blame] | 146 | "aidl/android/gsi/IImageService.aidl", |
Yifan Hong | d66695b | 2019-12-23 16:07:45 -0800 | [diff] [blame] | 147 | "aidl/android/gsi/IProgressCallback.aidl", |
David Anderson | 6f373b7 | 2019-06-05 15:04:00 -0700 | [diff] [blame] | 148 | "aidl/android/gsi/MappedImage.aidl", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 149 | ], |
Jiyong Park | eaabad0 | 2019-08-16 21:10:23 +0900 | [diff] [blame] | 150 | path: "aidl", |
David Anderson | c053b3b | 2019-01-08 18:22:07 -0800 | [diff] [blame] | 151 | } |