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 9 LOCAL_PATH := $(call my-dir) 10 11 include $(CLEAR_VARS) 12 13 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 14 LOCAL_MODULE := libwebrtc_aec 15 LOCAL_MODULE_TAGS := optional 16 LOCAL_GENERATED_SOURCES := 17 LOCAL_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. 24 MY_CFLAGS := 25 MY_CFLAGS_C := 26 MY_DEFS := '-DNO_TCMALLOC' \ 27 '-DNO_HEAPCHECKER' \ 28 '-DWEBRTC_TARGET_PC' \ 29 '-DWEBRTC_LINUX' \ 30 '-DWEBRTC_THREAD_RR' 31 ifeq ($(TARGET_ARCH),arm) 32 MY_DEFS += \ 33 '-DWEBRTC_ANDROID' \ 34 '-DANDROID' 35 else 36 LOCAL_SRC_FILES += \ 37 aec_core_sse2.c \ 38 aec_rdft_sse2.c 39 endif 40 LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) 41 42 # Include paths placed before CFLAGS/CPPFLAGS 43 LOCAL_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. 49 LOCAL_CPPFLAGS := 50 51 LOCAL_LDFLAGS := 52 53 LOCAL_STATIC_LIBRARIES := 54 55 LOCAL_SHARED_LIBRARIES := libcutils \ 56 libdl \ 57 libstlport 58 LOCAL_ADDITIONAL_DEPENDENCIES := 59 60 include external/stlport/libstlport.mk 61 include $(BUILD_STATIC_LIBRARY) 62