blob: 3ad52b96625a2a4100d16f1455f0b76d858f0506 [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)/../../.. \
leozwang@webrtc.orgf3adba42012-11-15 18:17:40 +000038 $(LOCAL_PATH)/../../../common_audio/signal_processing/include \
39 external/webrtc
niklase@google.com470e71d2011-07-07 08:21:25 +000040
leozwang@google.com58d09cf2011-07-25 22:49:00 +000041LOCAL_SHARED_LIBRARIES := \
42 libcutils \
niklase@google.com470e71d2011-07-07 08:21:25 +000043 libdl \
44 libstlport
niklase@google.com470e71d2011-07-07 08:21:25 +000045
leozwang@google.com58d09cf2011-07-25 22:49:00 +000046ifndef NDK_ROOT
niklase@google.com470e71d2011-07-07 08:21:25 +000047include external/stlport/libstlport.mk
leozwang@google.com58d09cf2011-07-25 22:49:00 +000048endif
niklase@google.com470e71d2011-07-07 08:21:25 +000049include $(BUILD_STATIC_LIBRARY)