blob: 4cefc42a7049770ca273b0b525101f8fb9ce0922 [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",
60 ],
61 required: [
62 "mke2fs",
63 ],
64 init_rc: [
65 "gsid.rc",
66 ],
67 shared_libs: [
68 "gsi_aidl_interface-cpp",
69 "libbase",
70 "libbinder",
71 "libfs_mgr",
David Andersonb3aff182019-01-11 14:37:51 -080072 "libgsi",
David Andersonc053b3b2019-01-08 18:22:07 -080073 "liblog",
74 "liblp",
75 "libutils",
76 ],
77 static_libs: [
David Anderson963d7cc2019-01-17 13:34:57 -080078 "libdm",
David Andersonc053b3b2019-01-08 18:22:07 -080079 "libfiemap_writer",
80 ],
81 local_include_dirs: ["include"],
82}
83
David Anderson6324a542019-03-20 13:49:36 -070084cc_test {
85 name: "gsi_boot_test",
86 shared_libs: [
87 "libbase",
88 "libcutils",
89 "libhardware",
90 "libhidlbase",
91 "libhidltransport",
92 "libhwbinder",
93 "liblog",
94 "libutils",
95 ],
96 static_libs: [
97 "libext4_utils",
98 "libfstab",
99 "android.hardware.weaver@1.0",
100 ],
101 srcs: [
102 "tests/boot_tests.cpp",
103 ],
104}
105
David Andersonc053b3b2019-01-08 18:22:07 -0800106aidl_interface {
107 name: "gsi_aidl_interface",
108 srcs: [
David Andersoneb30ac22019-03-12 15:24:53 -0700109 "aidl/android/gsi/GsiInstallParams.aidl",
David Anderson6a5b8a72019-01-16 16:24:48 -0800110 "aidl/android/gsi/GsiProgress.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800111 "aidl/android/gsi/IGsiService.aidl",
112 ],
113 local_include_dir: "aidl",
114 backend: {
115 ndk: {
116 enabled: false,
117 },
118 },
119}
120
121filegroup {
122 name: "gsiservice_aidl",
123 srcs: [
David Andersoneb30ac22019-03-12 15:24:53 -0700124 "aidl/android/gsi/GsiInstallParams.aidl",
David Anderson6a5b8a72019-01-16 16:24:48 -0800125 "aidl/android/gsi/GsiProgress.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800126 "aidl/android/gsi/IGsiService.aidl",
127 ],
128}