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_ARM_MODE := arm 14LOCAL_MODULE_CLASS := STATIC_LIBRARIES 15LOCAL_MODULE := libwebrtc_vad 16LOCAL_MODULE_TAGS := optional 17LOCAL_GENERATED_SOURCES := 18LOCAL_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. 26MY_CFLAGS := 27MY_CFLAGS_C := 28MY_DEFS := '-DNO_TCMALLOC' \ 29 '-DNO_HEAPCHECKER' \ 30 '-DWEBRTC_TARGET_PC' \ 31 '-DWEBRTC_LINUX' 32ifeq ($(TARGET_ARCH),arm) 33MY_DEFS += \ 34 '-DWEBRTC_ANDROID' \ 35 '-DANDROID' 36endif 37LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) 38 39# Include paths placed before CFLAGS/CPPFLAGS 40LOCAL_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. 45LOCAL_CPPFLAGS := 46 47LOCAL_LDFLAGS := 48 49LOCAL_STATIC_LIBRARIES := 50 51LOCAL_SHARED_LIBRARIES := libdl \ 52 libstlport 53LOCAL_ADDITIONAL_DEPENDENCIES := 54 55ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true) 56LOCAL_LDLIBS += -ldl -lpthread 57endif 58 59ifneq ($(TARGET_SIMULATOR),true) 60LOCAL_SHARED_LIBRARIES += libdl 61endif 62 63include external/stlport/libstlport.mk 64include $(BUILD_STATIC_LIBRARY) 65