blob: cbadcab25b1531d27cd9dd06fe0be42ff21aec15 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001# 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
kjellander@webrtc.org36e1ad92011-11-07 15:27:11 +000013include $(LOCAL_PATH)/../../../../../android-webrtc.mk
leozwang@google.com79835d12011-08-05 21:01:02 +000014
niklase@google.com470e71d2011-07-07 08:21:25 +000015LOCAL_MODULE_CLASS := STATIC_LIBRARIES
16LOCAL_MODULE := libwebrtc_ilbc
17LOCAL_MODULE_TAGS := optional
leozwang@google.com79835d12011-08-05 21:01:02 +000018LOCAL_SRC_FILES := \
19 abs_quant.c \
niklase@google.com470e71d2011-07-07 08:21:25 +000020 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.com79835d12011-08-05 21:01:02 +000090LOCAL_CFLAGS := \
91 $(MY_WEBRTC_COMMON_DEFS)
niklase@google.com470e71d2011-07-07 08:21:25 +000092
leozwang@google.com79835d12011-08-05 21:01:02 +000093LOCAL_C_INCLUDES := \
kma@webrtc.org9b813512011-11-07 23:30:01 +000094 $(LOCAL_PATH)/interface \
kjellander@webrtc.org36e1ad92011-11-07 15:27:11 +000095 $(LOCAL_PATH)/../../../.. \
kjellander@webrtc.org0403ef42011-11-17 08:35:47 +000096 $(LOCAL_PATH)/../../../../common_audio/signal_processing/include
niklase@google.com470e71d2011-07-07 08:21:25 +000097
leozwang@google.com79835d12011-08-05 21:01:02 +000098LOCAL_SHARED_LIBRARIES := \
99 libcutils \
niklase@google.com470e71d2011-07-07 08:21:25 +0000100 libdl \
101 libstlport
niklase@google.com470e71d2011-07-07 08:21:25 +0000102
leozwang@google.com79835d12011-08-05 21:01:02 +0000103ifndef NDK_ROOT
niklase@google.com470e71d2011-07-07 08:21:25 +0000104include external/stlport/libstlport.mk
leozwang@google.com79835d12011-08-05 21:01:02 +0000105endif
niklase@google.com470e71d2011-07-07 08:21:25 +0000106include $(BUILD_STATIC_LIBRARY)
kma@webrtc.org13318ef2011-11-10 18:00:22 +0000107
108
109# iLBC test app
110include $(CLEAR_VARS)
111
112LOCAL_MODULE_TAGS := tests
113LOCAL_CPP_EXTENSION := .cc
114LOCAL_SRC_FILES:= test/iLBC_test.c
115
116# Flags passed to both C and C++ files.
117LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS)
118
119LOCAL_C_INCLUDES := \
120 $(LOCAL_PATH)/interface \
121 $(LOCAL_PATH)/../../../..
122
leozwang@webrtc.orgf147bbc2011-12-14 18:22:41 +0000123LOCAL_STATIC_LIBRARIES := \
124 libwebrtc_ilbc \
125 libwebrtc_spl
126
kma@webrtc.org13318ef2011-11-10 18:00:22 +0000127LOCAL_SHARED_LIBRARIES := \
leozwang@webrtc.orgf147bbc2011-12-14 18:22:41 +0000128 libutils
kma@webrtc.org13318ef2011-11-10 18:00:22 +0000129
130LOCAL_MODULE:= webrtc_ilbc_test
131
132ifdef NDK_ROOT
133include $(BUILD_EXECUTABLE)
134else
135include $(BUILD_NATIVE_TEST)
136endif
137
138# iLBC_testLib test app
139include $(CLEAR_VARS)
140
141LOCAL_MODULE_TAGS := tests
142LOCAL_CPP_EXTENSION := .cc
143LOCAL_SRC_FILES:= test/iLBC_testLib.c
144
145# Flags passed to both C and C++ files.
146LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS)
147
148LOCAL_C_INCLUDES := \
149 $(LOCAL_PATH)/interface \
150 $(LOCAL_PATH)/../../../..
151
leozwang@webrtc.orgf147bbc2011-12-14 18:22:41 +0000152LOCAL_STATIC_LIBRARIES := \
153 libwebrtc_ilbc \
154 libwebrtc_spl
155
kma@webrtc.org13318ef2011-11-10 18:00:22 +0000156LOCAL_SHARED_LIBRARIES := \
leozwang@webrtc.orgf147bbc2011-12-14 18:22:41 +0000157 libutils
kma@webrtc.org13318ef2011-11-10 18:00:22 +0000158
159LOCAL_MODULE:= webrtc_ilbc_testLib
160
161ifdef NDK_ROOT
162include $(BUILD_EXECUTABLE)
163else
164include $(BUILD_NATIVE_TEST)
165endif