blob: cb6c077c66b54520fef2038b2975fba24c2baffa [file] [log] [blame]
David Andersonee84d742019-01-07 18:10:29 -08001//
David Andersonc053b3b2019-01-08 18:22:07 -08002// Copyright (C) 2019 The Android Open Source Project
David Andersonee84d742019-01-07 18:10:29 -08003//
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
17cc_binary {
18 name: "gsi_tool",
19 shared_libs: [
David Andersonc053b3b2019-01-08 18:22:07 -080020 "gsi_aidl_interface-cpp",
David Andersonee84d742019-01-07 18:10:29 -080021 "libbase",
David Anderson83fdeca2019-09-09 17:56:22 -070022 "libbinder",
David Andersonb33f2b12019-01-22 14:14:10 -080023 "libcutils",
David Andersonc053b3b2019-01-08 18:22:07 -080024 "libgsi",
David Andersonee84d742019-01-07 18:10:29 -080025 "liblog",
David Andersonee84d742019-01-07 18:10:29 -080026 "libutils",
27 ],
David Anderson83fdeca2019-09-09 17:56:22 -070028 static_libs: [
29 "libgsid",
30 ],
David Andersonee84d742019-01-07 18:10:29 -080031 srcs: [
32 "gsi_tool.cpp",
33 ],
34}
35
36cc_library {
37 name: "libgsi",
38 recovery_available: true,
Howard Chen9e20bdf2019-01-09 17:54:26 +080039 host_supported: true,
David Andersonee84d742019-01-07 18:10:29 -080040 srcs: [
41 "libgsi.cpp",
42 ],
43 shared_libs: [
44 "libbase",
45 ],
46 export_include_dirs: ["include"],
47}
48
David Anderson83fdeca2019-09-09 17:56:22 -070049cc_library_static {
50 name: "libgsid",
51 srcs: [
52 "libgsid.cpp",
53 ],
54 shared_libs: [
55 "gsi_aidl_interface-cpp",
56 "libbase",
57 "libbinder",
David Anderson83fdeca2019-09-09 17:56:22 -070058 "libutils",
59 ],
David Anderson83fdeca2019-09-09 17:56:22 -070060 export_include_dirs: ["include"],
61}
62
David Andersonee84d742019-01-07 18:10:29 -080063cc_library_headers {
64 name: "libgsi_headers",
Howard Chen9e20bdf2019-01-09 17:54:26 +080065 host_supported: true,
David Andersonee84d742019-01-07 18:10:29 -080066 recovery_available: true,
67 vendor_available: true,
68 export_include_dirs: ["include"],
69}
David Andersonc053b3b2019-01-08 18:22:07 -080070
71cc_binary {
72 name: "gsid",
73 srcs: [
74 "daemon.cpp",
75 "gsi_service.cpp",
Howard Chen4663de62019-11-05 20:46:20 +080076 "partition_installer.cpp",
David Andersonc053b3b2019-01-08 18:22:07 -080077 ],
78 required: [
79 "mke2fs",
80 ],
81 init_rc: [
82 "gsid.rc",
83 ],
84 shared_libs: [
David Andersonc053b3b2019-01-08 18:22:07 -080085 "libbase",
86 "libbinder",
David Andersond614eca2019-09-09 17:57:06 -070087 "libcrypto",
David Andersonc053b3b2019-01-08 18:22:07 -080088 "liblog",
David Andersonc053b3b2019-01-08 18:22:07 -080089 ],
90 static_libs: [
David Andersond614eca2019-09-09 17:57:06 -070091 "gsi_aidl_interface-cpp",
Yo Chiang53bed1c2020-01-01 16:25:19 +080092 "libavb",
David Andersond614eca2019-09-09 17:57:06 -070093 "libcutils",
David Anderson963d7cc2019-01-17 13:34:57 -080094 "libdm",
David Andersond614eca2019-09-09 17:57:06 -070095 "libext4_utils",
David Andersond614eca2019-09-09 17:57:06 -070096 "libfs_mgr",
97 "libgsi",
98 "libgsid",
99 "liblp",
100 "libutils",
Howard Chenee5c2b12019-11-08 11:57:47 +0800101 "libc++fs",
Yo Chiang1f080912020-10-07 17:29:57 +0800102 "libvold_binder",
David Andersonc053b3b2019-01-08 18:22:07 -0800103 ],
Yo Chiang721a0e42020-12-28 19:29:47 +0800104 header_libs: [
105 "libstorage_literals_headers",
106 ],
Stephen Hines60bbc032020-07-14 18:02:03 -0700107 target: {
108 android: {
109 shared_libs: [
110 "libprocessgroup",
111 "libvndksupport",
112 ],
113 },
114 },
David Andersonc053b3b2019-01-08 18:22:07 -0800115 local_include_dirs: ["include"],
116}
117
118aidl_interface {
119 name: "gsi_aidl_interface",
Jiyong Park4801a3f2020-04-13 12:56:16 +0900120 unstable: true,
David Anderson6f373b72019-06-05 15:04:00 -0700121 srcs: [":gsiservice_aidl"],
David Andersonc053b3b2019-01-08 18:22:07 -0800122 local_include_dir: "aidl",
123 backend: {
124 ndk: {
125 enabled: false,
126 },
127 },
128}
129
130filegroup {
131 name: "gsiservice_aidl",
132 srcs: [
Yo Chiang53bed1c2020-01-01 16:25:19 +0800133 "aidl/android/gsi/AvbPublicKey.aidl",
David Anderson6a5b8a72019-01-16 16:24:48 -0800134 "aidl/android/gsi/GsiProgress.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800135 "aidl/android/gsi/IGsiService.aidl",
Howard Chen7885d3c2020-02-26 12:48:41 +0800136 "aidl/android/gsi/IGsiServiceCallback.aidl",
Yo Chiang53bed1c2020-01-01 16:25:19 +0800137 "aidl/android/gsi/IImageService.aidl",
Yifan Hongd66695b2019-12-23 16:07:45 -0800138 "aidl/android/gsi/IProgressCallback.aidl",
David Anderson6f373b72019-06-05 15:04:00 -0700139 "aidl/android/gsi/MappedImage.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800140 ],
Jiyong Parkeaabad02019-08-16 21:10:23 +0900141 path: "aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800142}