kma@webrtc.org | 4bc24c4 | 2012-01-24 02:12:49 +0000 | [diff] [blame] | 1 | # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | |
kjellander@webrtc.org | 0403ef4 | 2011-11-17 08:35:47 +0000 | [diff] [blame] | 13 | include $(LOCAL_PATH)/../../../android-webrtc.mk |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 14 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 15 | LOCAL_ARM_MODE := arm |
| 16 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 17 | LOCAL_MODULE := libwebrtc_spl |
| 18 | LOCAL_MODULE_TAGS := optional |
leozwang@google.com | 77f49d8 | 2011-07-27 18:58:33 +0000 | [diff] [blame] | 19 | LOCAL_SRC_FILES := \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 20 | auto_corr_to_refl_coef.c \ |
| 21 | auto_correlation.c \ |
| 22 | complex_fft.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 23 | copy_set_operations.c \ |
kma@webrtc.org | 0221b78 | 2012-09-08 00:09:26 +0000 | [diff] [blame] | 24 | cross_correlation.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 25 | division_operations.c \ |
| 26 | dot_product_with_scale.c \ |
kma@webrtc.org | 0221b78 | 2012-09-08 00:09:26 +0000 | [diff] [blame] | 27 | downsample_fast.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 28 | energy.c \ |
| 29 | filter_ar.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 30 | filter_ma_fast_q12.c \ |
| 31 | get_hanning_window.c \ |
| 32 | get_scaling_square.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 33 | ilbc_specific_functions.c \ |
| 34 | levinson_durbin.c \ |
| 35 | lpc_to_refl_coef.c \ |
| 36 | min_max_operations.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 37 | randomization_functions.c \ |
kma@webrtc.org | f9e6cc2 | 2012-09-21 18:51:12 +0000 | [diff] [blame] | 38 | real_fft.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 39 | refl_coef_to_lpc.c \ |
| 40 | resample.c \ |
| 41 | resample_48khz.c \ |
| 42 | resample_by_2.c \ |
| 43 | resample_by_2_internal.c \ |
| 44 | resample_fractional.c \ |
kma@webrtc.org | 0221b78 | 2012-09-08 00:09:26 +0000 | [diff] [blame] | 45 | spl_init.c \ |
niklase@google.com | f50cf1f | 2011-07-07 08:33:00 +0000 | [diff] [blame] | 46 | spl_sqrt.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 47 | spl_version.c \ |
| 48 | splitting_filter.c \ |
| 49 | sqrt_of_one_minus_x_squared.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 50 | vector_scaling_operations.c |
| 51 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 52 | # Flags passed to both C and C++ files. |
leozwang@google.com | 77f49d8 | 2011-07-27 18:58:33 +0000 | [diff] [blame] | 53 | LOCAL_CFLAGS := \ |
| 54 | $(MY_WEBRTC_COMMON_DEFS) |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 55 | |
leozwang@google.com | 77f49d8 | 2011-07-27 18:58:33 +0000 | [diff] [blame] | 56 | LOCAL_C_INCLUDES := \ |
kjellander@webrtc.org | 0403ef4 | 2011-11-17 08:35:47 +0000 | [diff] [blame] | 57 | $(LOCAL_PATH)/include \ |
leozwang@webrtc.org | f3adba4 | 2012-11-15 18:17:40 +0000 | [diff] [blame] | 58 | $(LOCAL_PATH)/../.. \ |
| 59 | external/webrtc |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 60 | |
kma@webrtc.org | 4bc24c4 | 2012-01-24 02:12:49 +0000 | [diff] [blame] | 61 | ifeq ($(ARCH_ARM_HAVE_ARMV7A),true) |
| 62 | LOCAL_SRC_FILES += \ |
| 63 | filter_ar_fast_q12_armv7.s |
| 64 | else |
| 65 | LOCAL_SRC_FILES += \ |
| 66 | filter_ar_fast_q12.c |
| 67 | endif |
| 68 | |
kma@webrtc.org | 59f16ec | 2012-02-07 17:15:15 +0000 | [diff] [blame] | 69 | ifeq ($(TARGET_ARCH),arm) |
| 70 | LOCAL_SRC_FILES += \ |
kma@webrtc.org | bfa7f96 | 2012-02-23 22:38:56 +0000 | [diff] [blame] | 71 | complex_bit_reverse_arm.s \ |
kma@webrtc.org | c839f08 | 2012-08-13 21:49:23 +0000 | [diff] [blame] | 72 | spl_sqrt_floor_arm.s |
kma@webrtc.org | 59f16ec | 2012-02-07 17:15:15 +0000 | [diff] [blame] | 73 | else |
| 74 | LOCAL_SRC_FILES += \ |
kma@webrtc.org | bfa7f96 | 2012-02-23 22:38:56 +0000 | [diff] [blame] | 75 | complex_bit_reverse.c \ |
kma@webrtc.org | 59f16ec | 2012-02-07 17:15:15 +0000 | [diff] [blame] | 76 | spl_sqrt_floor.c |
| 77 | endif |
| 78 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 79 | LOCAL_SHARED_LIBRARIES := libstlport |
| 80 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 81 | ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true) |
| 82 | LOCAL_LDLIBS += -ldl -lpthread |
| 83 | endif |
| 84 | |
| 85 | ifneq ($(TARGET_SIMULATOR),true) |
| 86 | LOCAL_SHARED_LIBRARIES += libdl |
| 87 | endif |
| 88 | |
leozwang@google.com | 77f49d8 | 2011-07-27 18:58:33 +0000 | [diff] [blame] | 89 | ifndef NDK_ROOT |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 90 | include external/stlport/libstlport.mk |
leozwang@google.com | 77f49d8 | 2011-07-27 18:58:33 +0000 | [diff] [blame] | 91 | endif |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 92 | include $(BUILD_STATIC_LIBRARY) |
kma@webrtc.org | 0221b78 | 2012-09-08 00:09:26 +0000 | [diff] [blame] | 93 | |
| 94 | ######################### |
| 95 | # Build the neon library. |
| 96 | ifeq ($(WEBRTC_BUILD_NEON_LIBS),true) |
| 97 | |
| 98 | include $(CLEAR_VARS) |
| 99 | |
| 100 | LOCAL_ARM_MODE := arm |
| 101 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 102 | LOCAL_MODULE := libwebrtc_spl_neon |
| 103 | LOCAL_MODULE_TAGS := optional |
| 104 | LOCAL_SRC_FILES := \ |
| 105 | cross_correlation_neon.s \ |
| 106 | downsample_fast_neon.s \ |
| 107 | min_max_operations_neon.s \ |
| 108 | vector_scaling_operations_neon.s |
| 109 | |
| 110 | # Flags passed to both C and C++ files. |
kma@webrtc.org | 7a50fa4 | 2012-09-08 00:32:59 +0000 | [diff] [blame] | 111 | LOCAL_CFLAGS := \ |
| 112 | $(MY_WEBRTC_COMMON_DEFS) \ |
| 113 | $(MY_ARM_CFLAGS_NEON) |
kma@webrtc.org | 0221b78 | 2012-09-08 00:09:26 +0000 | [diff] [blame] | 114 | |
| 115 | LOCAL_C_INCLUDES := \ |
| 116 | $(LOCAL_PATH)/include \ |
leozwang@webrtc.org | f3adba4 | 2012-11-15 18:17:40 +0000 | [diff] [blame] | 117 | $(LOCAL_PATH)/../.. \ |
| 118 | external/webrtc |
kma@webrtc.org | 0221b78 | 2012-09-08 00:09:26 +0000 | [diff] [blame] | 119 | |
| 120 | ifndef NDK_ROOT |
| 121 | include external/stlport/libstlport.mk |
| 122 | endif |
| 123 | include $(BUILD_STATIC_LIBRARY) |
| 124 | |
| 125 | endif # ifeq ($(WEBRTC_BUILD_NEON_LIBS),true) |
| 126 | |