LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES = \
Tremolo/bitwise.c \
Tremolo/codebook.c \
Tremolo/dsp.c \
Tremolo/floor0.c \
Tremolo/floor1.c \
Tremolo/floor_lookup.c \
Tremolo/framing.c \
Tremolo/mapping0.c \
Tremolo/mdct.c \
Tremolo/misc.c \
Tremolo/res012.c \
Tremolo/treminfo.c \
Tremolo/vorbisfile.c
ifeq ($(TARGET_ARCH),arm)
LOCAL_SRC_FILES += \
Tremolo/bitwiseARM.s \
Tremolo/dpen.s \
Tremolo/floor1ARM.s \
Tremolo/mdctARM.s
LOCAL_CFLAGS += \
-D_ARM_ASSEM_
# Assembly code in asm_arm.h does not compile with Clang.
LOCAL_CLANG_ASFLAGS += \
-no-integrated-as
else
LOCAL_CFLAGS += \
-DONLY_C
endif
LOCAL_CFLAGS+= -O2
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/Tremolo
LOCAL_SHARED_LIBRARIES := liblog
LOCAL_ARM_MODE := arm
LOCAL_MODULE := libvorbisidec
include $(BUILD_SHARED_LIBRARY)