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_vad
     16 LOCAL_MODULE_TAGS := optional
     17 LOCAL_GENERATED_SOURCES :=
     18 LOCAL_SRC_FILES := webrtc_vad.c \
     19     vad_const.c \
     20     vad_core.c \
     21     vad_filterbank.c \
     22     vad_gmm.c \
     23     vad_sp.c
     24 
     25 # Flags passed to both C and C++ files.
     26 MY_CFLAGS :=  
     27 MY_CFLAGS_C :=
     28 MY_DEFS := '-DNO_TCMALLOC' \
     29     '-DNO_HEAPCHECKER' \
     30     '-DWEBRTC_TARGET_PC' \
     31     '-DWEBRTC_LINUX' 
     32 ifeq ($(TARGET_ARCH),arm) 
     33 MY_DEFS += \
     34     '-DWEBRTC_ANDROID' \
     35     '-DANDROID' 
     36 endif
     37 LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
     38 
     39 # Include paths placed before CFLAGS/CPPFLAGS
     40 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../.. \
     41     $(LOCAL_PATH)/../interface \
     42     $(LOCAL_PATH)/../../../signal_processing_library/main/interface 
     43 
     44 # Flags passed to only C++ (and not C) files.
     45 LOCAL_CPPFLAGS := 
     46 
     47 LOCAL_LDFLAGS :=
     48 
     49 LOCAL_STATIC_LIBRARIES :=
     50 
     51 LOCAL_SHARED_LIBRARIES := libdl \
     52     libstlport
     53 LOCAL_ADDITIONAL_DEPENDENCIES :=
     54 
     55 ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
     56 LOCAL_LDLIBS += -ldl -lpthread
     57 endif
     58 
     59 ifneq ($(TARGET_SIMULATOR),true)
     60 LOCAL_SHARED_LIBRARIES += libdl
     61 endif
     62 
     63 include external/stlport/libstlport.mk
     64 include $(BUILD_STATIC_LIBRARY)
     65