1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES = \
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
19ifeq ($(TARGET_ARCH),arm)
20LOCAL_SRC_FILES += \
21	Tremolo/bitwiseARM.s \
22	Tremolo/dpen.s \
23	Tremolo/floor1ARM.s \
24	Tremolo/mdctARM.s
25LOCAL_CFLAGS += \
26    -D_ARM_ASSEM_
27# Assembly code in asm_arm.h does not compile with Clang.
28LOCAL_CLANG_ASFLAGS += \
29    -no-integrated-as
30else
31LOCAL_CFLAGS += \
32    -DONLY_C
33endif
34LOCAL_CFLAGS+= -O2
35
36LOCAL_C_INCLUDES:= \
37	$(LOCAL_PATH)/Tremolo
38
39LOCAL_SHARED_LIBRARIES := liblog
40
41LOCAL_ARM_MODE := arm
42
43LOCAL_MODULE := libvorbisidec
44
45include $(BUILD_SHARED_LIBRARY)
46