Created
August 16, 2019 15:45
-
-
Save ppamorim/b20d89428abf75e6209305cbb6e5fe65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################### | |
### Build libopus ### | |
##################### | |
LOCAL_PATH := $(ROOT)/libopus | |
include $(CLEAR_VARS) | |
#include the .mk files | |
include $(LOCAL_PATH)/celt_sources.mk | |
include $(LOCAL_PATH)/silk_sources.mk | |
include $(LOCAL_PATH)/opus_sources.mk | |
LOCAL_MODULE := opus | |
#fixed point sources | |
# SILK_SOURCES += $(SILK_SOURCES_FIXED) | |
#floating point sources | |
SILK_SOURCES += $(SILK_SOURCES_FLOAT) | |
#ARM build | |
CELT_SOURCES += $(CELT_SOURCES_ARM) | |
SILK_SOURCES += $(SILK_SOURCES_ARM) | |
OPUS_SOURCES += $(OPUS_SOURCES_FLOAT) | |
LOCAL_SRC_FILES := \ | |
$(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES) | |
LOCAL_LDLIBS := -lm -llog | |
LOCAL_C_INCLUDES := \ | |
$(LOCAL_PATH)/include \ | |
$(LOCAL_PATH)/silk \ | |
$(LOCAL_PATH)/silk/fixed \ | |
$(LOCAL_PATH)/silk/float \ | |
$(LOCAL_PATH)/celt | |
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include | |
LOCAL_CFLAGS := -DNULL=0 -DSOCKLEN_T=socklen_t -DLOCALE_NOT_USED -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 | |
LOCAL_CFLAGS += -Drestrict='' -D__EMX__ -DOPUS_BUILD -DFIXED_POINT=1 -DUSE_ALLOCA -DHAVE_LRINT -DHAVE_LRINTF -O3 -fno-math-errno | |
LOCAL_CPPFLAGS := -DBSD=1 | |
LOCAL_CPPFLAGS += -ffast-math -O3 -funroll-loops | |
include $(BUILD_STATIC_LIBRARY) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment