| Tom Cherry | 37b5ada | 2017-05-12 17:05:22 -0700 | [diff] [blame] | 1 | // | 
|  | 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 |  | 
|  | 17 | cc_defaults { | 
|  | 18 | name: "fs_mgr_defaults", | 
|  | 19 | sanitize: { | 
|  | 20 | misc_undefined: ["integer"], | 
|  | 21 | }, | 
|  | 22 | local_include_dirs: ["include/"], | 
| Chih-Hung Hsieh | 122352d | 2017-10-02 15:20:07 -0700 | [diff] [blame] | 23 | cflags: [ | 
|  | 24 | "-Wall", | 
|  | 25 | "-Werror", | 
|  | 26 | "-Wno-unused-variable", | 
|  | 27 | ], | 
| Bowgo Tsai | 8028189 | 2017-12-12 00:47:43 +0800 | [diff] [blame] | 28 | cppflags: [ | 
|  | 29 | "-std=gnu++1z", | 
|  | 30 | ], | 
| Tom Cherry | 37b5ada | 2017-05-12 17:05:22 -0700 | [diff] [blame] | 31 | } | 
|  | 32 |  | 
|  | 33 | cc_library_static { | 
|  | 34 | name: "libfs_mgr", | 
|  | 35 | defaults: ["fs_mgr_defaults"], | 
| Jiyong Park | a0e7504 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 36 | recovery_available: true, | 
| Tom Cherry | 37b5ada | 2017-05-12 17:05:22 -0700 | [diff] [blame] | 37 | export_include_dirs: ["include"], | 
|  | 38 | include_dirs: ["system/vold"], | 
|  | 39 | srcs: [ | 
|  | 40 | "fs_mgr.cpp", | 
| Tom Cherry | 37b5ada | 2017-05-12 17:05:22 -0700 | [diff] [blame] | 41 | "fs_mgr_format.cpp", | 
| Tom Cherry | 37b5ada | 2017-05-12 17:05:22 -0700 | [diff] [blame] | 42 | "fs_mgr_verity.cpp", | 
|  | 43 | "fs_mgr_avb.cpp", | 
|  | 44 | "fs_mgr_avb_ops.cpp", | 
| David Anderson | 62e5b20 | 2018-05-01 17:09:17 -0700 | [diff] [blame] | 45 | "fs_mgr_dm_linear.cpp", | 
| Jiyong Park | e7df1f7 | 2017-06-28 11:17:30 +0900 | [diff] [blame] | 46 | ], | 
|  | 47 | static_libs: [ | 
| Jiyong Park | e7df1f7 | 2017-06-28 11:17:30 +0900 | [diff] [blame] | 48 | "libfec", | 
|  | 49 | "libfec_rs", | 
|  | 50 | "libbase", | 
|  | 51 | "libcrypto_utils", | 
|  | 52 | "libcrypto", | 
|  | 53 | "libext4_utils", | 
|  | 54 | "libsquashfs_utils", | 
|  | 55 | "libselinux", | 
|  | 56 | "libavb", | 
|  | 57 | "libfstab", | 
| Sandeep Patil | 59f04ee | 2018-05-30 13:46:55 -0700 | [diff] [blame] | 58 | "libdm", | 
| David Anderson | ea3b8ac | 2018-06-07 15:36:09 -0700 | [diff] [blame] | 59 | "liblp", | 
| Jiyong Park | e7df1f7 | 2017-06-28 11:17:30 +0900 | [diff] [blame] | 60 | ], | 
|  | 61 | export_static_lib_headers: [ | 
|  | 62 | "libfstab", | 
| Sandeep Patil | 59f04ee | 2018-05-30 13:46:55 -0700 | [diff] [blame] | 63 | "libdm", | 
| David Anderson | ea3b8ac | 2018-06-07 15:36:09 -0700 | [diff] [blame] | 64 | "liblp", | 
| Jiyong Park | e7df1f7 | 2017-06-28 11:17:30 +0900 | [diff] [blame] | 65 | ], | 
|  | 66 | whole_static_libs: [ | 
| David Anderson | ea3b8ac | 2018-06-07 15:36:09 -0700 | [diff] [blame] | 67 | "liblp", | 
| Jin Qian | 42d8137 | 2017-04-21 16:56:34 -0700 | [diff] [blame] | 68 | "liblogwrap", | 
| Sandeep Patil | 59f04ee | 2018-05-30 13:46:55 -0700 | [diff] [blame] | 69 | "libdm", | 
| Jiyong Park | e7df1f7 | 2017-06-28 11:17:30 +0900 | [diff] [blame] | 70 | "libfstab", | 
| Tom Cherry | 37b5ada | 2017-05-12 17:05:22 -0700 | [diff] [blame] | 71 | ], | 
| Tom Cherry | 31121ca | 2017-10-10 13:30:57 -0700 | [diff] [blame] | 72 | cppflags: [ | 
| Tom Cherry | 31121ca | 2017-10-10 13:30:57 -0700 | [diff] [blame] | 73 | "-DALLOW_ADBD_DISABLE_VERITY=0", | 
|  | 74 | ], | 
| Tom Cherry | 37b5ada | 2017-05-12 17:05:22 -0700 | [diff] [blame] | 75 | product_variables: { | 
|  | 76 | debuggable: { | 
| Tom Cherry | 31121ca | 2017-10-10 13:30:57 -0700 | [diff] [blame] | 77 | cppflags: [ | 
|  | 78 | "-UALLOW_ADBD_DISABLE_VERITY", | 
|  | 79 | "-DALLOW_ADBD_DISABLE_VERITY=1", | 
|  | 80 | ], | 
| Tom Cherry | 37b5ada | 2017-05-12 17:05:22 -0700 | [diff] [blame] | 81 | }, | 
| Tom Cherry | 37b5ada | 2017-05-12 17:05:22 -0700 | [diff] [blame] | 82 | }, | 
|  | 83 | } | 
| Jiyong Park | e7df1f7 | 2017-06-28 11:17:30 +0900 | [diff] [blame] | 84 |  | 
|  | 85 | cc_library_static { | 
|  | 86 | name: "libfstab", | 
|  | 87 | vendor_available: true, | 
| Jiyong Park | a0e7504 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 88 | recovery_available: true, | 
| Jiyong Park | e7df1f7 | 2017-06-28 11:17:30 +0900 | [diff] [blame] | 89 | defaults: ["fs_mgr_defaults"], | 
|  | 90 | srcs: [ | 
|  | 91 | "fs_mgr_fstab.cpp", | 
|  | 92 | "fs_mgr_boot_config.cpp", | 
|  | 93 | "fs_mgr_slotselect.cpp", | 
|  | 94 | ], | 
|  | 95 | export_include_dirs: ["include_fstab"], | 
|  | 96 | header_libs: ["libbase_headers"], | 
|  | 97 | } |