1# Copyright (c) 2012 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###########################
10# isac test app
11
12LOCAL_PATH := $(call my-dir)
13
14include $(CLEAR_VARS)
15
16LOCAL_MODULE_TAGS := tests
17LOCAL_CPP_EXTENSION := .cc
18LOCAL_SRC_FILES:= kenny.c
19
20# Flags passed to both C and C++ files.
21LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS)
22
23LOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm)
24LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86)
25LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips)
26LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64)
27LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64)
28LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64)
29
30LOCAL_C_INCLUDES := \
31    $(LOCAL_PATH)/../interface \
32    $(LOCAL_PATH)/../../../../../..
33
34MY_LIB_SUFFIX :=
35ifdef WEBRTC_STL
36MY_LIB_SUFFIX := _$(WEBRTC_STL)
37endif
38
39LOCAL_STATIC_LIBRARIES := \
40    libwebrtc_isacfix$(MY_LIB_SUFFIX) \
41    libwebrtc_spl$(MY_LIB_SUFFIX) \
42    libwebrtc_system_wrappers$(MY_LIB_SUFFIX)
43
44ifeq ($(WEBRTC_BUILD_NEON_LIBS),true)
45# We need to dup libwebrtc_isacfix$(MY_LIB_SUFFIX) because ibwebrtc_isacfix_neon$(MY_LIB_SUFFIX)
46# has dependency on it.
47LOCAL_STATIC_LIBRARIES_arm += \
48    libwebrtc_isacfix$(MY_LIB_SUFFIX) \
49    libwebrtc_isacfix_neon$(MY_LIB_SUFFIX)
50endif
51
52LOCAL_SHARED_LIBRARIES := \
53    libutils
54
55LOCAL_MODULE:= webrtc_isac_test
56
57ifdef WEBRTC_STL
58LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL)
59LOCAL_SDK_VERSION := 14
60LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL)
61LOCAL_SHARED_LIBRARIES :=
62endif
63include $(BUILD_NATIVE_TEST)
64