Colin Cross | a7e3c5e | 2017-04-20 13:12:03 -0700 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "libFLAC", |
Jiyong Park | 75e095d | 2017-08-07 13:14:02 +0900 | [diff] [blame] | 3 | vendor_available: true, |
Colin Cross | a7e3c5e | 2017-04-20 13:12:03 -0700 | [diff] [blame] | 4 | |
| 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 Hughes | ae0e7bc | 2018-01-12 14:46:04 -0800 | [diff] [blame] | 44 | "-Wno-unused-parameter", |
Colin Cross | a7e3c5e | 2017-04-20 13:12:03 -0700 | [diff] [blame] | 45 | ], |
| 46 | |
| 47 | arch: { |
| 48 | arm: { |
| 49 | instruction_set: "arm", |
| 50 | }, |
| 51 | }, |
| 52 | |
| 53 | sanitize: { |
Ivan Lozano | 9f57db4 | 2018-07-10 12:30:50 -0700 | [diff] [blame] | 54 | integer_overflow: true, |
Ivan Lozano | 2517578 | 2018-10-04 10:56:18 -0700 | [diff] [blame] | 55 | misc_undefined: ["bounds"], |
Ivan Lozano | 53faae7 | 2019-02-04 12:52:27 -0800 | [diff] [blame] | 56 | // Enable CFI if this is used as a shared library |
| 57 | // cfi: true, |
Ivan Lozano | 9f57db4 | 2018-07-10 12:30:50 -0700 | [diff] [blame] | 58 | blacklist: "libFLAC_blacklist.txt", |
Colin Cross | a7e3c5e | 2017-04-20 13:12:03 -0700 | [diff] [blame] | 59 | }, |
Jooyung Han | db2286a | 2020-04-16 18:48:26 +0900 | [diff] [blame] | 60 | |
| 61 | min_sdk_version: "29", |
Colin Cross | a7e3c5e | 2017-04-20 13:12:03 -0700 | [diff] [blame] | 62 | } |