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, |
| 4 | vndk: { |
| 5 | enabled: true, |
| 6 | }, |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 7 | |
| 8 | srcs: [ |
| 9 | "Tremolo/bitwise.c", |
| 10 | "Tremolo/codebook.c", |
| 11 | "Tremolo/dsp.c", |
| 12 | "Tremolo/floor0.c", |
| 13 | "Tremolo/floor1.c", |
| 14 | "Tremolo/floor_lookup.c", |
| 15 | "Tremolo/framing.c", |
| 16 | "Tremolo/mapping0.c", |
| 17 | "Tremolo/mdct.c", |
| 18 | "Tremolo/misc.c", |
| 19 | "Tremolo/res012.c", |
| 20 | "Tremolo/treminfo.c", |
| 21 | "Tremolo/vorbisfile.c", |
| 22 | ], |
| 23 | |
| 24 | arch: { |
| 25 | arm: { |
| 26 | srcs: [ |
| 27 | "Tremolo/bitwiseARM.s", |
| 28 | "Tremolo/dpen.s", |
| 29 | "Tremolo/floor1ARM.s", |
| 30 | "Tremolo/mdctARM.s", |
| 31 | ], |
| 32 | cflags: ["-D_ARM_ASSEM_"], |
| 33 | // Assembly code in asm_arm.h does not compile with Clang. |
| 34 | clang_asflags: ["-no-integrated-as"], |
| 35 | |
| 36 | instruction_set: "arm", |
| 37 | }, |
| 38 | arm64: { |
| 39 | cflags: ["-DONLY_C"], |
| 40 | }, |
| 41 | mips: { |
| 42 | cflags: ["-DONLY_C"], |
| 43 | }, |
| 44 | mips64: { |
| 45 | cflags: ["-DONLY_C"], |
| 46 | }, |
| 47 | x86: { |
| 48 | cflags: ["-DONLY_C"], |
| 49 | }, |
| 50 | x86_64: { |
| 51 | cflags: ["-DONLY_C"], |
| 52 | }, |
| 53 | }, |
| 54 | |
| 55 | cflags: [ |
| 56 | "-O2", |
| 57 | "-D_GNU_SOURCE", |
Marco Nelissen | 92fe92d | 2017-05-11 08:26:37 -0700 | [diff] [blame] | 58 | "-funsigned-char", |
Chih-Hung Hsieh | c59d2d7 | 2017-09-29 11:32:51 -0700 | [diff] [blame] | 59 | "-Wall", |
| 60 | "-Werror", |
| 61 | "-Wno-unused-variable", |
Colin Cross | 3b63664 | 2017-04-20 13:01:17 -0700 | [diff] [blame] | 62 | ], |
| 63 | |
| 64 | local_include_dirs: ["Tremolo"], |
| 65 | export_include_dirs: ["."], |
| 66 | |
| 67 | shared_libs: ["liblog"], |
| 68 | } |