blob: 608917ab96ac4acba2a42d18a8f0ac10b883bfca [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: [
40 "liblogwrap",
41 "libfec",
42 "libfec_rs",
43 "libbase",
44 "libcrypto_utils",
45 "libcrypto",
46 "libext4_utils",
47 "libsquashfs_utils",
48 "libselinux",
49 "libavb",
50 "libfstab",
51 ],
52 export_static_lib_headers: [
53 "libfstab",
54 ],
55 whole_static_libs: [
56 "libfstab",
Tom Cherry37b5ada2017-05-12 17:05:22 -070057 ],
58 product_variables: {
59 debuggable: {
60 cppflags: ["-DALLOW_ADBD_DISABLE_VERITY=1"],
61 },
62 eng: {
63 cppflags: ["-DALLOW_SKIP_SECURE_CHECK=1"],
64 },
65 },
66}
Jiyong Parke7df1f72017-06-28 11:17:30 +090067
68cc_library_static {
69 name: "libfstab",
70 vendor_available: true,
71 defaults: ["fs_mgr_defaults"],
72 srcs: [
73 "fs_mgr_fstab.cpp",
74 "fs_mgr_boot_config.cpp",
75 "fs_mgr_slotselect.cpp",
76 ],
77 export_include_dirs: ["include_fstab"],
78 header_libs: ["libbase_headers"],
79}