blob: 26679d8a2ba075f5b63e16451ea68c114196a10c [file] [log] [blame]
andrew@webrtc.orgb9d7d932012-01-25 19:21:13 +00001# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00002#
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
andrew@webrtc.org4d5d5c12011-10-19 01:40:33 +000013include $(LOCAL_PATH)/../../../../android-webrtc.mk
leozwang@google.com79835d12011-08-05 21:01:02 +000014
niklase@google.com470e71d2011-07-07 08:21:25 +000015LOCAL_MODULE_CLASS := STATIC_LIBRARIES
16LOCAL_MODULE := libwebrtc_aec
17LOCAL_MODULE_TAGS := optional
niklase@google.com470e71d2011-07-07 08:21:25 +000018LOCAL_SRC_FILES := \
19 echo_cancellation.c \
bjornv@webrtc.org4b80eb42011-11-29 08:44:01 +000020 aec_resampler.c \
niklase@google.com470e71d2011-07-07 08:21:25 +000021 aec_core.c \
leozwang@google.com79835d12011-08-05 21:01:02 +000022 aec_rdft.c \
andrew@webrtc.orgc8d012f2012-01-13 19:43:09 +000023
24ifeq ($(TARGET_ARCH),x86)
25LOCAL_SRC_FILES += \
leozwang@google.com79835d12011-08-05 21:01:02 +000026 aec_core_sse2.c \
27 aec_rdft_sse2.c
andrew@webrtc.orgc8d012f2012-01-13 19:43:09 +000028endif
niklase@google.com470e71d2011-07-07 08:21:25 +000029
30# Flags passed to both C and C++ files.
leozwang@google.com58d09cf2011-07-25 22:49:00 +000031LOCAL_CFLAGS := \
32 $(MY_WEBRTC_COMMON_DEFS)
33
leozwang@google.com58d09cf2011-07-25 22:49:00 +000034LOCAL_C_INCLUDES := \
andrew@webrtc.orgb9d7d932012-01-25 19:21:13 +000035 $(LOCAL_PATH)/include \
andrew@webrtc.org4d5d5c12011-10-19 01:40:33 +000036 $(LOCAL_PATH)/../utility \
37 $(LOCAL_PATH)/../../.. \
kjellander@webrtc.org0403ef42011-11-17 08:35:47 +000038 $(LOCAL_PATH)/../../../common_audio/signal_processing/include
niklase@google.com470e71d2011-07-07 08:21:25 +000039
leozwang@google.com58d09cf2011-07-25 22:49:00 +000040LOCAL_SHARED_LIBRARIES := \
41 libcutils \
niklase@google.com470e71d2011-07-07 08:21:25 +000042 libdl \
43 libstlport
niklase@google.com470e71d2011-07-07 08:21:25 +000044
leozwang@google.com58d09cf2011-07-25 22:49:00 +000045ifndef NDK_ROOT
niklase@google.com470e71d2011-07-07 08:21:25 +000046include external/stlport/libstlport.mk
leozwang@google.com58d09cf2011-07-25 22:49:00 +000047endif
niklase@google.com470e71d2011-07-07 08:21:25 +000048include $(BUILD_STATIC_LIBRARY)