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
9LOCAL_PATH := $(call my-dir)
10
11include $(CLEAR_VARS)
12
13include $(LOCAL_PATH)/../../../../../../../android-webrtc.mk
14
15LOCAL_ARM_MODE := arm
16LOCAL_MODULE_CLASS := STATIC_LIBRARIES
17LOCAL_MODULE := libwebrtc_isac
18LOCAL_MODULE_TAGS := optional
19LOCAL_SRC_FILES := \
20    arith_routines.c \
21    arith_routines_hist.c \
22    arith_routines_logist.c \
23    bandwidth_estimator.c \
24    crc.c \
25    decode.c \
26    decode_bwe.c \
27    encode.c \
28    encode_lpc_swb.c \
29    entropy_coding.c \
30    fft.c \
31    filter_functions.c \
32    filterbank_tables.c \
33    intialize.c \
34    isac.c \
35    filterbanks.c \
36    pitch_lag_tables.c \
37    lattice.c \
38    lpc_gain_swb_tables.c \
39    lpc_analysis.c \
40    lpc_shape_swb12_tables.c \
41    lpc_shape_swb16_tables.c \
42    lpc_tables.c \
43    pitch_estimator.c \
44    pitch_filter.c \
45    pitch_gain_tables.c \
46    spectrum_ar_model_tables.c \
47    transform.c
48
49# Flags passed to both C and C++ files.
50LOCAL_CFLAGS := \
51    $(MY_WEBRTC_COMMON_DEFS)
52
53LOCAL_CLANG_CFLAGS := \
54    -Wno-tautological-pointer-compare
55
56LOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm)
57LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86)
58LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips)
59LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64)
60LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64)
61LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64)
62
63LOCAL_C_INCLUDES := \
64    $(LOCAL_PATH)/../interface \
65    $(LOCAL_PATH)/../../../../../.. \
66    $(LOCAL_PATH)/../../../../../../common_audio/signal_processing/include
67
68ifdef WEBRTC_STL
69LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL)
70LOCAL_SDK_VERSION := 14
71LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL)
72endif
73
74include $(BUILD_STATIC_LIBRARY)
75