1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
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.
9 #############################
10 # Build the non-neon library.
12 LOCAL_PATH := $(call my-dir)
16 include $(LOCAL_PATH)/../../../../../../../android-webrtc.mk
19 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
20 LOCAL_MODULE := libwebrtc_isacfix
21 LOCAL_MODULE_TAGS := optional
24 arith_routines_hist.c \
25 arith_routines_logist.c \
26 bandwidth_estimator.c \
45 spectrum_ar_model_tables.c \
48 ifeq ($(ARCH_ARM_HAVE_ARMV7A),true)
49 # Using .S (instead of .s) extention is to include a C header file in assembly.
58 # Flags passed to both C and C++ files.
60 $(MY_WEBRTC_COMMON_DEFS)
63 $(LOCAL_PATH)/../interface \
64 $(LOCAL_PATH)/../../../../../.. \
65 $(LOCAL_PATH)/../../../../../../common_audio/signal_processing/include
67 LOCAL_STATIC_LIBRARIES += libwebrtc_system_wrappers
69 LOCAL_SHARED_LIBRARIES := \
75 include external/stlport/libstlport.mk
77 include $(BUILD_STATIC_LIBRARY)
79 #########################
80 # Build the neon library.
81 ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
86 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
87 LOCAL_MODULE := libwebrtc_isacfix_neon
88 LOCAL_MODULE_TAGS := optional
93 lpc_masking_model_neon.S \
96 # Flags passed to both C and C++ files.
98 $(MY_WEBRTC_COMMON_DEFS) \
101 -flax-vector-conversions
103 LOCAL_C_INCLUDES := \
104 $(LOCAL_PATH)/../interface \
105 $(LOCAL_PATH)/../../../../../.. \
106 $(LOCAL_PATH)/../../../../../../common_audio/signal_processing/include
110 include external/stlport/libstlport.mk
112 include $(BUILD_STATIC_LIBRARY)
114 endif # ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
116 ###########################
119 include $(CLEAR_VARS)
121 LOCAL_MODULE_TAGS := tests
122 LOCAL_CPP_EXTENSION := .cc
123 LOCAL_SRC_FILES:= ../test/kenny.cc
125 # Flags passed to both C and C++ files.
126 LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS)
128 LOCAL_C_INCLUDES := \
129 $(LOCAL_PATH)/../interface \
130 $(LOCAL_PATH)/../../../../../..
132 LOCAL_STATIC_LIBRARIES := \
135 libwebrtc_system_wrappers \
136 libwebrtc_test_support
138 ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
139 LOCAL_STATIC_LIBRARIES += \
140 libwebrtc_isacfix_neon
143 LOCAL_SHARED_LIBRARIES := \
146 LOCAL_MODULE:= webrtc_isac_test
149 include $(BUILD_EXECUTABLE)
151 include $(BUILD_NATIVE_TEST)