kma@webrtc.org | adf8ddf | 2012-07-10 19:30:57 | [diff] [blame] | 1 | # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [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 | |
kma@webrtc.org | f0a964d | 2011-12-14 18:59:43 | [diff] [blame] | 9 | ############################# |
| 10 | # Build the non-neon library. |
| 11 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 12 | LOCAL_PATH := $(call my-dir) |
| 13 | |
| 14 | include $(CLEAR_VARS) |
| 15 | |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 | [diff] [blame] | 16 | include $(LOCAL_PATH)/../../../../../../../android-webrtc.mk |
| 17 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 18 | LOCAL_ARM_MODE := arm |
| 19 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 20 | LOCAL_MODULE := libwebrtc_isacfix |
| 21 | LOCAL_MODULE_TAGS := optional |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 | [diff] [blame] | 22 | LOCAL_SRC_FILES := \ |
| 23 | arith_routines.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 24 | arith_routines_hist.c \ |
| 25 | arith_routines_logist.c \ |
| 26 | bandwidth_estimator.c \ |
| 27 | decode.c \ |
| 28 | decode_bwe.c \ |
| 29 | decode_plc.c \ |
| 30 | encode.c \ |
| 31 | entropy_coding.c \ |
| 32 | fft.c \ |
| 33 | filterbank_tables.c \ |
| 34 | filterbanks.c \ |
| 35 | filters.c \ |
| 36 | initialize.c \ |
| 37 | isacfix.c \ |
| 38 | lattice.c \ |
| 39 | lpc_masking_model.c \ |
| 40 | lpc_tables.c \ |
| 41 | pitch_estimator.c \ |
| 42 | pitch_filter.c \ |
| 43 | pitch_gain_tables.c \ |
| 44 | pitch_lag_tables.c \ |
| 45 | spectrum_ar_model_tables.c \ |
| 46 | transform.c |
| 47 | |
kma@webrtc.org | badf2b8 | 2012-01-11 18:01:39 | [diff] [blame] | 48 | ifeq ($(ARCH_ARM_HAVE_ARMV7A),true) |
kma@webrtc.org | adf8ddf | 2012-07-10 19:30:57 | [diff] [blame] | 49 | # Using .S (instead of .s) extention is to include a C header file in assembly. |
kma@webrtc.org | badf2b8 | 2012-01-11 18:01:39 | [diff] [blame] | 50 | LOCAL_SRC_FILES += \ |
kma@webrtc.org | adf8ddf | 2012-07-10 19:30:57 | [diff] [blame] | 51 | lattice_armv7.S \ |
kma@webrtc.org | f4ca522 | 2012-09-17 20:16:15 | [diff] [blame] | 52 | pitch_filter_armv6.S |
kma@webrtc.org | badf2b8 | 2012-01-11 18:01:39 | [diff] [blame] | 53 | else |
| 54 | LOCAL_SRC_FILES += \ |
| 55 | lattice_c.c |
| 56 | endif |
| 57 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 58 | # Flags passed to both C and C++ files. |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 | [diff] [blame] | 59 | LOCAL_CFLAGS := \ |
| 60 | $(MY_WEBRTC_COMMON_DEFS) |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 61 | |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 | [diff] [blame] | 62 | LOCAL_C_INCLUDES := \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 63 | $(LOCAL_PATH)/../interface \ |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 | [diff] [blame] | 64 | $(LOCAL_PATH)/../../../../../.. \ |
kma@webrtc.org | 746f9e3 | 2012-01-04 17:47:57 | [diff] [blame] | 65 | $(LOCAL_PATH)/../../../../../../common_audio/signal_processing/include |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 66 | |
kma@webrtc.org | 7155098 | 2012-08-06 21:04:34 | [diff] [blame] | 67 | LOCAL_STATIC_LIBRARIES += libwebrtc_system_wrappers |
| 68 | |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 | [diff] [blame] | 69 | LOCAL_SHARED_LIBRARIES := \ |
| 70 | libcutils \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 71 | libdl \ |
| 72 | libstlport |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 73 | |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 | [diff] [blame] | 74 | ifndef NDK_ROOT |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 75 | include external/stlport/libstlport.mk |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 | [diff] [blame] | 76 | endif |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 | [diff] [blame] | 77 | include $(BUILD_STATIC_LIBRARY) |
kma@webrtc.org | 13318ef | 2011-11-10 18:00:22 | [diff] [blame] | 78 | |
kma@webrtc.org | f0a964d | 2011-12-14 18:59:43 | [diff] [blame] | 79 | ######################### |
| 80 | # Build the neon library. |
kma@webrtc.org | 746f9e3 | 2012-01-04 17:47:57 | [diff] [blame] | 81 | ifeq ($(WEBRTC_BUILD_NEON_LIBS),true) |
kma@webrtc.org | fa9b016 | 2011-11-18 02:50:55 | [diff] [blame] | 82 | |
kma@webrtc.org | f0a964d | 2011-12-14 18:59:43 | [diff] [blame] | 83 | include $(CLEAR_VARS) |
| 84 | |
| 85 | LOCAL_ARM_MODE := arm |
| 86 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 87 | LOCAL_MODULE := libwebrtc_isacfix_neon |
| 88 | LOCAL_MODULE_TAGS := optional |
| 89 | LOCAL_SRC_FILES := \ |
| 90 | filters_neon.c \ |
kma@webrtc.org | 2d4c4ae | 2012-08-03 21:46:05 | [diff] [blame] | 91 | lattice_neon.S \ |
| 92 | lpc_masking_model_neon.S |
kma@webrtc.org | f0a964d | 2011-12-14 18:59:43 | [diff] [blame] | 93 | |
| 94 | # Flags passed to both C and C++ files. |
| 95 | LOCAL_CFLAGS := \ |
| 96 | $(MY_WEBRTC_COMMON_DEFS) \ |
| 97 | -mfpu=neon \ |
kma@webrtc.org | 746f9e3 | 2012-01-04 17:47:57 | [diff] [blame] | 98 | -mfloat-abi=softfp \ |
kma@webrtc.org | f0a964d | 2011-12-14 18:59:43 | [diff] [blame] | 99 | -flax-vector-conversions |
| 100 | |
| 101 | LOCAL_C_INCLUDES := \ |
| 102 | $(LOCAL_PATH)/../interface \ |
| 103 | $(LOCAL_PATH)/../../../../../.. \ |
kma@webrtc.org | badf2b8 | 2012-01-11 18:01:39 | [diff] [blame] | 104 | $(LOCAL_PATH)/../../../../../../common_audio/signal_processing/include |
kma@webrtc.org | f0a964d | 2011-12-14 18:59:43 | [diff] [blame] | 105 | |
| 106 | |
| 107 | ifndef NDK_ROOT |
| 108 | include external/stlport/libstlport.mk |
| 109 | endif |
| 110 | include $(BUILD_STATIC_LIBRARY) |
| 111 | |
kma@webrtc.org | 746f9e3 | 2012-01-04 17:47:57 | [diff] [blame] | 112 | endif # ifeq ($(WEBRTC_BUILD_NEON_LIBS),true) |
| 113 | |
kma@webrtc.org | f0a964d | 2011-12-14 18:59:43 | [diff] [blame] | 114 | ########################### |
kjellander@webrtc.org | 543611a | 2011-11-18 13:25:13 | [diff] [blame] | 115 | # isac test app |
kma@webrtc.org | f0a964d | 2011-12-14 18:59:43 | [diff] [blame] | 116 | |
kma@webrtc.org | 13318ef | 2011-11-10 18:00:22 | [diff] [blame] | 117 | include $(CLEAR_VARS) |
| 118 | |
| 119 | LOCAL_MODULE_TAGS := tests |
| 120 | LOCAL_CPP_EXTENSION := .cc |
| 121 | LOCAL_SRC_FILES:= ../test/kenny.c |
| 122 | |
| 123 | # Flags passed to both C and C++ files. |
| 124 | LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS) |
| 125 | |
| 126 | LOCAL_C_INCLUDES := \ |
| 127 | $(LOCAL_PATH)/../interface \ |
| 128 | $(LOCAL_PATH)/../../../../../.. |
| 129 | |
leozwang@webrtc.org | f147bbc | 2011-12-14 18:22:41 | [diff] [blame] | 130 | LOCAL_STATIC_LIBRARIES := \ |
| 131 | libwebrtc_isacfix \ |
kma@webrtc.org | 7155098 | 2012-08-06 21:04:34 | [diff] [blame] | 132 | libwebrtc_spl \ |
| 133 | libwebrtc_system_wrappers |
leozwang@webrtc.org | f147bbc | 2011-12-14 18:22:41 | [diff] [blame] | 134 | |
kma@webrtc.org | 746f9e3 | 2012-01-04 17:47:57 | [diff] [blame] | 135 | ifeq ($(WEBRTC_BUILD_NEON_LIBS),true) |
| 136 | LOCAL_STATIC_LIBRARIES += \ |
| 137 | libwebrtc_isacfix_neon |
| 138 | endif |
| 139 | |
kma@webrtc.org | 13318ef | 2011-11-10 18:00:22 | [diff] [blame] | 140 | LOCAL_SHARED_LIBRARIES := \ |
leozwang@webrtc.org | f147bbc | 2011-12-14 18:22:41 | [diff] [blame] | 141 | libutils |
kma@webrtc.org | 13318ef | 2011-11-10 18:00:22 | [diff] [blame] | 142 | |
| 143 | LOCAL_MODULE:= webrtc_isac_test |
| 144 | |
| 145 | ifdef NDK_ROOT |
| 146 | include $(BUILD_EXECUTABLE) |
| 147 | else |
| 148 | include $(BUILD_NATIVE_TEST) |
| 149 | endif |