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
17LOCAL_PATH := $(call my-dir)
18include $(CLEAR_VARS)
19
20LOCAL_ARM_MODE := arm
21
22LOCAL_SRC_FILES := \
23	libspeex/mdf.c \
24	libspeex/preprocess.c \
25	libspeex/filterbank.c \
26	libspeex/fftwrap.c \
27	libspeex/smallft.c
28
29LOCAL_MODULE:= libspeex
30
31
32
33LOCAL_CFLAGS += -DEXPORT= -DFLOATING_POINT -DUSE_SMALLFT -DVAR_ARRAYS
34LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays
35LOCAL_CFLAGS += -Wno-unused-parameter
36
37LOCAL_C_INCLUDES += \
38	$(LOCAL_PATH)/include
39
40include $(BUILD_STATIC_LIBRARY)
41
42include $(CLEAR_VARS)
43
44LOCAL_ARM_MODE := arm
45
46LOCAL_SRC_FILES := \
47	libspeex/resample.c
48
49LOCAL_MODULE:= libspeexresampler
50LOCAL_MODULE_TAGS := optional
51
52LOCAL_CFLAGS += -DEXPORT= -DFIXED_POINT -DRESAMPLE_FORCE_FULL_SINC_TABLE
53LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays
54
55ifeq ($(TARGET_ARCH),arm64)
56$(warning TODOArm64: enable neon in libspeex)
57endif
58
59ifeq ($(ARCH_ARM_HAVE_NEON),true)
60LOCAL_CFLAGS_arm += -D_USE_NEON
61endif
62
63LOCAL_C_INCLUDES += \
64	$(LOCAL_PATH)/include
65
66include $(BUILD_SHARED_LIBRARY)
67
68include $(CLEAR_VARS)
69
70LOCAL_ARM_MODE := arm
71
72LOCAL_SRC_FILES += \
73        libspeex/bits.c \
74        libspeex/cb_search.c \
75        libspeex/exc_10_16_table.c \
76        libspeex/exc_10_32_table.c \
77        libspeex/exc_20_32_table.c \
78        libspeex/exc_5_256_table.c \
79        libspeex/exc_5_64_table.c \
80        libspeex/exc_8_128_table.c \
81        libspeex/fftwrap.c \
82        libspeex/filterbank.c \
83        libspeex/filters.c \
84        libspeex/gain_table.c \
85        libspeex/gain_table_lbr.c \
86        libspeex/hexc_10_32_table.c \
87        libspeex/hexc_table.c \
88        libspeex/high_lsp_tables.c \
89        libspeex/kiss_fft.c \
90        libspeex/kiss_fftr.c \
91        libspeex/lpc.c \
92        libspeex/lsp.c \
93        libspeex/lsp_tables_nb.c \
94        libspeex/ltp.c \
95        libspeex/mdf.c \
96        libspeex/modes.c \
97        libspeex/modes_wb.c \
98        libspeex/nb_celp.c \
99        libspeex/preprocess.c \
100        libspeex/quant_lsp.c \
101        libspeex/sb_celp.c \
102        libspeex/smallft.c \
103        libspeex/speex.c \
104        libspeex/speex_callbacks.c \
105        libspeex/speex_header.c \
106        libspeex/vbr.c \
107        libspeex/vq.c \
108        libspeex/window.c \
109        libspeex/buffer.c \
110        libspeex/resample.c \
111        libspeex/scal.c
112
113LOCAL_MODULE:= libspeex_googletts
114LOCAL_SDK_VERSION := 14
115
116LOCAL_CFLAGS+= -DEXPORT= -DFLOATING_POINT -DUSE_SMALLFT -DVAR_ARRAYS
117LOCAL_CFLAGS+= -O3 -fstrict-aliasing -fprefetch-loop-arrays
118
119LOCAL_C_INCLUDES += \
120	$(LOCAL_PATH)/include
121
122include $(BUILD_STATIC_LIBRARY)
123
124
125
126