blob: 34ec996f828571b68968ca14f8cd199aac87c70c [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 "libbinder",
22 "libbase",
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",
26 "libservices",
27 "libutils",
28 ],
David Andersonee84d742019-01-07 18:10:29 -080029 srcs: [
30 "gsi_tool.cpp",
31 ],
32}
33
34cc_library {
35 name: "libgsi",
36 recovery_available: true,
Howard Chen9e20bdf2019-01-09 17:54:26 +080037 host_supported: true,
David Andersonee84d742019-01-07 18:10:29 -080038 srcs: [
39 "libgsi.cpp",
40 ],
41 shared_libs: [
42 "libbase",
43 ],
44 export_include_dirs: ["include"],
45}
46
47cc_library_headers {
48 name: "libgsi_headers",
Howard Chen9e20bdf2019-01-09 17:54:26 +080049 host_supported: true,
David Andersonee84d742019-01-07 18:10:29 -080050 recovery_available: true,
51 vendor_available: true,
52 export_include_dirs: ["include"],
53}
David Andersonc053b3b2019-01-08 18:22:07 -080054
55cc_binary {
56 name: "gsid",
57 srcs: [
58 "daemon.cpp",
59 "gsi_service.cpp",
David Andersonb2988ab2019-04-16 17:14:09 -070060 "gsi_installer.cpp",
David Andersonc053b3b2019-01-08 18:22:07 -080061 ],
62 required: [
63 "mke2fs",
64 ],
65 init_rc: [
66 "gsid.rc",
67 ],
68 shared_libs: [
69 "gsi_aidl_interface-cpp",
70 "libbase",
71 "libbinder",
David Anderson8bdf6252019-06-11 16:43:24 -070072 "libext4_utils",
David Andersonc053b3b2019-01-08 18:22:07 -080073 "libfs_mgr",
David Andersonb3aff182019-01-11 14:37:51 -080074 "libgsi",
David Andersonc053b3b2019-01-08 18:22:07 -080075 "liblog",
76 "liblp",
77 "libutils",
78 ],
79 static_libs: [
David Anderson963d7cc2019-01-17 13:34:57 -080080 "libdm",
Yifan Hong5cc48462019-08-13 18:28:10 -070081 "libfiemap_passthrough",
David Andersonc053b3b2019-01-08 18:22:07 -080082 ],
83 local_include_dirs: ["include"],
84}
85
86aidl_interface {
87 name: "gsi_aidl_interface",
David Anderson6f373b72019-06-05 15:04:00 -070088 srcs: [":gsiservice_aidl"],
David Andersonc053b3b2019-01-08 18:22:07 -080089 local_include_dir: "aidl",
90 backend: {
91 ndk: {
92 enabled: false,
93 },
94 },
95}
96
97filegroup {
98 name: "gsiservice_aidl",
99 srcs: [
David Andersoneb30ac22019-03-12 15:24:53 -0700100 "aidl/android/gsi/GsiInstallParams.aidl",
David Anderson6a5b8a72019-01-16 16:24:48 -0800101 "aidl/android/gsi/GsiProgress.aidl",
David Anderson551ae3a2019-08-01 12:53:06 -0700102 "aidl/android/gsi/IImageService.aidl",
David Anderson4c756732019-07-12 14:18:37 -0700103 "aidl/android/gsi/IGsid.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800104 "aidl/android/gsi/IGsiService.aidl",
David Anderson6f373b72019-06-05 15:04:00 -0700105 "aidl/android/gsi/MappedImage.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800106 ],
Jiyong Parkeaabad02019-08-16 21:10:23 +0900107 path: "aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800108}