niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 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 | |
| 9 | LOCAL_PATH := $(call my-dir) |
| 10 | |
| 11 | include $(CLEAR_VARS) |
| 12 | |
kjellander@webrtc.org | 36e1ad9 | 2011-11-07 15:27:11 +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_MODULE_CLASS := STATIC_LIBRARIES |
| 16 | LOCAL_MODULE := libwebrtc_ilbc |
| 17 | LOCAL_MODULE_TAGS := optional |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 18 | LOCAL_SRC_FILES := \ |
| 19 | abs_quant.c \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 20 | abs_quant_loop.c \ |
| 21 | augmented_cb_corr.c \ |
| 22 | bw_expand.c \ |
| 23 | cb_construct.c \ |
| 24 | cb_mem_energy.c \ |
| 25 | cb_mem_energy_augmentation.c \ |
| 26 | cb_mem_energy_calc.c \ |
| 27 | cb_search.c \ |
| 28 | cb_search_core.c \ |
| 29 | cb_update_best_index.c \ |
| 30 | chebyshev.c \ |
| 31 | comp_corr.c \ |
| 32 | constants.c \ |
| 33 | create_augmented_vec.c \ |
| 34 | decode.c \ |
| 35 | decode_residual.c \ |
| 36 | decoder_interpolate_lsf.c \ |
| 37 | do_plc.c \ |
| 38 | encode.c \ |
| 39 | energy_inverse.c \ |
| 40 | enh_upsample.c \ |
| 41 | enhancer.c \ |
| 42 | enhancer_interface.c \ |
| 43 | filtered_cb_vecs.c \ |
| 44 | frame_classify.c \ |
| 45 | gain_dequant.c \ |
| 46 | gain_quant.c \ |
| 47 | get_cd_vec.c \ |
| 48 | get_lsp_poly.c \ |
| 49 | get_sync_seq.c \ |
| 50 | hp_input.c \ |
| 51 | hp_output.c \ |
| 52 | ilbc.c \ |
| 53 | index_conv_dec.c \ |
| 54 | index_conv_enc.c \ |
| 55 | init_decode.c \ |
| 56 | init_encode.c \ |
| 57 | interpolate.c \ |
| 58 | interpolate_samples.c \ |
| 59 | lpc_encode.c \ |
| 60 | lsf_check.c \ |
| 61 | lsf_interpolate_to_poly_dec.c \ |
| 62 | lsf_interpolate_to_poly_enc.c \ |
| 63 | lsf_to_lsp.c \ |
| 64 | lsf_to_poly.c \ |
| 65 | lsp_to_lsf.c \ |
| 66 | my_corr.c \ |
| 67 | nearest_neighbor.c \ |
| 68 | pack_bits.c \ |
| 69 | poly_to_lsf.c \ |
| 70 | poly_to_lsp.c \ |
| 71 | refiner.c \ |
| 72 | simple_interpolate_lsf.c \ |
| 73 | simple_lpc_analysis.c \ |
| 74 | simple_lsf_dequant.c \ |
| 75 | simple_lsf_quant.c \ |
| 76 | smooth.c \ |
| 77 | smooth_out_data.c \ |
| 78 | sort_sq.c \ |
| 79 | split_vq.c \ |
| 80 | state_construct.c \ |
| 81 | state_search.c \ |
| 82 | swap_bytes.c \ |
| 83 | unpack_bits.c \ |
| 84 | vq3.c \ |
| 85 | vq4.c \ |
| 86 | window32_w32.c \ |
| 87 | xcorr_coef.c |
| 88 | |
| 89 | # Flags passed to both C and C++ files. |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 90 | LOCAL_CFLAGS := \ |
| 91 | $(MY_WEBRTC_COMMON_DEFS) |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 92 | |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 93 | LOCAL_C_INCLUDES := \ |
kma@webrtc.org | 9b81351 | 2011-11-07 23:30:01 +0000 | [diff] [blame] | 94 | $(LOCAL_PATH)/interface \ |
kjellander@webrtc.org | 36e1ad9 | 2011-11-07 15:27:11 +0000 | [diff] [blame] | 95 | $(LOCAL_PATH)/../../../.. \ |
kjellander@webrtc.org | 0403ef4 | 2011-11-17 08:35:47 +0000 | [diff] [blame] | 96 | $(LOCAL_PATH)/../../../../common_audio/signal_processing/include |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 97 | |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 98 | LOCAL_SHARED_LIBRARIES := \ |
| 99 | libcutils \ |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 100 | libdl \ |
| 101 | libstlport |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 102 | |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 103 | ifndef NDK_ROOT |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 104 | include external/stlport/libstlport.mk |
leozwang@google.com | 79835d1 | 2011-08-05 21:01:02 +0000 | [diff] [blame] | 105 | endif |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 106 | include $(BUILD_STATIC_LIBRARY) |
kma@webrtc.org | 13318ef | 2011-11-10 18:00:22 +0000 | [diff] [blame] | 107 | |
| 108 | |
| 109 | # iLBC test app |
| 110 | include $(CLEAR_VARS) |
| 111 | |
| 112 | LOCAL_MODULE_TAGS := tests |
| 113 | LOCAL_CPP_EXTENSION := .cc |
| 114 | LOCAL_SRC_FILES:= test/iLBC_test.c |
| 115 | |
| 116 | # Flags passed to both C and C++ files. |
| 117 | LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS) |
| 118 | |
| 119 | LOCAL_C_INCLUDES := \ |
| 120 | $(LOCAL_PATH)/interface \ |
| 121 | $(LOCAL_PATH)/../../../.. |
| 122 | |
leozwang@webrtc.org | f147bbc | 2011-12-14 18:22:41 +0000 | [diff] [blame] | 123 | LOCAL_STATIC_LIBRARIES := \ |
| 124 | libwebrtc_ilbc \ |
| 125 | libwebrtc_spl |
| 126 | |
kma@webrtc.org | 13318ef | 2011-11-10 18:00:22 +0000 | [diff] [blame] | 127 | LOCAL_SHARED_LIBRARIES := \ |
leozwang@webrtc.org | f147bbc | 2011-12-14 18:22:41 +0000 | [diff] [blame] | 128 | libutils |
kma@webrtc.org | 13318ef | 2011-11-10 18:00:22 +0000 | [diff] [blame] | 129 | |
| 130 | LOCAL_MODULE:= webrtc_ilbc_test |
| 131 | |
| 132 | ifdef NDK_ROOT |
| 133 | include $(BUILD_EXECUTABLE) |
| 134 | else |
| 135 | include $(BUILD_NATIVE_TEST) |
| 136 | endif |
| 137 | |
| 138 | # iLBC_testLib test app |
| 139 | include $(CLEAR_VARS) |
| 140 | |
| 141 | LOCAL_MODULE_TAGS := tests |
| 142 | LOCAL_CPP_EXTENSION := .cc |
| 143 | LOCAL_SRC_FILES:= test/iLBC_testLib.c |
| 144 | |
| 145 | # Flags passed to both C and C++ files. |
| 146 | LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS) |
| 147 | |
| 148 | LOCAL_C_INCLUDES := \ |
| 149 | $(LOCAL_PATH)/interface \ |
| 150 | $(LOCAL_PATH)/../../../.. |
| 151 | |
leozwang@webrtc.org | f147bbc | 2011-12-14 18:22:41 +0000 | [diff] [blame] | 152 | LOCAL_STATIC_LIBRARIES := \ |
| 153 | libwebrtc_ilbc \ |
| 154 | libwebrtc_spl |
| 155 | |
kma@webrtc.org | 13318ef | 2011-11-10 18:00:22 +0000 | [diff] [blame] | 156 | LOCAL_SHARED_LIBRARIES := \ |
leozwang@webrtc.org | f147bbc | 2011-12-14 18:22:41 +0000 | [diff] [blame] | 157 | libutils |
kma@webrtc.org | 13318ef | 2011-11-10 18:00:22 +0000 | [diff] [blame] | 158 | |
| 159 | LOCAL_MODULE:= webrtc_ilbc_testLib |
| 160 | |
| 161 | ifdef NDK_ROOT |
| 162 | include $(BUILD_EXECUTABLE) |
| 163 | else |
| 164 | include $(BUILD_NATIVE_TEST) |
| 165 | endif |