1// Copyright 2015 The Android Open Source Project 2 3cc_library { 4 name: "libfec", 5 host_supported: true, 6 srcs: [ 7 "fec_open.cpp", 8 "fec_read.cpp", 9 "fec_verity.cpp", 10 "fec_process.cpp", 11 ], 12 cflags: ["-Wall", "-Werror", "-O3", "-D_LARGEFILE64_SOURCE"], 13 export_include_dirs: ["include"], 14 // Exported header include/fec/io.h includes crypto_utils headers. 15 export_static_lib_headers: ["libcrypto_utils"], 16 17 static_libs: [ 18 "libext4_utils", 19 "libfec_rs", 20 "libsquashfs_utils", 21 "libcrypto_utils", 22 "libcrypto", 23 "libcutils", 24 "libbase", 25 ], 26 27 target: { 28 host: { 29 cflags: ["-D_GNU_SOURCE", "-DFEC_NO_KLOG"] 30 }, 31 linux: { 32 sanitize: { 33 misc_undefined: ["integer"], 34 }, 35 }, 36 }, 37 38 clang: true, 39} 40