blob: 872ef86dbfcc7778f3a46075ec058cd14a2338f7 [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",
Tianjie Xu58d59122019-05-03 01:05:04 -070084 "updater.cpp",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070085 ],
86
Tianjie Xu76e165d2019-05-30 10:24:47 -070087 target: {
88 darwin: {
89 enabled: false,
90 },
91 },
92
Tianjie Xuc1a5e262019-05-22 14:34:12 -070093 export_include_dirs: [
94 "include",
95 ],
96}
97
98cc_library_static {
99 name: "libupdater_device",
100
101 defaults: [
102 "recovery_defaults",
103 "libupdater_defaults",
104 "libupdater_device_defaults",
105 ],
106
107 srcs: [
108 "dynamic_partitions.cpp",
Tianjie Xu1536db82019-05-14 10:54:43 -0700109 "updater_runtime.cpp",
Tianjie Xud1188332019-05-24 16:08:45 -0700110 "updater_runtime_dynamic_partitions.cpp",
Tao Baoef5e38f2018-07-24 15:34:39 -0700111 ],
112
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700113 static_libs: [
114 "libupdater_core",
115 ],
116
Tao Baoef5e38f2018-07-24 15:34:39 -0700117 include_dirs: [
118 "external/e2fsprogs/misc",
119 ],
120
121 export_include_dirs: [
122 "include",
123 ],
124}
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700125
126cc_library_host_static {
127 name: "libupdater_host",
128
129 defaults: [
130 "recovery_defaults",
131 "libupdater_defaults",
132 ],
133
134 srcs: [
Tianjie Xu74b0f7c2019-05-22 13:59:57 -0700135 "build_info.cpp",
Tianjie Xud1188332019-05-24 16:08:45 -0700136 "dynamic_partitions.cpp",
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700137 "simulator_runtime.cpp",
138 "target_files.cpp",
139 ],
140
141 static_libs: [
142 "libupdater_core",
143 "libfstab",
Tianjie Xu74b0f7c2019-05-22 13:59:57 -0700144 "libc++fs",
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700145 ],
146
Tianjie Xu76e165d2019-05-30 10:24:47 -0700147 target: {
148 darwin: {
149 enabled: false,
150 },
151 },
152
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700153 export_include_dirs: [
154 "include",
155 ],
156}