blob: bdf7f8d2d061ea1ea7c57a9f6c81c39d73605e75 [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,
Ayushi Khopkar31a0aa82020-04-06 17:16:28 +05304 host_supported: true,
Colin Cross3b636642017-04-20 13:01:17 -07005
6 srcs: [
7 "Tremolo/bitwise.c",
8 "Tremolo/codebook.c",
9 "Tremolo/dsp.c",
10 "Tremolo/floor0.c",
11 "Tremolo/floor1.c",
12 "Tremolo/floor_lookup.c",
13 "Tremolo/framing.c",
14 "Tremolo/mapping0.c",
15 "Tremolo/mdct.c",
16 "Tremolo/misc.c",
17 "Tremolo/res012.c",
18 "Tremolo/treminfo.c",
19 "Tremolo/vorbisfile.c",
20 ],
21
22 arch: {
23 arm: {
24 srcs: [
25 "Tremolo/bitwiseARM.s",
26 "Tremolo/dpen.s",
27 "Tremolo/floor1ARM.s",
28 "Tremolo/mdctARM.s",
29 ],
30 cflags: ["-D_ARM_ASSEM_"],
31 // Assembly code in asm_arm.h does not compile with Clang.
32 clang_asflags: ["-no-integrated-as"],
33
34 instruction_set: "arm",
35 },
36 arm64: {
37 cflags: ["-DONLY_C"],
38 },
Colin Cross3b636642017-04-20 13:01:17 -070039 x86: {
40 cflags: ["-DONLY_C"],
41 },
42 x86_64: {
43 cflags: ["-DONLY_C"],
44 },
45 },
46
47 cflags: [
48 "-O2",
49 "-D_GNU_SOURCE",
Marco Nelissen92fe92d2017-05-11 08:26:37 -070050 "-funsigned-char",
Chih-Hung Hsiehc59d2d72017-09-29 11:32:51 -070051 "-Wall",
52 "-Werror",
53 "-Wno-unused-variable",
Colin Cross3b636642017-04-20 13:01:17 -070054 ],
55
56 local_include_dirs: ["Tremolo"],
57 export_include_dirs: ["."],
58
59 shared_libs: ["liblog"],
Ivan Lozano1f2a6d82018-07-10 13:03:38 -070060
61 sanitize: {
62 integer_overflow: true,
Ivan Lozanoa3eae7a2018-10-04 14:56:52 -070063 misc_undefined: ["bounds"],
Ivan Lozano1f2a6d82018-07-10 13:03:38 -070064 },
Ayushi Khopkar31a0aa82020-04-06 17:16:28 +053065
66 target: {
67 darwin: {
68 enabled: false,
69 },
70 },
Jooyung Han1c8ab972020-04-16 18:48:31 +090071 min_sdk_version: "29",
Colin Cross3b636642017-04-20 13:01:17 -070072}