Reorganize the audio_processing source.

- Remove main and source directories.
- Change .gyp, .gypi and Android.mk files correspondingly. No other
  source changes.

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@767 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org 2011-10-19 01:40:33 +00:00
parent 5d3bdf71ab
commit 4d5d5c1267
80 changed files with 96 additions and 134 deletions

View File

@ -23,11 +23,11 @@ include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/codecs/iSAC/main/source/
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_coding/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_conference_mixer/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_device/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/aec/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/aecm/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/agc/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/main/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/ns/main/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/aec/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/aecm/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/agc/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/ns/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/audio_processing/utility/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/media_file/source/Android.mk
include $(MY_WEBRTC_ROOT_PATH)/src/modules/rtp_rtcp/source/Android.mk

View File

@ -10,25 +10,25 @@ 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 := libwebrtc_apm
LOCAL_MODULE_TAGS := optional
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES := \
$(call all-proto-files-under, source) \
source/audio_buffer.cc \
source/audio_processing_impl.cc \
source/echo_cancellation_impl.cc \
source/echo_control_mobile_impl.cc \
source/gain_control_impl.cc \
source/high_pass_filter_impl.cc \
source/level_estimator_impl.cc \
source/noise_suppression_impl.cc \
source/splitting_filter.cc \
source/processing_component.cc \
source/voice_detection_impl.cc
$(call all-proto-files-under, .) \
audio_buffer.cc \
audio_processing_impl.cc \
echo_cancellation_impl.cc \
echo_control_mobile_impl.cc \
gain_control_impl.cc \
high_pass_filter_impl.cc \
level_estimator_impl.cc \
noise_suppression_impl.cc \
splitting_filter.cc \
processing_component.cc \
voice_detection_impl.cc
# Flags passed to both C and C++ files.
LOCAL_CFLAGS := \
@ -39,15 +39,15 @@ LOCAL_CFLAGS := \
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/interface \
$(LOCAL_PATH)/../aec/main/interface \
$(LOCAL_PATH)/../aecm/main/interface \
$(LOCAL_PATH)/../agc/main/interface \
$(LOCAL_PATH)/../ns/main/interface \
$(LOCAL_PATH)/../../interface \
$(LOCAL_PATH)/../../.. \
$(LOCAL_PATH)/../../../common_audio/signal_processing_library/main/interface \
$(LOCAL_PATH)/../../../common_audio/vad/main/interface \
$(LOCAL_PATH)/../../../system_wrappers/interface \
$(LOCAL_PATH)/aec/interface \
$(LOCAL_PATH)/aecm/interface \
$(LOCAL_PATH)/agc/interface \
$(LOCAL_PATH)/ns/interface \
$(LOCAL_PATH)/../interface \
$(LOCAL_PATH)/../.. \
$(LOCAL_PATH)/../../common_audio/signal_processing_library/main/interface \
$(LOCAL_PATH)/../../common_audio/vad/main/interface \
$(LOCAL_PATH)/../../system_wrappers/interface \
external/protobuf/src
LOCAL_SHARED_LIBRARIES := \
@ -67,8 +67,8 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES:= \
$(call all-proto-files-under, source) \
test/process_test/process_test.cc
$(call all-proto-files-under, .) \
test/process_test.cc
# Flags passed to both C and C++ files.
LOCAL_CFLAGS := \
@ -76,9 +76,9 @@ LOCAL_CFLAGS := \
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/interface \
$(LOCAL_PATH)/../../interface \
$(LOCAL_PATH)/../../.. \
$(LOCAL_PATH)/../../../system_wrappers/interface \
$(LOCAL_PATH)/../interface \
$(LOCAL_PATH)/../.. \
$(LOCAL_PATH)/../../system_wrappers/interface \
external/gtest/include
LOCAL_STATIC_LIBRARIES := \
@ -106,8 +106,8 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES:= \
$(call all-proto-files-under, test/unit_test) \
test/unit_test/unit_test.cc
$(call all-proto-files-under, test) \
test/unit_test.cc
# Flags passed to both C and C++ files.
LOCAL_CFLAGS := \
@ -116,10 +116,10 @@ LOCAL_CFLAGS := \
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/interface \
$(LOCAL_PATH)/../../interface \
$(LOCAL_PATH)/../../.. \
$(LOCAL_PATH)/../../../system_wrappers/interface \
$(LOCAL_PATH)/../../../common_audio/signal_processing_library/main/interface \
$(LOCAL_PATH)/../interface \
$(LOCAL_PATH)/../.. \
$(LOCAL_PATH)/../../system_wrappers/interface \
$(LOCAL_PATH)/../../common_audio/signal_processing_library/main/interface \
external/gtest/include \
external/protobuf/src

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_MODULE_CLASS := STATIC_LIBRARIES
LOCAL_MODULE := libwebrtc_aec
@ -29,10 +29,10 @@ LOCAL_CFLAGS := \
$(MY_WEBRTC_COMMON_DEFS)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../interface \
$(LOCAL_PATH)/../../../utility \
$(LOCAL_PATH)/../../../../.. \
$(LOCAL_PATH)/../../../../../common_audio/signal_processing_library/main/interface
$(LOCAL_PATH)/interface \
$(LOCAL_PATH)/../utility \
$(LOCAL_PATH)/../../.. \
$(LOCAL_PATH)/../../../common_audio/signal_processing_library/main/interface
LOCAL_SHARED_LIBRARIES := \
libcutils \

