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)
12
13include $(LOCAL_PATH)/../../../../android-webrtc.mk
14
15LOCAL_ARM_MODE := arm
16LOCAL_MODULE_CLASS := STATIC_LIBRARIES
17LOCAL_MODULE := libwebrtc_apm_utility
18LOCAL_MODULE_TAGS := optional
19LOCAL_SRC_FILES := \
20    fft4g.c \
21    ring_buffer.c \
22    delay_estimator.c \
23    delay_estimator_wrapper.c
24
25# Flags passed to both C and C++ files.
26LOCAL_CFLAGS := \
27    $(MY_WEBRTC_COMMON_DEFS)
28
29LOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm)
30LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86)
31LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips)
32LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64)
33LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64)
34LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64)
35
36# Include paths placed before CFLAGS/CPPFLAGS
37LOCAL_C_INCLUDES := \
38    $(LOCAL_PATH) \
39    $(LOCAL_PATH)/../../.. \
40    $(LOCAL_PATH)/../../../common_audio/signal_processing/include
41
42LOCAL_SHARED_LIBRARIES := \
43    libcutils \
44    libdl
45
46ifndef WEBRTC_STL
47LOCAL_SHARED_LIBRARIES += libstlport
48include external/stlport/libstlport.mk
49else
50LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL)
51LOCAL_SDK_VERSION := 14
52LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL)
53endif
54
55include $(BUILD_STATIC_LIBRARY)
56