blob: 1145fc4192846c982f87b34e564fc4066a62af4d [file] [log] [blame]
Alex Deymoe8ed6942017-01-11 16:54:52 -08001// 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 },
32
33 clang: true,
34 sanitize: {
35 misc_undefined: ["integer"],
36 },
37}