1 | LOCAL_PATH := $(call my-dir)/.. |
---|
2 | |
---|
3 | include $(CLEAR_VARS) |
---|
4 | |
---|
5 | include $(LOCAL_PATH)/celt_sources.mk |
---|
6 | include $(LOCAL_PATH)/silk_sources.mk |
---|
7 | include $(LOCAL_PATH)/opus_sources.mk |
---|
8 | |
---|
9 | LOCAL_MODULE := opus |
---|
10 | |
---|
11 | # Fixed point sources |
---|
12 | SILK_SOURCES += $(SILK_SOURCES_FIXED) |
---|
13 | |
---|
14 | # ARM build |
---|
15 | CELT_SOURCES += $(CELT_SOURCES_ARM) |
---|
16 | SILK_SOURCES += $(SILK_SOURCES_ARM) |
---|
17 | LOCAL_SRC_FILES := \ |
---|
18 | $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES) $(OPUS_SOURCES_FLOAT) |
---|
19 | |
---|
20 | LOCAL_LDLIBS := -lm -llog |
---|
21 | LOCAL_C_INCLUDES := \ |
---|
22 | $(LOCAL_PATH)/include \ |
---|
23 | $(LOCAL_PATH)/silk \ |
---|
24 | $(LOCAL_PATH)/silk/fixed \ |
---|
25 | $(LOCAL_PATH)/celt |
---|
26 | LOCAL_CFLAGS := -DNULL=0 -DSOCKLEN_T=socklen_t -DLOCALE_NOT_USED -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 |
---|
27 | LOCAL_CFLAGS += -Drestrict='' -D__EMX__ -DOPUS_BUILD -DFIXED_POINT -DUSE_ALLOCA -DHAVE_LRINT -DHAVE_LRINTF -O3 -fno-math-errno |
---|
28 | LOCAL_CPPFLAGS := -DBSD=1 |
---|
29 | LOCAL_CPPFLAGS += -ffast-math -O3 -funroll-loops |
---|
30 | |
---|
31 | include $(BUILD_STATIC_LIBRARY) |
---|