blob: 912b312bfbc211adbf7f59c815204c884b71bfc2 [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,
Colin Cross3b636642017-04-20 13:01:17 -07004
5 srcs: [
6 "Tremolo/bitwise.c",
7 "Tremolo/codebook.c",
8 "Tremolo/dsp.c",
9 "Tremolo/floor0.c",
10 "Tremolo/floor1.c",
11 "Tremolo/floor_lookup.c",
12 "Tremolo/framing.c",
13 "Tremolo/mapping0.c",
14 "Tremolo/mdct.c",
15 "Tremolo/misc.c",
16 "Tremolo/res012.c",
17 "Tremolo/treminfo.c",
18 "Tremolo/vorbisfile.c",
19 ],
20
21 arch: {
22 arm: {
23 srcs: [
24 "Tremolo/bitwiseARM.s",
25 "Tremolo/dpen.s",
26 "Tremolo/floor1ARM.s",
27 "Tremolo/mdctARM.s",
28 ],
29 cflags: ["-D_ARM_ASSEM_"],
30 // Assembly code in asm_arm.h does not compile with Clang.
31 clang_asflags: ["-no-integrated-as"],
32
33 instruction_set: "arm",
34 },
35 arm64: {
36 cflags: ["-DONLY_C"],
37 },
38 mips: {
39 cflags: ["-DONLY_C"],
40 },
41 mips64: {
42 cflags: ["-DONLY_C"],
43 },
44 x86: {
45 cflags: ["-DONLY_C"],
46 },
47 x86_64: {
48 cflags: ["-DONLY_C"],
49 },
50 },
51
52 cflags: [
53 "-O2",
54 "-D_GNU_SOURCE",
Marco Nelissen92fe92d2017-05-11 08:26:37 -070055 "-funsigned-char",
Chih-Hung Hsiehc59d2d72017-09-29 11:32:51 -070056 "-Wall",
57 "-Werror",
58 "-Wno-unused-variable",
Colin Cross3b636642017-04-20 13:01:17 -070059 ],
60
61 local_include_dirs: ["Tremolo"],
62 export_include_dirs: ["."],
63
64 shared_libs: ["liblog"],
Ivan Lozano1f2a6d82018-07-10 13:03:38 -070065
66 sanitize: {
67 integer_overflow: true,
Ivan Lozanoa3eae7a2018-10-04 14:56:52 -070068 misc_undefined: ["bounds"],
Ivan Lozano1f2a6d82018-07-10 13:03:38 -070069 },
Jooyung Han071bc602020-04-16 18:48:31 +090070
71 min_sdk_version: "29",
Colin Cross3b636642017-04-20 13:01:17 -070072}