blob: ed165ed790a1ed63590031b4b5bc693c95affc18 [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/"],
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070023 cflags: [
24 "-Wall",
25 "-Werror",
26 "-Wno-unused-variable",
27 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070028}
29
30cc_library_static {
31 name: "libfs_mgr",
32 defaults: ["fs_mgr_defaults"],
33 export_include_dirs: ["include"],
34 include_dirs: ["system/vold"],
35 srcs: [
36 "fs_mgr.cpp",
37 "fs_mgr_dm_ioctl.cpp",
38 "fs_mgr_format.cpp",
Tom Cherry37b5ada2017-05-12 17:05:22 -070039 "fs_mgr_verity.cpp",
40 "fs_mgr_avb.cpp",
41 "fs_mgr_avb_ops.cpp",
Jiyong Parke7df1f72017-06-28 11:17:30 +090042 ],
43 static_libs: [
Jiyong Parke7df1f72017-06-28 11:17:30 +090044 "libfec",
45 "libfec_rs",
46 "libbase",
47 "libcrypto_utils",
48 "libcrypto",
49 "libext4_utils",
50 "libsquashfs_utils",
51 "libselinux",
52 "libavb",
53 "libfstab",
54 ],
55 export_static_lib_headers: [
56 "libfstab",
57 ],
58 whole_static_libs: [
Jin Qian42d81372017-04-21 16:56:34 -070059 "liblogwrap",
Jiyong Parke7df1f72017-06-28 11:17:30 +090060 "libfstab",
Tom Cherry37b5ada2017-05-12 17:05:22 -070061 ],
Tom Cherry31121ca2017-10-10 13:30:57 -070062 cppflags: [
Tom Cherry31121ca2017-10-10 13:30:57 -070063 "-DALLOW_ADBD_DISABLE_VERITY=0",
64 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070065 product_variables: {
66 debuggable: {
Tom Cherry31121ca2017-10-10 13:30:57 -070067 cppflags: [
68 "-UALLOW_ADBD_DISABLE_VERITY",
69 "-DALLOW_ADBD_DISABLE_VERITY=1",
70 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070071 },
Tom Cherry37b5ada2017-05-12 17:05:22 -070072 },
73}
Jiyong Parke7df1f72017-06-28 11:17:30 +090074
75cc_library_static {
76 name: "libfstab",
77 vendor_available: true,
78 defaults: ["fs_mgr_defaults"],
79 srcs: [
80 "fs_mgr_fstab.cpp",
81 "fs_mgr_boot_config.cpp",
82 "fs_mgr_slotselect.cpp",
83 ],
84 export_include_dirs: ["include_fstab"],
85 header_libs: ["libbase_headers"],
86}