Please try with this approach to include the .s
files. It is important to have a fallback C
implementation and I assume that you do have one. In your codecs' Android.mk
file,
ifeq ($(TARGET_ARCH),arm)
LOCAL_SRC_FILES += \
src/asm/file1.s \
src/asm/file2.s \
src/asm/file3.s \
src/asm/file4.s
else
LOCAL_SRC_FILES += \
src/file1.cpp \
src/file2.cpp \
src/file3.cpp \
src/file4.cpp
endif
For example, you can refer to the way the MP3
decoder is build as in this Android.mk
file.