1// 2// Copyright (C) 2018 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_library_static { 18 name: "libfiemap_writer", 19 defaults: ["fs_mgr_defaults"], 20 recovery_available: true, 21 export_include_dirs: ["include"], 22 cflags: [ 23 "-D_FILE_OFFSET_BITS=64", 24 ], 25 26 srcs: [ 27 "fiemap_writer.cpp", 28 "split_fiemap_writer.cpp", 29 "utility.cpp", 30 ], 31 32 static_libs: [ 33 "libext4_utils", 34 ], 35 36 header_libs: [ 37 "libbase_headers", 38 "liblog_headers", 39 ], 40} 41 42cc_test { 43 name: "fiemap_writer_test", 44 cflags: [ 45 "-D_FILE_OFFSET_BITS=64", 46 ], 47 static_libs: [ 48 "libbase", 49 "libdm", 50 "libfiemap_writer", 51 "liblog", 52 ], 53 54 data: [ 55 "testdata/unaligned_file", 56 "testdata/file_4k", 57 "testdata/file_32k", 58 ], 59 60 srcs: [ 61 "fiemap_writer_test.cpp", 62 ], 63} 64