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