From 13318ef4223a311f8261e1a55f4cba5bd5bb3b86 Mon Sep 17 00:00:00 2001 From: "kma@webrtc.org" Date: Thu, 10 Nov 2011 18:00:22 +0000 Subject: [PATCH] (1) Corrected the makefile for testing iLBC in Android, and changed the location of the test makefile to make it consistent with audio_processing. (2) Added a makefile for testing fiexed point iSAC in Android. Review URL: http://webrtc-codereview.appspot.com/266005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@927 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../codecs/iSAC/fix/source/Android.mk | 27 ++++++++ .../audio_coding/codecs/ilbc/Android.mk | 53 +++++++++++++++ .../audio_coding/codecs/ilbc/test/Android.mk | 66 ------------------- 3 files changed, 80 insertions(+), 66 deletions(-) delete mode 100644 src/modules/audio_coding/codecs/ilbc/test/Android.mk diff --git a/src/modules/audio_coding/codecs/iSAC/fix/source/Android.mk b/src/modules/audio_coding/codecs/iSAC/fix/source/Android.mk index be362785b..89d461d0f 100644 --- a/src/modules/audio_coding/codecs/iSAC/fix/source/Android.mk +++ b/src/modules/audio_coding/codecs/iSAC/fix/source/Android.mk @@ -60,3 +60,30 @@ ifndef NDK_ROOT include external/stlport/libstlport.mk endif include $(BUILD_STATIC_LIBRARY) + + +# isac test app +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := tests +LOCAL_CPP_EXTENSION := .cc +LOCAL_SRC_FILES:= ../test/kenny.c + +# Flags passed to both C and C++ files. +LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS) + +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/../interface \ + $(LOCAL_PATH)/../../../../../.. + +LOCAL_SHARED_LIBRARIES := \ + libutils \ + libwebrtc + +LOCAL_MODULE:= webrtc_isac_test + +ifdef NDK_ROOT +include $(BUILD_EXECUTABLE) +else +include $(BUILD_NATIVE_TEST) +endif diff --git a/src/modules/audio_coding/codecs/ilbc/Android.mk b/src/modules/audio_coding/codecs/ilbc/Android.mk index a00aba886..da11ffc1d 100644 --- a/src/modules/audio_coding/codecs/ilbc/Android.mk +++ b/src/modules/audio_coding/codecs/ilbc/Android.mk @@ -104,3 +104,56 @@ ifndef NDK_ROOT include external/stlport/libstlport.mk endif include $(BUILD_STATIC_LIBRARY) + + +# iLBC test app +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := tests +LOCAL_CPP_EXTENSION := .cc +LOCAL_SRC_FILES:= test/iLBC_test.c + +# Flags passed to both C and C++ files. +LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS) + +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/interface \ + $(LOCAL_PATH)/../../../.. + +LOCAL_SHARED_LIBRARIES := \ + libutils \ + libwebrtc + +LOCAL_MODULE:= webrtc_ilbc_test + +ifdef NDK_ROOT +include $(BUILD_EXECUTABLE) +else +include $(BUILD_NATIVE_TEST) +endif + +# iLBC_testLib test app +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := tests +LOCAL_CPP_EXTENSION := .cc +LOCAL_SRC_FILES:= test/iLBC_testLib.c + +# Flags passed to both C and C++ files. +LOCAL_CFLAGS := $(MY_WEBRTC_COMMON_DEFS) + +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/interface \ + $(LOCAL_PATH)/../../../.. + +LOCAL_SHARED_LIBRARIES := \ + libutils \ + libwebrtc + +LOCAL_MODULE:= webrtc_ilbc_testLib + +ifdef NDK_ROOT +include $(BUILD_EXECUTABLE) +else +include $(BUILD_NATIVE_TEST) +endif diff --git a/src/modules/audio_coding/codecs/ilbc/test/Android.mk b/src/modules/audio_coding/codecs/ilbc/test/Android.mk deleted file mode 100644 index f1b2d82bc..000000000 --- a/src/modules/audio_coding/codecs/ilbc/test/Android.mk +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. -# -# Use of this source code is governed by a BSD-style license -# that can be found in the LICENSE file in the root of the source -# tree. An additional intellectual property rights grant can be found -# in the file PATENTS. All contributing project authors may -# be found in the AUTHORS file in the root of the source tree. - -LOCAL_PATH:= $(call my-dir) - -# iLBC test app -include $(CLEAR_VARS) - -include $(LOCAL_PATH)/../../../../../../android-webrtc.mk - -LOCAL_MODULE_TAGS := tests -LOCAL_CPP_EXTENSION := .cc -LOCAL_SRC_FILES:= \ - iLBC_test.c - -# Flags passed to both C and C++ files. -LOCAL_CFLAGS := \ - $(MY_WEBRTC_COMMON_DEFS) - -LOCAL_C_INCLUDES := \ - $(LOCAL_PATH)/../interface \ - $(LOCAL_PATH)/../../../../.. - -LOCAL_SHARED_LIBRARIES := \ - libutils \ - libwebrtc - -LOCAL_MODULE:= webrtc_iLBC_test - -ifdef NDK_ROOT -include $(BUILD_EXECUTABLE) -else -include $(BUILD_NATIVE_TEST) -endif - -# iLBC_testLib test app -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := tests -LOCAL_CPP_EXTENSION := .cc -LOCAL_SRC_FILES:= \ - iLBC_testLib.c - -# Flags passed to both C and C++ files. -LOCAL_CFLAGS := \ - $(MY_WEBRTC_COMMON_DEFS) - -LOCAL_C_INCLUDES := \ - $(LOCAL_PATH)/../../../../.. - -LOCAL_SHARED_LIBRARIES := \ - libutils \ - libwebrtc - -LOCAL_MODULE:= webrtc_iLBC_testLib - -ifdef NDK_ROOT -include $(BUILD_EXECUTABLE) -else -include $(BUILD_NATIVE_TEST) -endif