View File

@ -16,15 +16,15 @@
'apm_util'
],
'include_dirs': [
'../interface',
'interface',
],
'direct_dependent_settings': {
'include_dirs': [
'../interface',
'interface',
],
},
'sources': [
'../interface/echo_cancellation.h',
'interface/echo_cancellation.h',
'echo_cancellation.c',
'aec_core.h',
'aec_core.c',
@ -38,9 +38,3 @@
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:

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
@ -32,10 +32,10 @@ LOCAL_CFLAGS += \
endif
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../interface \
$(LOCAL_PATH)/../../../utility \
$(LOCAL_PATH)/../../../../.. \
$(LOCAL_PATH)/../../../../../common_audio/signal_processing_library/main/interface
$(LOCAL_PATH)/interface \
$(LOCAL_PATH)/../utility \
$(LOCAL_PATH)/../../.. \
$(LOCAL_PATH)/../../../common_audio/signal_processing_library/main/interface
LOCAL_SHARED_LIBRARIES := \
libcutils \

View File

@ -16,15 +16,15 @@
'apm_util'
],
'include_dirs': [
'../interface',
'interface',
],
'direct_dependent_settings': {
'include_dirs': [
'../interface',
'interface',
],
},
'sources': [
'../interface/echo_control_mobile.h',
'interface/echo_control_mobile.h',
'echo_control_mobile.c',
'aecm_core.c',
'aecm_core.h',
@ -32,9 +32,3 @@
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:

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
@ -25,9 +25,9 @@ LOCAL_CFLAGS := \
$(MY_WEBRTC_COMMON_DEFS)
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../interface \
$(LOCAL_PATH)/../../../../.. \
$(LOCAL_PATH)/../../../../../common_audio/signal_processing_library/main/interface
$(LOCAL_PATH)/interface \
$(LOCAL_PATH)/../../.. \
$(LOCAL_PATH)/../../../common_audio/signal_processing_library/main/interface
LOCAL_SHARED_LIBRARIES := \
libcutils \

View File

@ -15,15 +15,15 @@
'<(webrtc_root)/common_audio/common_audio.gyp:spl',
],
'include_dirs': [
'../interface',
'interface',
],
'direct_dependent_settings': {
'include_dirs': [
'../interface',
'interface',
],
},
'sources': [
'../interface/gain_control.h',
'interface/gain_control.h',
'analog_agc.c',
'analog_agc.h',
'digital_agc.c',
@ -32,9 +32,3 @@
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:

View File

@ -29,15 +29,14 @@
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/../test/test.gyp:test_support',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
'<(webrtc_root)/../testing/gtest.gyp:gtest_main',
'<(webrtc_root)/../third_party/protobuf/protobuf.gyp:protobuf_lite',
],
'include_dirs': [
'../../../../testing/gtest/include',
'<(webrtc_root)/../testing/gtest/include',
'<(protoc_out_dir)',
],
'sources': [
'test/unit_test/unit_test.cc',
'test/unit_test.cc',
'<(protoc_out_dir)/<(protoc_out_relpath)/unittest.pb.cc',
'<(protoc_out_dir)/<(protoc_out_relpath)/unittest.pb.h',
],
@ -48,7 +47,7 @@
'type': 'none',
'variables': {
'proto_relpath':
'<(webrtc_root)/modules/audio_processing/main/test/unit_test',
'<(webrtc_root)/modules/audio_processing/test',
},
'sources': [
'<(proto_relpath)/unittest.proto',
@ -74,7 +73,7 @@
},
],
'dependencies': [
'../../third_party/protobuf/protobuf.gyp:protoc#host',
'<(webrtc_root)/../third_party/protobuf/protobuf.gyp:protoc#host',
],
# This target exports a hard dependency because it generates header
# files.
@ -87,22 +86,15 @@
'audio_processing',
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/../testing/gtest.gyp:gtest',
'<(webrtc_root)/../testing/gtest.gyp:gtest_main',
'<(webrtc_root)/../third_party/protobuf/protobuf.gyp:protobuf_lite',
],
'include_dirs': [
'../../../../testing/gtest/include',
'<(webrtc_root)/../testing/gtest/include',
'<(protoc_out_dir)',
],
'sources': [
'test/process_test/process_test.cc',
'test/process_test.cc',
],
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:

