Dongwon Kang | 4dd4aad | 2017-10-19 13:28:13 -0700 | [diff] [blame] | 1 | cc_library { |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 2 | name: "libvorbisidec", |
Jiyong Park | 6fb7d06 | 2017-08-07 13:16:05 +0900 | [diff] [blame] | 3 | vendor_available: true, |
Ayushi Khopkar | 31a0aa8 | 2020-04-06 17:16:28 +0530 | [diff] [blame] | 4 | host_supported: true, |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 5 | |
| 6 | srcs: [ |
| 7 | "Tremolo/bitwise.c", |
| 8 | "Tremolo/codebook.c", |
| 9 | "Tremolo/dsp.c", |
| 10 | "Tremolo/floor0.c", |
| 11 | "Tremolo/floor1.c", |
| 12 | "Tremolo/floor_lookup.c", |
| 13 | "Tremolo/framing.c", |
| 14 | "Tremolo/mapping0.c", |
| 15 | "Tremolo/mdct.c", |
| 16 | "Tremolo/misc.c", |
| 17 | "Tremolo/res012.c", |
| 18 | "Tremolo/treminfo.c", |
| 19 | "Tremolo/vorbisfile.c", |
| 20 | ], |
| 21 | |
| 22 | arch: { |
| 23 | arm: { |
| 24 | srcs: [ |
| 25 | "Tremolo/bitwiseARM.s", |
| 26 | "Tremolo/dpen.s", |
| 27 | "Tremolo/floor1ARM.s", |
| 28 | "Tremolo/mdctARM.s", |
| 29 | ], |
| 30 | cflags: ["-D_ARM_ASSEM_"], |
| 31 | // Assembly code in asm_arm.h does not compile with Clang. |
| 32 | clang_asflags: ["-no-integrated-as"], |
| 33 | |
| 34 | instruction_set: "arm", |
| 35 | }, |
| 36 | arm64: { |
| 37 | cflags: ["-DONLY_C"], |
| 38 | }, |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 39 | x86: { |
| 40 | cflags: ["-DONLY_C"], |
| 41 | }, |
| 42 | x86_64: { |
| 43 | cflags: ["-DONLY_C"], |
| 44 | }, |
| 45 | }, |
| 46 | |
| 47 | cflags: [ |
| 48 | "-O2", |
| 49 | "-D_GNU_SOURCE", |
Marco Nelissen | 92fe92d | 2017-05-11 08:26:37 -0700 | [diff] [blame] | 50 | "-funsigned-char", |
Chih-Hung Hsieh | c59d2d7 | 2017-09-29 11:32:51 -0700 | [diff] [blame] | 51 | "-Wall", |
| 52 | "-Werror", |
| 53 | "-Wno-unused-variable", |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 54 | ], |
| 55 | |
| 56 | local_include_dirs: ["Tremolo"], |
| 57 | export_include_dirs: ["."], |
| 58 | |
| 59 | shared_libs: ["liblog"], |
Ivan Lozano | 1f2a6d8 | 2018-07-10 13:03:38 -0700 | [diff] [blame] | 60 | |
| 61 | sanitize: { |
| 62 | integer_overflow: true, |
Ivan Lozano | a3eae7a | 2018-10-04 14:56:52 -0700 | [diff] [blame] | 63 | misc_undefined: ["bounds"], |
Ivan Lozano | 1f2a6d8 | 2018-07-10 13:03:38 -0700 | [diff] [blame] | 64 | }, |
Ayushi Khopkar | 31a0aa8 | 2020-04-06 17:16:28 +0530 | [diff] [blame] | 65 | |
| 66 | target: { |
| 67 | darwin: { |
| 68 | enabled: false, |
| 69 | }, |
| 70 | }, |
Jooyung Han | 1c8ab97 | 2020-04-16 18:48:31 +0900 | [diff] [blame] | 71 | min_sdk_version: "29", |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 72 | } |