blob: 5a6298e9b702b970469ada6edfb5d67376703385 [file] [log] [blame]
Tom Cherry37b5ada2017-05-12 17:05:22 -07001//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17cc_defaults {
18 name: "fs_mgr_defaults",
19 sanitize: {
20 misc_undefined: ["integer"],
21 },
22 local_include_dirs: ["include/"],
23 cppflags: ["-Werror"],
Tom Cherry37b5ada2017-05-12 17:05:22 -070024}
25
26cc_library_static {
27 name: "libfs_mgr",
28 defaults: ["fs_mgr_defaults"],
29 export_include_dirs: ["include"],
30 include_dirs: ["system/vold"],
31 srcs: [
32 "fs_mgr.cpp",
33 "fs_mgr_dm_ioctl.cpp",
34 "fs_mgr_format.cpp",
Tom Cherry37b5ada2017-05-12 17:05:22 -070035 "fs_mgr_verity.cpp",
36 "fs_mgr_avb.cpp",
37 "fs_mgr_avb_ops.cpp",
Jiyong Parke7df1f72017-06-28 11:17:30 +090038 ],
39 static_libs: [
Jiyong Parke7df1f72017-06-28 11:17:30 +090040 "libfec",
41 "libfec_rs",
42 "libbase",
43 "libcrypto_utils",
44 "libcrypto",
45 "libext4_utils",
46 "libsquashfs_utils",
47 "libselinux",
48 "libavb",
49 "libfstab",
50 ],
51 export_static_lib_headers: [
52 "libfstab",
53 ],
54 whole_static_libs: [
Jin Qian42d81372017-04-21 16:56:34 -070055 "liblogwrap",
Jiyong Parke7df1f72017-06-28 11:17:30 +090056 "libfstab",
Tom Cherry37b5ada2017-05-12 17:05:22 -070057 ],
Tom Cherry31121ca2017-10-10 13:30:57 -070058 cppflags: [
Tom Cherry31121ca2017-10-10 13:30:57 -070059 "-DALLOW_ADBD_DISABLE_VERITY=0",
60 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070061 product_variables: {
62 debuggable: {
Tom Cherry31121ca2017-10-10 13:30:57 -070063 cppflags: [
64 "-UALLOW_ADBD_DISABLE_VERITY",
65 "-DALLOW_ADBD_DISABLE_VERITY=1",
66 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070067 },
Tom Cherry37b5ada2017-05-12 17:05:22 -070068 },
69}
Jiyong Parke7df1f72017-06-28 11:17:30 +090070
71cc_library_static {
72 name: "libfstab",
73 vendor_available: true,
74 defaults: ["fs_mgr_defaults"],
75 srcs: [
76 "fs_mgr_fstab.cpp",
77 "fs_mgr_boot_config.cpp",
78 "fs_mgr_slotselect.cpp",
79 ],
80 export_include_dirs: ["include_fstab"],
81 header_libs: ["libbase_headers"],
82}