Android.mk 1.03 KB
Newer Older
1 2 3
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

Ghislain MARY's avatar
Ghislain MARY committed
4
LOCAL_MODULE := libmswebrtc
5

Ghislain MARY's avatar
Ghislain MARY committed
6
WEBRTC_SRC_DIR    = $(LOCAL_PATH)/../externals/webrtc
7

Ghislain MARY's avatar
Ghislain MARY committed
8
LOCAL_SRC_FILES := mswebrtc.c
9

Ghislain MARY's avatar
Ghislain MARY committed
10 11 12
LOCAL_C_INCLUDES += $(WEBRTC_SRC_DIR) \
	$(WEBRTC_SRC_DIR)/common_audio/signal_processing/include \
	$(LOCAL_PATH)/../linphone/oRTP/include \
13 14
	$(LOCAL_PATH)/../linphone/mediastreamer2/include

Ghislain MARY's avatar
Ghislain MARY committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
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
30

Ghislain MARY's avatar
Ghislain MARY committed
31
include $(BUILD_STATIC_LIBRARY)