-
Notifications
You must be signed in to change notification settings - Fork 3
/
Android.mk
44 lines (35 loc) · 1.38 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libmswebrtc
WEBRTC_SRC_DIR = $(LOCAL_PATH)/webrtc/webrtc
LOCAL_SRC_FILES := mswebrtc.c
LOCAL_CFLAGS += -fPIC
LOCAL_C_INCLUDES += $(WEBRTC_SRC_DIR) \
$(LOCAL_PATH)/webrtc \
$(WEBRTC_SRC_DIR)/common_audio/signal_processing/include \
$(LOCAL_PATH)/../linphone/oRTP/include \
$(LOCAL_PATH)/../linphone/mediastreamer2/include
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 \
$(WEBRTC_SRC_DIR)/modules/audio_coding/codecs/isac/fix/include/
endif
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
include $(BUILD_STATIC_LIBRARY)