Alexandre Lision | 950e9d6 | 2013-12-02 15:09:01 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2010 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
| 19 | MY_SPEEX := libspeex/sources |
| 20 | |
| 21 | LOCAL_ARM_MODE := arm |
| 22 | |
| 23 | LOCAL_SRC_FILES := \ |
| 24 | $(MY_SPEEX)/libspeex/mdf.c \ |
| 25 | $(MY_SPEEX)/libspeex/preprocess.c \ |
| 26 | $(MY_SPEEX)/libspeex/filterbank.c \ |
| 27 | $(MY_SPEEX)/libspeex/fftwrap.c \ |
| 28 | $(MY_SPEEX)/libspeex/smallft.c \ |
| 29 | $(MY_SPEEX)/libspeex/bits.c \ |
| 30 | $(MY_SPEEX)/libspeex/buffer.c \ |
| 31 | $(MY_SPEEX)/libspeex/cb_search.c \ |
| 32 | $(MY_SPEEX)/libspeex/exc_10_16_table.c \ |
| 33 | $(MY_SPEEX)/libspeex/exc_10_32_table.c \ |
| 34 | $(MY_SPEEX)/libspeex/exc_20_32_table.c \ |
| 35 | $(MY_SPEEX)/libspeex/exc_5_256_table.c \ |
| 36 | $(MY_SPEEX)/libspeex/exc_5_64_table.c \ |
| 37 | $(MY_SPEEX)/libspeex/exc_8_128_table.c \ |
| 38 | $(MY_SPEEX)/libspeex/filters.c \ |
| 39 | $(MY_SPEEX)/libspeex/gain_table.c \ |
| 40 | $(MY_SPEEX)/libspeex/gain_table_lbr.c \ |
| 41 | $(MY_SPEEX)/libspeex/modes.c \ |
| 42 | $(MY_SPEEX)/libspeex/modes_wb.c \ |
| 43 | $(MY_SPEEX)/libspeex/speex.c \ |
| 44 | $(MY_SPEEX)/libspeex/hexc_10_32_table.c \ |
| 45 | $(MY_SPEEX)/libspeex/hexc_table.c \ |
| 46 | $(MY_SPEEX)/libspeex/high_lsp_tables.c \ |
| 47 | $(MY_SPEEX)/libspeex/jitter.c \ |
| 48 | $(MY_SPEEX)/libspeex/kiss_fft.c \ |
| 49 | $(MY_SPEEX)/libspeex/kiss_fftr.c \ |
| 50 | $(MY_SPEEX)/libspeex/lpc.c \ |
| 51 | $(MY_SPEEX)/libspeex/lsp.c \ |
| 52 | $(MY_SPEEX)/libspeex/lsp_tables_nb.c \ |
| 53 | $(MY_SPEEX)/libspeex/ltp.c \ |
| 54 | $(MY_SPEEX)/libspeex/nb_celp.c \ |
| 55 | $(MY_SPEEX)/libspeex/quant_lsp.c \ |
| 56 | $(MY_SPEEX)/libspeex/sb_celp.c \ |
| 57 | $(MY_SPEEX)/libspeex/scal.c \ |
| 58 | $(MY_SPEEX)/libspeex/speex_callbacks.c \ |
| 59 | $(MY_SPEEX)/libspeex/speex_header.c \ |
| 60 | $(MY_SPEEX)/libspeex/stereo.c \ |
| 61 | $(MY_SPEEX)/libspeex/vbr.c \ |
| 62 | $(MY_SPEEX)/libspeex/vq.c \ |
| 63 | $(MY_SPEEX)/libspeex/window.c \ |
| 64 | |
| 65 | |
| 66 | LOCAL_MODULE:= libspeex |
| 67 | |
| 68 | LOCAL_CFLAGS+= -DEXPORT= -DFLOATING_POINT -DUSE_SMALLFT -DVAR_ARRAYS |
| 69 | LOCAL_CFLAGS+= -O3 -fstrict-aliasing -fprefetch-loop-arrays |
| 70 | |
| 71 | LOCAL_C_INCLUDES += $(MY_SPEEX)/include |
| 72 | |
| 73 | include $(BUILD_STATIC_LIBRARY) |
| 74 | |
| 75 | |
| 76 | |
| 77 | ############# speexresampler ################# |
| 78 | |
| 79 | include $(CLEAR_VARS) |
| 80 | |
| 81 | LOCAL_ARM_MODE := arm |
| 82 | |
| 83 | LOCAL_SRC_FILES := $(MY_SPEEX)/libspeex/resample.c |
| 84 | |
| 85 | LOCAL_MODULE:= libspeexresampler |
| 86 | LOCAL_MODULE_TAGS := optional |
| 87 | |
| 88 | LOCAL_CFLAGS += -DEXPORT= -DFIXED_POINT -DRESAMPLE_FORCE_FULL_SINC_TABLE |
| 89 | LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays |
| 90 | |
| 91 | ifeq ($(ARCH_ARM_HAVE_NEON),true) |
| 92 | LOCAL_CFLAGS += -D_USE_NEON |
| 93 | endif |
| 94 | |
| 95 | LOCAL_C_INCLUDES += $(MY_SPEEX)/include |
| 96 | |
| 97 | include $(BUILD_STATIC_LIBRARY) |
| 98 | |
| 99 | |
| 100 | |