blob: c0278c2c1095c5b6f082c96f80457ff07b6b7eb9 [file] [log] [blame]
Dongwon Kang4dd4aad2017-10-19 13:28:13 -07001cc_library {
Colin Cross3b636642017-04-20 13:01:17 -07002 name: "libvorbisidec",
Jiyong Park6fb7d062017-08-07 13:16:05 +09003 vendor_available: true,
4 vndk: {
5 enabled: true,
6 },
Colin Cross3b636642017-04-20 13:01:17 -07007
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 Nelissen92fe92d2017-05-11 08:26:37 -070058 "-funsigned-char",
Chih-Hung Hsiehc59d2d72017-09-29 11:32:51 -070059 "-Wall",
60 "-Werror",
61 "-Wno-unused-variable",
Colin Cross3b636642017-04-20 13:01:17 -070062 ],
63
64 local_include_dirs: ["Tremolo"],
65 export_include_dirs: ["."],
66
67 shared_libs: ["liblog"],
Ivan Lozano1f2a6d82018-07-10 13:03:38 -070068
69 sanitize: {
70 integer_overflow: true,
71 diag: {
72 integer_overflow: true,
73 },
74 },
Colin Cross3b636642017-04-20 13:01:17 -070075}