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