Ticket #1904: Android.mk

File Android.mk, 1.0 KB (added by nanang, 8 years ago)

Android Makefile (tested with Opus 1.1.2)

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