blob: b80cdb3a084f0bd776d04600e557afc1fab16c12 [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",
33 "libfs_mgr",
34 "libgtest_prod",
35 "liblog",
Yifan Hong8ff84d72018-12-19 16:21:55 -080036 "liblp",
Tao Bao673bb6f2018-08-03 20:56:25 -070037 "libselinux",
38 "libsparse",
39 "libsquashfs_utils",
40 "libbrotli",
41 "libbz",
42 "libziparchive",
43 "libz",
44 "libbase",
45 "libcrypto",
46 "libcrypto_utils",
47 "libcutils",
48 "libutils",
49 "libtune2fs",
50
51 "libext2_com_err",
52 "libext2_blkid",
53 "libext2_quota",
54 "libext2_uuid",
55 "libext2_e2p",
56 "libext2fs",
57 ],
58}
Tao Baoef5e38f2018-07-24 15:34:39 -070059
60cc_library_static {
61 name: "libupdater",
62
63 defaults: [
64 "recovery_defaults",
65 "libupdater_defaults",
66 ],
67
68 srcs: [
69 "blockimg.cpp",
70 "commands.cpp",
Yifan Hong8ff84d72018-12-19 16:21:55 -080071 "dynamic_partitions.cpp",
Tao Baoef5e38f2018-07-24 15:34:39 -070072 "install.cpp",
73 ],
74
75 include_dirs: [
76 "external/e2fsprogs/misc",
77 ],
78
79 export_include_dirs: [
80 "include",
81 ],
82}