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