blob: c7058040d720ea34075082dad633f2424612b360 [file] [log] [blame]
Colin Cross3b636642017-04-20 13:01:17 -07001cc_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 Nelissen92fe92d2017-05-11 08:26:37 -070054 "-funsigned-char",
Chih-Hung Hsiehc59d2d72017-09-29 11:32:51 -070055 "-Wall",
56 "-Werror",
57 "-Wno-unused-variable",
Colin Cross3b636642017-04-20 13:01:17 -070058 ],
59
60 local_include_dirs: ["Tremolo"],
61 export_include_dirs: ["."],
62
63 shared_libs: ["liblog"],
64}