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 13LOCAL_MODULE_CLASS := STATIC_LIBRARIES 14LOCAL_MODULE := libwebrtc_aec 15LOCAL_MODULE_TAGS := optional 16LOCAL_GENERATED_SOURCES := 17LOCAL_SRC_FILES := \ 18 echo_cancellation.c \ 19 resampler.c \ 20 aec_core.c \ 21 aec_rdft.c 22 23# Flags passed to both C and C++ files. 24MY_CFLAGS := 25MY_CFLAGS_C := 26MY_DEFS := '-DNO_TCMALLOC' \ 27 '-DNO_HEAPCHECKER' \ 28 '-DWEBRTC_TARGET_PC' \ 29 '-DWEBRTC_LINUX' \ 30 '-DWEBRTC_THREAD_RR' 31ifeq ($(TARGET_ARCH),arm) 32MY_DEFS += \ 33 '-DWEBRTC_ANDROID' \ 34 '-DANDROID' 35else 36LOCAL_SRC_FILES += \ 37 aec_core_sse2.c \ 38 aec_rdft_sse2.c 39endif 40LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) 41 42# Include paths placed before CFLAGS/CPPFLAGS 43LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../.. \ 44 $(LOCAL_PATH)/../interface \ 45 $(LOCAL_PATH)/../../../utility \ 46 $(LOCAL_PATH)/../../../../../common_audio/signal_processing_library/main/interface 47 48# Flags passed to only C++ (and not C) files. 49LOCAL_CPPFLAGS := 50 51LOCAL_LDFLAGS := 52 53LOCAL_STATIC_LIBRARIES := 54 55LOCAL_SHARED_LIBRARIES := libcutils \ 56 libdl \ 57 libstlport 58LOCAL_ADDITIONAL_DEPENDENCIES := 59 60include external/stlport/libstlport.mk 61include $(BUILD_STATIC_LIBRARY) 62