Upstream version 10.38.222.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_coding / codecs / ilbc / Android.mk
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
13 include $(LOCAL_PATH)/../../../../../android-webrtc.mk
14
15 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
16 LOCAL_MODULE := libwebrtc_ilbc
17 LOCAL_MODULE_TAGS := optional
18 LOCAL_SRC_FILES := \
19     abs_quant.c \
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.
90 LOCAL_CFLAGS := \
91     $(MY_WEBRTC_COMMON_DEFS)
92
93 LOCAL_C_INCLUDES := \
94     $(LOCAL_PATH)/interface \
95     $(LOCAL_PATH)/../../../.. \
96     $(LOCAL_PATH)/../../../../common_audio/signal_processing/include 
97
98 LOCAL_SHARED_LIBRARIES := \
99     libcutils \
100     libdl \
101     libstlport
102
103 ifndef NDK_ROOT
104 include external/stlport/libstlport.mk
105 endif
106 include $(BUILD_STATIC_LIBRARY)
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
123 LOCAL_STATIC_LIBRARIES := \
124     libwebrtc_ilbc \
125     libwebrtc_spl
126
127 LOCAL_SHARED_LIBRARIES := \
128     libutils
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
152 LOCAL_STATIC_LIBRARIES := \
153     libwebrtc_ilbc \
154     libwebrtc_spl
155
156 LOCAL_SHARED_LIBRARIES := \
157     libutils
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