• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
75ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
76LOCAL_LDLIBS += -ldl -lpthread
77endif
78
79ifneq ($(TARGET_SIMULATOR),true)
80LOCAL_SHARED_LIBRARIES += libdl
81endif
82
83ifndef NDK_ROOT
84ifndef WEBRTC_STL
85LOCAL_SHARED_LIBRARIES += libstlport
86include external/stlport/libstlport.mk
87else
88LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL)
89LOCAL_SDK_VERSION := 14
90LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL)
91endif
92else
93LOCAL_SHARED_LIBRARIES += libstlport
94endif
95
96include $(BUILD_STATIC_LIBRARY)
97