blob: 9d70dcad8020572515d47298d5e2f76f884027bd [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 },
Colin Cross3b636642017-04-20 13:01:17 -070038 x86: {
39 cflags: ["-DONLY_C"],
40 },
41 x86_64: {
42 cflags: ["-DONLY_C"],
43 },
44 },
45
46 cflags: [
47 "-O2",
48 "-D_GNU_SOURCE",
Marco Nelissen92fe92d2017-05-11 08:26:37 -070049 "-funsigned-char",
Chih-Hung Hsiehc59d2d72017-09-29 11:32:51 -070050 "-Wall",
51 "-Werror",
52 "-Wno-unused-variable",
Colin Cross3b636642017-04-20 13:01:17 -070053 ],
54
55 local_include_dirs: ["Tremolo"],
56 export_include_dirs: ["."],
57
58 shared_libs: ["liblog"],
Ivan Lozano1f2a6d82018-07-10 13:03:38 -070059
60 sanitize: {
61 integer_overflow: true,
Ivan Lozanoa3eae7a2018-10-04 14:56:52 -070062 misc_undefined: ["bounds"],
Ivan Lozano1f2a6d82018-07-10 13:03:38 -070063 },
Colin Cross3b636642017-04-20 13:01:17 -070064}