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_resampler 16 LOCAL_MODULE_TAGS := optional 17 LOCAL_CPP_EXTENSION := .cc 18 LOCAL_GENERATED_SOURCES := 19 LOCAL_SRC_FILES := resampler.cc 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_ANDROID' \ 29 '-DANDROID' 30 LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS) 31 32 # Include paths placed before CFLAGS/CPPFLAGS 33 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../.. \ 34 $(LOCAL_PATH)/../interface \ 35 $(LOCAL_PATH)/../../../signal_processing_library/main/interface 36 37 # Flags passed to only C++ (and not C) files. 38 LOCAL_CPPFLAGS := 39 40 LOCAL_LDFLAGS := 41 42 LOCAL_STATIC_LIBRARIES := 43 44 LOCAL_SHARED_LIBRARIES := libcutils \ 45 libdl \ 46 libstlport 47 LOCAL_ADDITIONAL_DEPENDENCIES := 48 49 ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true) 50 LOCAL_LDLIBS += -ldl -lpthread 51 endif 52 53 ifneq ($(TARGET_SIMULATOR),true) 54 LOCAL_SHARED_LIBRARIES += libdl 55 endif 56 57 include external/stlport/libstlport.mk 58 include $(BUILD_STATIC_LIBRARY) 59