blob: 93eeece51cc5abc7a165dd990fa4a98db6f5fca8 [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",
47 "libutils",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070048 ],
49}
50
51cc_defaults {
52 name: "libupdater_device_defaults",
53
54 static_libs: [
55 "libfs_mgr",
Tao Bao673bb6f2018-08-03 20:56:25 -070056 "libtune2fs",
57
58 "libext2_com_err",
59 "libext2_blkid",
60 "libext2_quota",
61 "libext2_uuid",
62 "libext2_e2p",
63 "libext2fs",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070064 ]
Tao Bao673bb6f2018-08-03 20:56:25 -070065}
Tao Baoef5e38f2018-07-24 15:34:39 -070066
67cc_library_static {
Tianjie Xuc1a5e262019-05-22 14:34:12 -070068 name: "libupdater_core",
69
70 host_supported: true,
Tao Baoef5e38f2018-07-24 15:34:39 -070071
72 defaults: [
73 "recovery_defaults",
74 "libupdater_defaults",
75 ],
76
77 srcs: [
78 "blockimg.cpp",
79 "commands.cpp",
80 "install.cpp",
Tianjie Xu58d59122019-05-03 01:05:04 -070081 "updater.cpp",
Tianjie Xuc1a5e262019-05-22 14:34:12 -070082 ],
83
Tianjie Xu76e165d2019-05-30 10:24:47 -070084 target: {
85 darwin: {
86 enabled: false,
87 },
88 },
89
Tianjie Xuc1a5e262019-05-22 14:34:12 -070090 export_include_dirs: [
91 "include",
92 ],
93}
94
95cc_library_static {
96 name: "libupdater_device",
97
98 defaults: [
99 "recovery_defaults",
100 "libupdater_defaults",
101 "libupdater_device_defaults",
102 ],
103
104 srcs: [
105 "dynamic_partitions.cpp",
Tianjie Xu1536db82019-05-14 10:54:43 -0700106 "updater_runtime.cpp",
Tao Baoef5e38f2018-07-24 15:34:39 -0700107 ],
108
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700109 static_libs: [
110 "libupdater_core",
111 ],
112
Tao Baoef5e38f2018-07-24 15:34:39 -0700113 include_dirs: [
114 "external/e2fsprogs/misc",
115 ],
116
117 export_include_dirs: [
118 "include",
119 ],
120}
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700121
122cc_library_host_static {
123 name: "libupdater_host",
124
125 defaults: [
126 "recovery_defaults",
127 "libupdater_defaults",
128 ],
129
130 srcs: [
Tianjie Xu74b0f7c2019-05-22 13:59:57 -0700131 "build_info.cpp",
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700132 "simulator_runtime.cpp",
133 "target_files.cpp",
134 ],
135
136 static_libs: [
137 "libupdater_core",
138 "libfstab",
Tianjie Xu74b0f7c2019-05-22 13:59:57 -0700139 "libc++fs",
Tianjie Xuc1a5e262019-05-22 14:34:12 -0700140 ],
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}