Home | History | Annotate | Download | only in test
      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 
     12 LOCAL_PATH := $(call my-dir)
     13 
     14 include $(CLEAR_VARS)
     15 
     16 LOCAL_MODULE_TAGS := tests
     17 LOCAL_CPP_EXTENSION := .cc
     18 LOCAL_SRC_FILES:= kenny.c
     19 
     20 # Flags passed to both C and C++ files.
     21 LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS)
     22 
     23 LOCAL_CFLAGS_arm := $(MY_WEBRTC_COMMON_DEFS_arm)
     24 LOCAL_CFLAGS_x86 := $(MY_WEBRTC_COMMON_DEFS_x86)
     25 LOCAL_CFLAGS_mips := $(MY_WEBRTC_COMMON_DEFS_mips)
     26 LOCAL_CFLAGS_arm64 := $(MY_WEBRTC_COMMON_DEFS_arm64)
     27 LOCAL_CFLAGS_x86_64 := $(MY_WEBRTC_COMMON_DEFS_x86_64)
     28 LOCAL_CFLAGS_mips64 := $(MY_WEBRTC_COMMON_DEFS_mips64)
     29 
     30 LOCAL_C_INCLUDES := \
     31     $(LOCAL_PATH)/../interface \
     32     $(LOCAL_PATH)/../../../../../..
     33 
     34 MY_LIB_SUFFIX :=
     35 ifdef WEBRTC_STL
     36 MY_LIB_SUFFIX := _$(WEBRTC_STL)
     37 endif
     38 
     39 LOCAL_STATIC_LIBRARIES := \
     40     libwebrtc_isacfix$(MY_LIB_SUFFIX) \
     41     libwebrtc_spl$(MY_LIB_SUFFIX) \
     42     libwebrtc_system_wrappers$(MY_LIB_SUFFIX)
     43 
     44 ifeq ($(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.
     47 LOCAL_STATIC_LIBRARIES_arm += \
     48     libwebrtc_isacfix$(MY_LIB_SUFFIX) \
     49     libwebrtc_isacfix_neon$(MY_LIB_SUFFIX)
     50 endif
     51 
     52 LOCAL_SHARED_LIBRARIES := \
     53     libutils
     54 
     55 LOCAL_MODULE:= webrtc_isac_test
     56 
     57 ifndef WEBRTC_STL
     58 LOCAL_SHARED_LIBRARIES += libstlport
     59 include external/stlport/libstlport.mk
     60 else
     61 LOCAL_NDK_STL_VARIANT := $(WEBRTC_STL)
     62 LOCAL_SDK_VERSION := 14
     63 LOCAL_MODULE := $(LOCAL_MODULE)_$(WEBRTC_STL)
     64 LOCAL_SHARED_LIBRARIES :=
     65 endif
     66 include $(BUILD_NATIVE_TEST)
     67