blob: 2a06d32782a939678e87d106433409be1893d4ce [file] [log] [blame]
Tao Bao673bb6f2018-08-03 20:56:25 -07001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Tao Baoef5e38f2018-07-24 15:34:39 -070015cc_defaults {
16 name: "libupdater_defaults",
Tao Bao673bb6f2018-08-03 20:56:25 -070017
18 defaults: [
19 "recovery_defaults",
20 ],
21
Tao Bao673bb6f2018-08-03 20:56:25 -070022 static_libs: [
23 "libapplypatch",
24 "libbootloader_message",
25 "libbspatch",
26 "libedify",
Tao Bao673bb6f2018-08-03 20:56:25 -070027 "libotautil",
28 "libext4_utils",
Yifan Hong8ff84d72018-12-19 16:21:55 -080029 "libdm",
Tao Bao673bb6f2018-08-03 20:56:25 -070030 "libfec",
31 "libfec_rs",
32 "libverity_tree",
Tao Bao673bb6f2018-08-03 20:56:25 -070033 "libgtest_prod",
34 "liblog",
Yifan Hong8ff84d72018-12-19 16:21:55 -080035 "liblp",
Tao Bao673bb6f2018-08-03 20:56:25 -070036 "libselinux",
37 "libsparse",
38 "libsquashfs_utils",
39 "libbrotli",
40 "libbz",
41 "libziparchive",
42 "libz",
43 "libbase",
44 "libcrypto",
45 "libcrypto_utils",
46 "libcutils",
Steven Moreland46ec20b2019-06-14 09:43:24 -070047 "libcgrouprc",
48 "libcgrouprc_format",
Tao Bao673bb6f2018-08-03 20:56:25 -070049 "libutils",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070050 ],
51}
52
53cc_defaults {
54 name: "libupdater_device_defaults",
55
56 static_libs: [
57 "libfs_mgr",
Tao Bao673bb6f2018-08-03 20:56:25 -070058 "libtune2fs",
59
60 "libext2_com_err",
61 "libext2_blkid",
62 "libext2_quota",
63 "libext2_uuid",
64 "libext2_e2p",
65 "libext2fs",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070066 ]
Tao Bao673bb6f2018-08-03 20:56:25 -070067}
Tao Baoef5e38f2018-07-24 15:34:39 -070068
69cc_library_static {
Tianjie Xuc1a5e262019-05-22 14:34:12 -070070 name: "libupdater_core",
71
72 host_supported: true,
Tao Baoef5e38f2018-07-24 15:34:39 -070073
74 defaults: [
75 "recovery_defaults",
76 "libupdater_defaults",
77 ],
78
79 srcs: [
80 "blockimg.cpp",
81 "commands.cpp",
82 "install.cpp",
Tianjie Xu58d59122019-05-03 01:05:04 -070083 "updater.cpp",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070084 ],
85
Tianjie Xu76e165d2019-05-30 10:24:47 -070086 target: {
87 darwin: {
88 enabled: false,
89 },
90 },
91
Tianjie Xuc1a5e262019-05-22 14:34:12 -070092 export_include_dirs: [
93 "include",
94 ],
95}
96
97cc_library_static {
98 name: "libupdater_device",
99
100 defaults: [
101 "recovery_defaults",
102 "libupdater_defaults",
103 "libupdater_device_defaults",
104 ],
105
106 srcs: [
107 "dynamic_partitions.cpp",
Tianjie Xu1536db82019-05-14 10:54:43 -0700108 "updater_runtime.cpp",
Tao Baoef5e38f2018-07-24 15:34:39 -0700109 ],
110
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700111 static_libs: [
112 "libupdater_core",
113 ],
114
Tao Baoef5e38f2018-07-24 15:34:39 -0700115 include_dirs: [
116 "external/e2fsprogs/misc",
117 ],
118
119 export_include_dirs: [
120 "include",
121 ],
122}
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700123
124cc_library_host_static {
125 name: "libupdater_host",
126
127 defaults: [
128 "recovery_defaults",
129 "libupdater_defaults",
130 ],
131
132 srcs: [
133 "simulator_runtime.cpp",
134 "target_files.cpp",
135 ],
136
137 static_libs: [
138 "libupdater_core",
139 "libfstab",
140 ],
141
Tianjie Xu76e165d2019-05-30 10:24:47 -0700142 target: {
143 darwin: {
144 enabled: false,
145 },
146 },
147
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700148 export_include_dirs: [
149 "include",
150 ],
151}