blob: 8a60ef76aa5abddc2bc74698220ed1320e622f17 [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",
Tao Bao673bb6f2018-08-03 20:56:25 -070044 "libcrypto_utils",
45 "libcutils",
46 "libutils",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070047 ],
Pete Bentley189d4242019-09-12 19:53:46 +010048
49 shared_libs: [
50 "libcrypto",
51 ],
Tianjie Xuc1a5e262019-05-22 14:34:12 -070052}
53
54cc_defaults {
55 name: "libupdater_device_defaults",
56
57 static_libs: [
58 "libfs_mgr",
Tao Bao673bb6f2018-08-03 20:56:25 -070059 "libtune2fs",
60
61 "libext2_com_err",
62 "libext2_blkid",
63 "libext2_quota",
64 "libext2_uuid",
65 "libext2_e2p",
66 "libext2fs",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070067 ]
Tao Bao673bb6f2018-08-03 20:56:25 -070068}
Tao Baoef5e38f2018-07-24 15:34:39 -070069
70cc_library_static {
Tianjie Xuc1a5e262019-05-22 14:34:12 -070071 name: "libupdater_core",
72
73 host_supported: true,
Tao Baoef5e38f2018-07-24 15:34:39 -070074
75 defaults: [
76 "recovery_defaults",
77 "libupdater_defaults",
78 ],
79
80 srcs: [
81 "blockimg.cpp",
82 "commands.cpp",
83 "install.cpp",
Tao Baod628cfc2019-10-01 12:08:33 -070084 "mounts.cpp",
Tianjie Xu58d59122019-05-03 01:05:04 -070085 "updater.cpp",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070086 ],
87
Tianjie Xu76e165d2019-05-30 10:24:47 -070088 target: {
89 darwin: {
90 enabled: false,
91 },
92 },
93
Tianjie Xuc1a5e262019-05-22 14:34:12 -070094 export_include_dirs: [
95 "include",
96 ],
97}
98
99cc_library_static {
100 name: "libupdater_device",
101
102 defaults: [
103 "recovery_defaults",
104 "libupdater_defaults",
105 "libupdater_device_defaults",
106 ],
107
108 srcs: [
109 "dynamic_partitions.cpp",
Tianjie Xu1536db82019-05-14 10:54:43 -0700110 "updater_runtime.cpp",
Tianjie Xud1188332019-05-24 16:08:45 -0700111 "updater_runtime_dynamic_partitions.cpp",
Tao Baoef5e38f2018-07-24 15:34:39 -0700112 ],
113
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700114 static_libs: [
115 "libupdater_core",
116 ],
117
Tao Baoef5e38f2018-07-24 15:34:39 -0700118 include_dirs: [
119 "external/e2fsprogs/misc",
120 ],
121
122 export_include_dirs: [
123 "include",
124 ],
125}
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700126
127cc_library_host_static {
128 name: "libupdater_host",
129
130 defaults: [
131 "recovery_defaults",
132 "libupdater_defaults",
133 ],
134
135 srcs: [
Tianjie Xu74b0f7c2019-05-22 13:59:57 -0700136 "build_info.cpp",
Tianjie Xud1188332019-05-24 16:08:45 -0700137 "dynamic_partitions.cpp",
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700138 "simulator_runtime.cpp",
139 "target_files.cpp",
140 ],
141
142 static_libs: [
143 "libupdater_core",
144 "libfstab",
Tianjie Xu74b0f7c2019-05-22 13:59:57 -0700145 "libc++fs",
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700146 ],
147
Tianjie Xu76e165d2019-05-30 10:24:47 -0700148 target: {
149 darwin: {
150 enabled: false,
151 },
152 },
153
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700154 export_include_dirs: [
155 "include",
156 ],
157}