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_C_INCLUDES := \
57    $(LOCAL_PATH)/include \
58    $(LOCAL_PATH)/../.. 
59
60ifeq ($(ARCH_ARM_HAVE_NEON),true)
61LOCAL_SRC_FILES += \
62    min_max_operations_neon.c
63LOCAL_CFLAGS += \
64    $(MY_ARM_CFLAGS_NEON)
65endif
66
67ifeq ($(TARGET_ARCH),arm)
68LOCAL_SRC_FILES += \
69    spl_sqrt_floor.s
70else
71LOCAL_SRC_FILES += \
72    spl_sqrt_floor.c
73endif
74
75LOCAL_SHARED_LIBRARIES := libstlport
76
77ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
78LOCAL_LDLIBS += -ldl -lpthread
79endif
80
81ifneq ($(TARGET_SIMULATOR),true)
82LOCAL_SHARED_LIBRARIES += libdl
83endif
84
85ifndef NDK_ROOT
86include external/stlport/libstlport.mk
87endif
88include $(BUILD_STATIC_LIBRARY)
89