blob: 4376ee26ae10fbabc8aac1d5c57ad312e72d4641 [file] [log] [blame]
Colin Crossa7e3c5e2017-04-20 13:12:03 -07001cc_library_static {
2 name: "libFLAC",
Jiyong Park75e095d2017-08-07 13:14:02 +09003 vendor_available: true,
Colin Crossa7e3c5e2017-04-20 13:12:03 -07004
5 srcs: [
6 "bitmath.c",
7 "bitreader.c",
8 "bitwriter.c",
9 "cpu.c",
10 "crc.c",
11 "fixed.c",
12 "float.c",
13 "format.c",
14 "lpc.c",
15 "memory.c",
16 "md5.c",
17 "stream_decoder.c",
18 "stream_encoder.c",
19 "stream_encoder_framing.c",
20 "window.c",
21 ],
22
23 local_include_dirs: ["include"],
24 header_libs: [
25 "libFLAC-config",
26 "libFLAC-headers",
27 ],
28 export_header_lib_headers: ["libFLAC-headers"],
29
30 cflags: [
31 "-DHAVE_CONFIG_H",
32 "-DFLAC__NO_MD5",
33 "-DFLAC__INTEGER_ONLY_LIBRARY",
34
35 "-D_REENTRANT",
36 "-DPIC",
37 "-DU_COMMON_IMPLEMENTATION",
38 "-fPIC",
39
40 "-O3",
41 "-funroll-loops",
42 "-finline-functions",
43 "-Werror",
Elliott Hughesae0e7bc2018-01-12 14:46:04 -080044 "-Wno-unused-parameter",
Colin Crossa7e3c5e2017-04-20 13:12:03 -070045 ],
46
47 arch: {
48 arm: {
49 instruction_set: "arm",
50 },
51 },
52
53 sanitize: {
Ivan Lozano9f57db42018-07-10 12:30:50 -070054 integer_overflow: true,
Ivan Lozano25175782018-10-04 10:56:18 -070055 misc_undefined: ["bounds"],
Ivan Lozano53faae72019-02-04 12:52:27 -080056 // Enable CFI if this is used as a shared library
57 // cfi: true,
Ivan Lozano9f57db42018-07-10 12:30:50 -070058 blacklist: "libFLAC_blacklist.txt",
Colin Crossa7e3c5e2017-04-20 13:12:03 -070059 },
Jooyung Handb2286a2020-04-16 18:48:26 +090060
61 min_sdk_version: "29",
Colin Crossa7e3c5e2017-04-20 13:12:03 -070062}