Android.mk 1.12 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

Sylvain Berfini's avatar
Sylvain Berfini committed
6
WEBRTC_SRC_DIR    = $(LOCAL_PATH)/webrtc/webrtc
7

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

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

Ghislain MARY's avatar
Ghislain MARY committed
16
ifneq ($(BUILD_WEBRTC_AECM),0)
Sylvain Berfini's avatar
Sylvain Berfini committed
17
	LOCAL_CFLAGS += -DBUILD_AEC -fPIC
Ghislain MARY's avatar
Ghislain MARY committed
18 19 20 21 22
	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)
Sylvain Berfini's avatar
Sylvain Berfini committed
23
	LOCAL_CFLAGS += -DBUILD_ISAC -fPIC
Ghislain MARY's avatar
Ghislain MARY committed
24 25 26 27 28
	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 \
29 30
		$(WEBRTC_SRC_DIR)/modules/audio_coding/codecs/isac/fix/interface \
		$(WEBRTC_SRC_DIR)/modules/audio_coding/codecs/isac/fix/include/
Ghislain MARY's avatar
Ghislain MARY committed
31
endif
32

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