Commit 0c9d65c3 authored by Ghislain MARY's avatar Ghislain MARY

Fix build on Android.

parent a106bde1
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libmsisac
LOCAL_MODULE := libmswebrtc
ISAC_SRC_DIR = $(LOCAL_PATH)/../externals/webrtc
WEBRTC_SRC_DIR = $(LOCAL_PATH)/../externals/webrtc
LOCAL_SRC_FILES := isac_enc.c isac_dec.c
LOCAL_SRC_FILES := mswebrtc.c
LOCAL_STATIC_LIBRARIES += libwebrtc_isacfix libwebrtc_isacfix_neon libwebrtc_spl libwebrtc_spl_neon
LOCAL_C_INCLUDES += $(ISAC_SRC_DIR) \
$(ISAC_SRC_DIR)/modules/audio_coding/codecs/isac/fix/source \
$(ISAC_SRC_DIR)/modules/audio_coding/codecs/isac/fix/util \
$(ISAC_SRC_DIR)/modules/audio_coding/codecs/isac/fix/interface \
$(ISAC_SRC_DIR)/common_audio/signal_processing/include \
$(LOCAL_PATH)/../linphone/oRTP/include \
LOCAL_C_INCLUDES += $(WEBRTC_SRC_DIR) \
$(WEBRTC_SRC_DIR)/common_audio/signal_processing/include \
$(LOCAL_PATH)/../linphone/oRTP/include \
$(LOCAL_PATH)/../linphone/mediastreamer2/include
include $(BUILD_STATIC_LIBRARY)
ifneq ($(BUILD_WEBRTC_AECM),0)
LOCAL_CFLAGS += -DBUILD_AEC
LOCAL_SRC_FILES += aec.c
LOCAL_STATIC_LIBRARIES += libwebrtc_spl libwebrtc_spl_neon
LOCAL_C_INCLUDES += $(WEBRTC_SRC_DIR)/modules/audio_processing/aecm/include
endif
ifneq ($(BUILD_WEBRTC_ISAC),0)
LOCAL_CFLAGS += -DBUILD_ISAC
LOCAL_SRC_FILES += isac_enc.c isac_dec.c
LOCAL_STATIC_LIBRARIES += libwebrtc_isacfix libwebrtc_isacfix_neon libwebrtc_spl libwebrtc_spl_neon
LOCAL_C_INCLUDES += \
$(WEBRTC_SRC_DIR)/modules/audio_coding/codecs/isac/fix/source \
$(WEBRTC_SRC_DIR)/modules/audio_coding/codecs/isac/fix/util \
$(WEBRTC_SRC_DIR)/modules/audio_coding/codecs/isac/fix/interface
endif
include $(BUILD_STATIC_LIBRARY)
......@@ -369,7 +369,7 @@ static MSFilterMethod webrtc_aec_methods[] = {
#ifdef _MSC_VER
MSFilterDesc ms_webrtc_aec_desc = {
MS_WEBRTC_AEC_ID,
MS_FILTER_PLUGIN_ID,
MS_WEBRTC_AEC_NAME,
MS_WEBRTC_AEC_DESCRIPTION,
MS_WEBRTC_AEC_CATEGORY,
......@@ -388,7 +388,7 @@ MSFilterDesc ms_webrtc_aec_desc = {
#else
MSFilterDesc ms_webrtc_aec_desc = {
.id = MS_WEBRTC_AEC_ID,
.id = MS_FILTER_PLUGIN_ID,
.name = MS_WEBRTC_AEC_NAME,
.text = MS_WEBRTC_AEC_DESCRIPTION,
.category = MS_WEBRTC_AEC_CATEGORY,
......
......@@ -17,7 +17,9 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef ANDROID
#include "config.h"
#endif
#ifdef BUILD_ISAC
#include "isac_constants.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment