Bug 797671: Import Webrtc.org code from stable branch 3.12 (rev 2820) rs=jesup
[gecko.git] / media / webrtc / trunk / src / common_audio / signal_processing / Android.mk
blob0ae2b3c0874df4747b9221f4c8bb8724063d3d8b
1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
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.
9 LOCAL_PATH := $(call my-dir)
11 include $(CLEAR_VARS)
13 include $(LOCAL_PATH)/../../../android-webrtc.mk
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 copy_set_operations.c \
24 division_operations.c \
25 dot_product_with_scale.c \
26 energy.c \
27 filter_ar.c \
28 filter_ma_fast_q12.c \
29 get_hanning_window.c \
30 get_scaling_square.c \
31 ilbc_specific_functions.c \
32 levinson_durbin.c \
33 lpc_to_refl_coef.c \
34 min_max_operations.c \
35 randomization_functions.c \
36 refl_coef_to_lpc.c \
37 resample.c \
38 resample_48khz.c \
39 resample_by_2.c \
40 resample_by_2_internal.c \
41 resample_fractional.c \
42 spl_sqrt.c \
43 spl_version.c \
44 splitting_filter.c \
45 sqrt_of_one_minus_x_squared.c \
46 vector_scaling_operations.c
48 # Flags passed to both C and C++ files.
49 LOCAL_CFLAGS := \
50 $(MY_WEBRTC_COMMON_DEFS)
52 LOCAL_C_INCLUDES := \
53 $(LOCAL_PATH)/include \
54 $(LOCAL_PATH)/../..
56 ifeq ($(ARCH_ARM_HAVE_NEON),true)
57 LOCAL_SRC_FILES += \
58 cross_correlation_neon.s \
59 downsample_fast_neon.s \
60 min_max_operations_neon.s \
61 vector_scaling_operations_neon.s
62 LOCAL_CFLAGS += \
63 $(MY_ARM_CFLAGS_NEON)
64 else
65 LOCAL_SRC_FILES += \
66 cross_correlation.c \
67 downsample_fast.c
68 endif
70 ifeq ($(ARCH_ARM_HAVE_ARMV7A),true)
71 LOCAL_SRC_FILES += \
72 filter_ar_fast_q12_armv7.s
73 else
74 LOCAL_SRC_FILES += \
75 filter_ar_fast_q12.c
76 endif
78 ifeq ($(TARGET_ARCH),arm)
79 LOCAL_SRC_FILES += \
80 complex_bit_reverse_arm.s \
81 spl_sqrt_floor_arm.s
82 else
83 LOCAL_SRC_FILES += \
84 complex_bit_reverse.c \
85 spl_sqrt_floor.c
86 endif
88 LOCAL_SHARED_LIBRARIES := libstlport
90 ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
91 LOCAL_LDLIBS += -ldl -lpthread
92 endif
94 ifneq ($(TARGET_SIMULATOR),true)
95 LOCAL_SHARED_LIBRARIES += libdl
96 endif
98 ifndef NDK_ROOT
99 include external/stlport/libstlport.mk
100 endif
101 include $(BUILD_STATIC_LIBRARY)