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

Simon Morlat's avatar
Simon Morlat committed
10 11
LOCAL_CFLAGS += -fPIC

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

Ghislain MARY's avatar
Ghislain MARY committed
18
ifneq ($(BUILD_WEBRTC_AECM),0)
Simon Morlat's avatar
Simon Morlat committed
19
	LOCAL_CFLAGS += -DBUILD_AEC
Ghislain MARY's avatar
Ghislain MARY committed
20 21 22 23
	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
Simon Morlat's avatar
Simon Morlat committed
24

Ghislain MARY's avatar
Ghislain MARY committed
25
ifneq ($(BUILD_WEBRTC_ISAC),0)
Simon Morlat's avatar
Simon Morlat committed
26
	LOCAL_CFLAGS += -DBUILD_ISAC
Ghislain MARY's avatar
Ghislain MARY committed
27 28 29 30 31
	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 \
32 33
		$(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
34
endif
35

Simon Morlat's avatar
Simon Morlat committed
36 37 38 39 40 41 42 43
ifneq ($(BUILD_ILBC),0)
	LOCAL_CFLAGS += -DBUILD_ILBC
	LOCAL_SRC_FILES += ilbc.c
	LOCAL_STATIC_LIBRARIES += libwebrtc_ilbc libwebrtc_spl libwebrtc_spl_neon
	LOCAL_C_INCLUDES += \
		$(WEBRTC_SRC_DIR)/modules/audio_coding/codecs/ilbc/include/
endif

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