blob: 4441ad0c15843a183179e352718013d3b5f7d2cb [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"],
24 static_libs: [
Tom Cherry37b5ada2017-05-12 17:05:22 -070025 "libfec",
26 "libfec_rs",
27 "libbase",
28 "libcrypto_utils",
29 "libcrypto",
30 "libext4_utils",
31 "libsquashfs_utils",
32 "libselinux",
33 "libavb",
34 ],
Jin Qianf71bc0c2017-04-21 16:56:34 -070035 whole_static_libs: [
36 "liblogwrap",
37 ],
Tom Cherry37b5ada2017-05-12 17:05:22 -070038}
39
40cc_library_static {
41 name: "libfs_mgr",
42 defaults: ["fs_mgr_defaults"],
43 export_include_dirs: ["include"],
44 include_dirs: ["system/vold"],
45 srcs: [
46 "fs_mgr.cpp",
47 "fs_mgr_dm_ioctl.cpp",
48 "fs_mgr_format.cpp",
49 "fs_mgr_fstab.cpp",
50 "fs_mgr_slotselect.cpp",
51 "fs_mgr_verity.cpp",
52 "fs_mgr_avb.cpp",
53 "fs_mgr_avb_ops.cpp",
54 "fs_mgr_boot_config.cpp",
55 ],
56 product_variables: {
57 debuggable: {
58 cppflags: ["-DALLOW_ADBD_DISABLE_VERITY=1"],
59 },
60 eng: {
61 cppflags: ["-DALLOW_SKIP_SECURE_CHECK=1"],
62 },
63 },
64}