1# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS.  All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9LOCAL_PATH := $(call my-dir)
10
11include $(CLEAR_VARS)
12include $(LOCAL_PATH)/android-webrtc.mk
13
14LOCAL_ARM_MODE := arm
15LOCAL_MODULE := libwebrtc_audio_preprocessing
16LOCAL_MODULE_TAGS := optional
17
18LOCAL_WHOLE_STATIC_LIBRARIES := \
19    libwebrtc_aec \
20    libwebrtc_aecm \
21    libwebrtc_agc \
22    libwebrtc_apm \
23    libwebrtc_apm_utility \
24    libwebrtc_apvad \
25    libwebrtc_base \
26    libwebrtc_beamformer \
27    libwebrtc_common \
28    libwebrtc_intell \
29    libwebrtc_isac \
30    libwebrtc_resampler \
31    libwebrtc_ns \
32    libwebrtc_spl \
33    libwebrtc_system_wrappers \
34    libwebrtc_transient \
35    libwebrtc_vad \
36
37# Add Neon libraries.
38ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
39LOCAL_WHOLE_STATIC_LIBRARIES_arm += \
40    libwebrtc_aecm_neon \
41    libwebrtc_ns_neon
42endif
43
44LOCAL_SHARED_LIBRARIES := \
45    libcutils \
46    libdl \
47    libprotobuf-cpp-lite \
48
49include $(BUILD_SHARED_LIBRARY)
50
51
52include $(CLEAR_VARS)
53include $(LOCAL_PATH)/android-webrtc.mk
54
55LOCAL_ARM_MODE := arm
56LOCAL_MODULE := libwebrtc_audio_coding
57LOCAL_MODULE_TAGS := optional
58
59LOCAL_WHOLE_STATIC_LIBRARIES := \
60    libwebrtc_base \
61    libwebrtc_common \
62    libwebrtc_intell \
63    libwebrtc_isac \
64    libwebrtc_isacfix \
65    libwebrtc_resampler \
66    libwebrtc_spl \
67    libwebrtc_system_wrappers \
68
69ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
70LOCAL_WHOLE_STATIC_LIBRARIES_arm += \
71    libwebrtc_isacfix_neon
72endif
73
74LOCAL_SHARED_LIBRARIES := \
75    libprotobuf-cpp-lite \
76    libcutils \
77    libdl \
78
79include $(BUILD_SHARED_LIBRARY)
80
81
82include $(CLEAR_VARS)
83include $(LOCAL_PATH)/android-webrtc.mk
84
85LOCAL_ARM_MODE := arm
86LOCAL_MODULE := libwebrtc_audio_coding_gnustl_static
87LOCAL_MODULE_TAGS := optional
88
89LOCAL_WHOLE_STATIC_LIBRARIES := \
90    libwebrtc_isac_gnustl_static \
91    libwebrtc_isacfix_gnustl_static \
92    libwebrtc_spl_gnustl_static \
93    libwebrtc_system_wrappers_gnustl_static
94ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
95LOCAL_WHOLE_STATIC_LIBRARIES_arm += \
96    libwebrtc_isacfix_neon_gnustl_static
97endif
98
99LOCAL_STATIC_LIBRARIES := \
100    libprotobuf-cpp-lite
101
102LOCAL_NDK_STL_VARIANT := gnustl_static
103LOCAL_SDK_VERSION := 14
104
105include $(BUILD_STATIC_LIBRARY)
106
107webrtc_path := $(LOCAL_PATH)
108# voice
109include $(webrtc_path)/webrtc/base/Android.mk
110include $(webrtc_path)/webrtc/common_audio/Android.mk
111include $(webrtc_path)/webrtc/common_audio/resampler/Android.mk
112include $(webrtc_path)/webrtc/common_audio/signal_processing/Android.mk
113include $(webrtc_path)/webrtc/common_audio/vad/Android.mk
114include $(webrtc_path)/webrtc/modules/audio_coding/codecs/isac/fix/source/Android.mk
115include $(webrtc_path)/webrtc/modules/audio_coding/codecs/isac/main/source/Android.mk
116include $(webrtc_path)/webrtc/modules/audio_processing/Android.mk
117include $(webrtc_path)/webrtc/modules/audio_processing/aec/Android.mk
118include $(webrtc_path)/webrtc/modules/audio_processing/aecm/Android.mk
119include $(webrtc_path)/webrtc/modules/audio_processing/agc/Android.mk
120include $(webrtc_path)/webrtc/modules/audio_processing/beamformer/Android.mk
121include $(webrtc_path)/webrtc/modules/audio_processing/intelligibility/Android.mk
122include $(webrtc_path)/webrtc/modules/audio_processing/ns/Android.mk
123include $(webrtc_path)/webrtc/modules/audio_processing/transient/Android.mk
124include $(webrtc_path)/webrtc/modules/audio_processing/utility/Android.mk
125include $(webrtc_path)/webrtc/modules/audio_processing/vad/Android.mk
126include $(webrtc_path)/webrtc/system_wrappers/source/Android.mk
127
128# libwebrtc_audio_coding_gnustl_static dependencies
129WEBRTC_STL := gnustl_static
130include $(webrtc_path)/webrtc/system_wrappers/source/Android.mk
131include $(webrtc_path)/webrtc/modules/audio_coding/codecs/isac/fix/source/Android.mk
132include $(webrtc_path)/webrtc/modules/audio_coding/codecs/isac/main/source/Android.mk
133include $(webrtc_path)/webrtc/common_audio/signal_processing/Android.mk
134