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_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm) 57 LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86) 58 LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips) 59 LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64) 60 LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64) 61 LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64) 62 63 LOCAL_C_INCLUDES := \ 64 $(LOCAL_PATH)/include \ 65 $(LOCAL_PATH)/../.. 66 67 ifeq ($(ARCH_ARM_HAVE_NEON),true) 68 LOCAL_SRC_FILES_arm += \ 69 min_max_operations_neon.c 70 LOCAL_CFLAGS_arm += \ 71 $(MY_ARM_CFLAGS_NEON) 72 endif 73 74 my_as_src := spl_sqrt_floor.s 75 my_c_src := spl_sqrt_floor.c 76 LOCAL_SRC_FILES_arm += $(my_as_src) 77 LOCAL_SRC_FILES_x86 += $(my_c_src) 78 LOCAL_SRC_FILES_mips += $(my_c_src) 79 LOCAL_SRC_FILES_arm64 += $(my_c_src) 80 LOCAL_SRC_FILES_x86_64 += $(my_c_src) 81 LOCAL_SRC_FILES_mips64 += $(my_c_src) 82 83 ifndef WEBRTC_STL 84 LOCAL_SHARED_LIBRARIES += libstlport 85 include external/stlport/libstlport.mk 86 else 87 LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL) 88 LOCAL_SDK_VERSION := 14 89 LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL) 90 endif 91 92 include $(BUILD_STATIC_LIBRARY) 93