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 include $(LOCAL_PATH)/../../../android-webrtc.mk 14 15 LOCAL_ARM_MODE := arm 16 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 17 LOCAL_MODULE := libwebrtc_spl 18 LOCAL_MODULE_TAGS := optional 19 LOCAL_SRC_FILES := \ 20 auto_corr_to_refl_coef.c \ 21 auto_correlation.c \ 22 complex_fft.c \ 23 complex_bit_reverse.c \ 24 copy_set_operations.c \ 25 cross_correlation.c \ 26 division_operations.c \ 27 dot_product_with_scale.c \ 28 downsample_fast.c \ 29 energy.c \ 30 filter_ar.c \ 31 filter_ar_fast_q12.c \ 32 filter_ma_fast_q12.c \ 33 get_hanning_window.c \ 34 get_scaling_square.c \ 35 ilbc_specific_functions.c \ 36 levinson_durbin.c \ 37 lpc_to_refl_coef.c \ 38 min_max_operations.c \ 39 randomization_functions.c \ 40 refl_coef_to_lpc.c \ 41 resample.c \ 42 resample_48khz.c \ 43 resample_by_2.c \ 44 resample_by_2_internal.c \ 45 resample_fractional.c \ 46 spl_sqrt.c \ 47 spl_version.c \ 48 splitting_filter.c \ 49 sqrt_of_one_minus_x_squared.c \ 50 vector_scaling_operations.c 51 52 # Flags passed to both C and C++ files. 53 LOCAL_CFLAGS := \ 54 $(MY_WEBRTC_COMMON_DEFS) 55 56 LOCAL_C_INCLUDES := \ 57 $(LOCAL_PATH)/include \ 58 $(LOCAL_PATH)/../.. 59 60 ifeq ($(ARCH_ARM_HAVE_NEON),true) 61 LOCAL_SRC_FILES += \ 62 min_max_operations_neon.c 63 LOCAL_CFLAGS += \ 64 $(MY_ARM_CFLAGS_NEON) 65 endif 66 67 ifeq ($(TARGET_ARCH),arm) 68 LOCAL_SRC_FILES += \ 69 spl_sqrt_floor.s 70 else 71 LOCAL_SRC_FILES += \ 72 spl_sqrt_floor.c 73 endif 74 75 ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true) 76 LOCAL_LDLIBS += -ldl -lpthread 77 endif 78 79 ifneq ($(TARGET_SIMULATOR),true) 80 LOCAL_SHARED_LIBRARIES += libdl 81 endif 82 83 ifndef NDK_ROOT 84 ifndef WEBRTC_STL 85 LOCAL_SHARED_LIBRARIES += libstlport 86 include external/stlport/libstlport.mk 87 else 88 LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL) 89 LOCAL_SDK_VERSION := 14 90 LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL) 91 endif 92 else 93 LOCAL_SHARED_LIBRARIES += libstlport 94 endif 95 96 include $(BUILD_STATIC_LIBRARY) 97