Restructuring and adding dummy unit test target.

Empty test added to get code coverage recorded.

Review URL: http://webrtc-codereview.appspot.com/280004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@965 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org 2011-11-17 13:39:15 +00:00
parent 64a897a772
commit b72268e147
9 changed files with 46 additions and 11 deletions

View File

@ -16,7 +16,7 @@ include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/neteq/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/cng/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/G711/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/G722/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/PCM16B/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/pcm16b/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/ilbc/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/iSAC/fix/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/iSAC/main/source/Android.mk

View File

@ -10,7 +10,7 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
include $(LOCAL_PATH)/../../../../../../../android-webrtc.mk
include $(LOCAL_PATH)/../../../../../android-webrtc.mk
LOCAL_ARM_MODE := arm
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
@ -23,8 +23,8 @@ LOCAL_CFLAGS := \
$(MY_WEBRTC_COMMON_DEFS)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../interface \
$(LOCAL_PATH)/../../../../../..
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/../../../..
LOCAL_SHARED_LIBRARIES := \
libcutils \

View File

@ -12,19 +12,36 @@
'target_name': 'PCM16B',
'type': '<(library)',
'include_dirs': [
'../interface',
'include',
],
'direct_dependent_settings': {
'include_dirs': [
'../interface',
'include',
],
},
'sources': [
'../interface/pcm16b.h',
'include/pcm16b.h',
'pcm16b.c',
],
},
],
], # targets
'conditions': [
['build_with_chromium==0', {
'targets': [
{
'target_name': 'pcm16b_unittests',
'type': 'executable',
'dependencies': [
'PCM16B',
'<(webrtc_root)/../test/test.gyp:test_support_main',
],
'sources': [
'pcm16b_unittest.cc',
],
}, # PCM16B_unittests
], # targets
}], # build_with_chromium
], # conditions
}
# Local Variables:

View File

@ -0,0 +1,18 @@
/*
* 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.
*/
/*
* Empty test just to get code coverage metrics for this dir.
*/
#include "pcm16b.h"

View File

@ -47,7 +47,7 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../../codecs/ilbc/interface \
$(LOCAL_PATH)/../../codecs/iSAC/main/interface \
$(LOCAL_PATH)/../../codecs/iSAC/fix/interface \
$(LOCAL_PATH)/../../codecs/PCM16B/main/interface \
$(LOCAL_PATH)/../../codecs/pcm16b/include \
$(LOCAL_PATH)/../../neteq/interface \
$(LOCAL_PATH)/../../../.. \
$(LOCAL_PATH)/../../../interface \

View File

@ -15,7 +15,7 @@
'audio_coding/codecs/ilbc/ilbc.gypi',
'audio_coding/codecs/iSAC/main/source/isac.gypi',
'audio_coding/codecs/iSAC/fix/source/isacfix.gypi',
'audio_coding/codecs/PCM16B/main/source/pcm16b.gypi',
'audio_coding/codecs/pcm16b/pcm16b.gypi',
'audio_coding/main/source/audio_coding_module.gypi',
'audio_coding/neteq/neteq.gypi',
'audio_conference_mixer/source/audio_conference_mixer.gypi',

View File

@ -19,7 +19,7 @@ include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/Ne
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/cng/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/G711/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/G722/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/PCM16B/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/pcm16b/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/iLBC/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/iSAC/fix/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/$(MY_WEBRTC_SRC_PATH)/src/modules/audio_coding/codecs/iSAC/main/source/Android.mk