blob: 9914e9b49139231577ce255406798395ceba8eec [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 Andersonc053b3b2019-01-08 18:22:07 -080023 "libgsi",
David Andersonee84d742019-01-07 18:10:29 -080024 "liblog",
25 "libservices",
26 "libutils",
27 ],
David Andersonee84d742019-01-07 18:10:29 -080028 srcs: [
29 "gsi_tool.cpp",
30 ],
31}
32
33cc_library {
34 name: "libgsi",
35 recovery_available: true,
Howard Chen9e20bdf2019-01-09 17:54:26 +080036 host_supported: true,
David Andersonee84d742019-01-07 18:10:29 -080037 srcs: [
38 "libgsi.cpp",
39 ],
40 shared_libs: [
41 "libbase",
42 ],
43 export_include_dirs: ["include"],
44}
45
46cc_library_headers {
47 name: "libgsi_headers",
Howard Chen9e20bdf2019-01-09 17:54:26 +080048 host_supported: true,
David Andersonee84d742019-01-07 18:10:29 -080049 recovery_available: true,
50 vendor_available: true,
51 export_include_dirs: ["include"],
52}
David Andersonc053b3b2019-01-08 18:22:07 -080053
54cc_binary {
55 name: "gsid",
56 srcs: [
57 "daemon.cpp",
58 "gsi_service.cpp",
59 ],
60 required: [
61 "mke2fs",
62 ],
63 init_rc: [
64 "gsid.rc",
65 ],
66 shared_libs: [
67 "gsi_aidl_interface-cpp",
68 "libbase",
69 "libbinder",
Sandeep Patil5327bcc2019-01-12 21:07:34 -080070 "libgsi",
David Andersonc053b3b2019-01-08 18:22:07 -080071 "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
84aidl_interface {
85 name: "gsi_aidl_interface",
86 srcs: [
David Anderson6a5b8a72019-01-16 16:24:48 -080087 "aidl/android/gsi/GsiProgress.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -080088 "aidl/android/gsi/IGsiService.aidl",
89 ],
90 local_include_dir: "aidl",
91 backend: {
92 ndk: {
93 enabled: false,
94 },
95 },
96}
97
98filegroup {
99 name: "gsiservice_aidl",
100 srcs: [
David Anderson6a5b8a72019-01-16 16:24:48 -0800101 "aidl/android/gsi/GsiProgress.aidl",
David Andersonc053b3b2019-01-08 18:22:07 -0800102 "aidl/android/gsi/IGsiService.aidl",
103 ],
104}