View File

@ -25,11 +25,11 @@
}],
['build_with_chromium==1', {
'dependencies': [
'../../protobuf/protobuf.gyp:protobuf_lite',
'<(webrtc_root)/../protobuf/protobuf.gyp:protobuf_lite',
],
}, {
'dependencies': [
'../../third_party/protobuf/protobuf.gyp:protobuf_lite',
'<(webrtc_root)/../third_party/protobuf/protobuf.gyp:protobuf_lite',
],
}],
],
@ -43,18 +43,18 @@
'<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
],
'include_dirs': [
'interface',
'../interface',
'../../../interface',
'<(protoc_out_dir)',
],
'direct_dependent_settings': {
'include_dirs': [
'interface',
'../interface',
'../../../interface',
],
},
'sources': [
'../interface/audio_processing.h',
'interface/audio_processing.h',
'audio_buffer.cc',
'audio_buffer.h',
'audio_processing_impl.cc',
@ -86,7 +86,7 @@
'target_name': 'debug_proto',
'type': 'none',
'variables': {
'proto_relpath': 'audio_processing/main/source/',
'proto_relpath': '<(webrtc_root)/modules/audio_processing',
},
'sources': [
'<(proto_relpath)/debug.proto',
@ -114,11 +114,11 @@
'conditions': [
['build_with_chromium==1', {
'dependencies': [
'../../protobuf/protobuf.gyp:protoc#host',
'<(webrtc_root)/../protobuf/protobuf.gyp:protoc#host',
],
}, {
'dependencies': [
'../../third_party/protobuf/protobuf.gyp:protoc#host',
'<(webrtc_root)/../third_party/protobuf/protobuf.gyp:protoc#host',
],
}],
],
@ -128,9 +128,3 @@
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:

View File

@ -26,7 +26,7 @@
#include "splitting_filter.h"
#include "voice_detection_impl.h"
#ifdef WEBRTC_ANDROID
#include "external/webrtc/src/modules/audio_processing/main/source/debug.pb.h"
#include "external/webrtc/src/modules/audio_processing/debug.pb.h"
#else
#include "webrtc/audio_processing/debug.pb.h"
#endif

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_MODULE_CLASS := STATIC_LIBRARIES
LOCAL_MODULE := libwebrtc_ns
@ -35,10 +35,10 @@ LOCAL_CFLAGS += \
endif
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../interface \
$(LOCAL_PATH)/../../../utility \
$(LOCAL_PATH)/../../../../.. \
$(LOCAL_PATH)/../../../../../common_audio/signal_processing_library/main/interface
$(LOCAL_PATH)/interface \
$(LOCAL_PATH)/../utility \
$(LOCAL_PATH)/../../.. \
$(LOCAL_PATH)/../../../common_audio/signal_processing_library/main/interface
LOCAL_SHARED_LIBRARIES := \
libcutils \

View File

@ -16,15 +16,15 @@
'apm_util'
],
'include_dirs': [
'../interface',
'interface',
],
'direct_dependent_settings': {
'include_dirs': [
'../interface',
'interface',
],
},
'sources': [
'../interface/noise_suppression.h',
'interface/noise_suppression.h',
'noise_suppression.c',
'windows_private.h',
'defines.h',
@ -39,15 +39,15 @@
'<(webrtc_root)/common_audio/common_audio.gyp:spl',
],
'include_dirs': [
'../interface',
'interface',
],
'direct_dependent_settings': {
'include_dirs': [
'../interface',
'interface',
],
},
'sources': [
'../interface/noise_suppression_x.h',
'interface/noise_suppression_x.h',
'noise_suppression_x.c',
'nsx_defines.h',
'nsx_core.c',
@ -56,9 +56,3 @@
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:

View File

@ -21,7 +21,7 @@
#include "module_common_types.h"
#include "tick_util.h"
#ifdef WEBRTC_ANDROID
#include "external/webrtc/src/modules/audio_processing/main/source/debug.pb.h"
#include "external/webrtc/src/modules/audio_processing/debug.pb.h"
#else
#include "webrtc/audio_processing/debug.pb.h"
#endif

View File

@ -20,7 +20,7 @@
#include "thread_wrapper.h"
#include "trace.h"
#ifdef WEBRTC_ANDROID
#include "external/webrtc/src/modules/audio_processing/main/test/unit_test/unittest.pb.h"
#include "external/webrtc/src/modules/audio_processing/test/unittest.pb.h"
#else
#include "webrtc/audio_processing/unittest.pb.h"
#endif

View File

@ -20,12 +20,12 @@
'audio_coding/NetEQ/main/source/neteq.gypi',
'audio_conference_mixer/source/audio_conference_mixer.gypi',
'audio_device/main/source/audio_device.gypi',
'audio_processing/audio_processing.gypi',
'audio_processing/aec/aec.gypi',
'audio_processing/aecm/aecm.gypi',
'audio_processing/agc/agc.gypi',
'audio_processing/ns/ns.gypi',
'audio_processing/utility/util.gypi',
'audio_processing/ns/main/source/ns.gypi',
'audio_processing/agc/main/source/agc.gypi',
'audio_processing/main/source/apm.gypi',
'audio_processing/aec/main/source/aec.gypi',
'audio_processing/aecm/main/source/aecm.gypi',
'media_file/source/media_file.gypi',
'udp_transport/source/udp_transport.gypi',
'utility/source/utility.gypi',
@ -47,7 +47,7 @@
'audio_coding/codecs/iSAC/isac_test.gypi',
'audio_coding/codecs/iSAC/isacfix_test.gypi',
'audio_coding/NetEQ/main/neteq_tests.gypi',
'audio_processing/main/apm_tests.gypi',
'audio_processing/apm_tests.gypi',
'rtp_rtcp/source/rtp_rtcp_tests.gypi',
'rtp_rtcp/test/test_bwe/test_bwe.gypi',
'rtp_rtcp/test/testFec/test_fec.gypi',

View File

@ -62,7 +62,7 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../../../modules/audio_conference_mixer/interface \
$(LOCAL_PATH)/../../../modules/audio_device/main/interface \
$(LOCAL_PATH)/../../../modules/audio_device/main/source \
$(LOCAL_PATH)/../../../modules/audio_processing/main/interface \
$(LOCAL_PATH)/../../../modules/audio_processing/interface \
$(LOCAL_PATH)/../../../modules/media_file/interface \
$(LOCAL_PATH)/../../../modules/rtp_rtcp/interface \
$(LOCAL_PATH)/../../../modules/udp_transport/interface \