2011-09-12 12:24:39 +00:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
'includes': [
|
2011-10-06 01:03:18 +00:00
|
|
|
'../build/common.gypi',
|
2011-09-12 12:24:39 +00:00
|
|
|
],
|
2013-05-29 00:38:02 +00:00
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'voice_engine',
|
|
|
|
|
'type': 'static_library',
|
|
|
|
|
'dependencies': [
|
2015-02-26 13:59:22 +00:00
|
|
|
'<(webrtc_root)/common.gyp:webrtc_common',
|
2013-05-29 00:38:02 +00:00
|
|
|
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:audio_coding_module',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:audio_conference_mixer',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:audio_device',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:audio_processing',
|
2014-05-28 09:52:06 +00:00
|
|
|
'<(webrtc_root)/modules/modules.gyp:bitrate_controller',
|
2013-05-29 00:38:02 +00:00
|
|
|
'<(webrtc_root)/modules/modules.gyp:media_file',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:webrtc_utility',
|
2015-01-14 09:30:52 +00:00
|
|
|
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
|
2015-09-09 00:09:43 -07:00
|
|
|
'<(webrtc_root)/webrtc.gyp:rtc_event_log',
|
2011-10-06 01:03:18 +00:00
|
|
|
],
|
2015-11-10 03:49:26 -08:00
|
|
|
'export_dependent_settings': [
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:audio_coding_module',
|
|
|
|
|
],
|
2013-05-29 00:38:02 +00:00
|
|
|
'sources': [
|
|
|
|
|
'include/voe_audio_processing.h',
|
|
|
|
|
'include/voe_base.h',
|
|
|
|
|
'include/voe_codec.h',
|
|
|
|
|
'include/voe_dtmf.h',
|
|
|
|
|
'include/voe_errors.h',
|
|
|
|
|
'include/voe_external_media.h',
|
|
|
|
|
'include/voe_file.h',
|
|
|
|
|
'include/voe_hardware.h',
|
|
|
|
|
'include/voe_neteq_stats.h',
|
|
|
|
|
'include/voe_network.h',
|
|
|
|
|
'include/voe_rtp_rtcp.h',
|
|
|
|
|
'include/voe_video_sync.h',
|
|
|
|
|
'include/voe_volume_control.h',
|
|
|
|
|
'channel.cc',
|
|
|
|
|
'channel.h',
|
|
|
|
|
'channel_manager.cc',
|
|
|
|
|
'channel_manager.h',
|
2015-11-25 08:16:52 -08:00
|
|
|
'channel_proxy.cc',
|
|
|
|
|
'channel_proxy.h',
|
2013-05-29 00:38:02 +00:00
|
|
|
'dtmf_inband.cc',
|
|
|
|
|
'dtmf_inband.h',
|
|
|
|
|
'dtmf_inband_queue.cc',
|
|
|
|
|
'dtmf_inband_queue.h',
|
|
|
|
|
'level_indicator.cc',
|
|
|
|
|
'level_indicator.h',
|
|
|
|
|
'monitor_module.cc',
|
|
|
|
|
'monitor_module.h',
|
2014-07-16 21:28:26 +00:00
|
|
|
'network_predictor.cc',
|
|
|
|
|
'network_predictor.h',
|
2013-05-29 00:38:02 +00:00
|
|
|
'output_mixer.cc',
|
|
|
|
|
'output_mixer.h',
|
|
|
|
|
'shared_data.cc',
|
|
|
|
|
'shared_data.h',
|
|
|
|
|
'statistics.cc',
|
|
|
|
|
'statistics.h',
|
|
|
|
|
'transmit_mixer.cc',
|
|
|
|
|
'transmit_mixer.h',
|
|
|
|
|
'utility.cc',
|
|
|
|
|
'utility.h',
|
|
|
|
|
'voe_audio_processing_impl.cc',
|
|
|
|
|
'voe_audio_processing_impl.h',
|
|
|
|
|
'voe_base_impl.cc',
|
|
|
|
|
'voe_base_impl.h',
|
|
|
|
|
'voe_codec_impl.cc',
|
|
|
|
|
'voe_codec_impl.h',
|
|
|
|
|
'voe_dtmf_impl.cc',
|
|
|
|
|
'voe_dtmf_impl.h',
|
|
|
|
|
'voe_external_media_impl.cc',
|
|
|
|
|
'voe_external_media_impl.h',
|
|
|
|
|
'voe_file_impl.cc',
|
|
|
|
|
'voe_file_impl.h',
|
|
|
|
|
'voe_hardware_impl.cc',
|
|
|
|
|
'voe_hardware_impl.h',
|
|
|
|
|
'voe_neteq_stats_impl.cc',
|
|
|
|
|
'voe_neteq_stats_impl.h',
|
|
|
|
|
'voe_network_impl.cc',
|
|
|
|
|
'voe_network_impl.h',
|
|
|
|
|
'voe_rtp_rtcp_impl.cc',
|
|
|
|
|
'voe_rtp_rtcp_impl.h',
|
|
|
|
|
'voe_video_sync_impl.cc',
|
|
|
|
|
'voe_video_sync_impl.h',
|
|
|
|
|
'voe_volume_control_impl.cc',
|
|
|
|
|
'voe_volume_control_impl.h',
|
|
|
|
|
'voice_engine_defines.h',
|
|
|
|
|
'voice_engine_impl.cc',
|
|
|
|
|
'voice_engine_impl.h',
|
|
|
|
|
],
|
|
|
|
|
},
|
2011-10-06 01:03:18 +00:00
|
|
|
],
|
2013-05-29 00:38:02 +00:00
|
|
|
'conditions': [
|
|
|
|
|
['OS=="win"', {
|
|
|
|
|
'defines': ['WEBRTC_DRIFT_COMPENSATION_SUPPORTED',],
|
|
|
|
|
}],
|
|
|
|
|
['include_tests==1', {
|
|
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'voice_engine_unittests',
|
2013-08-02 16:53:47 +00:00
|
|
|
'type': '<(gtest_target_type)',
|
2013-05-29 00:38:02 +00:00
|
|
|
'dependencies': [
|
|
|
|
|
'voice_engine',
|
2015-04-21 11:39:57 +02:00
|
|
|
'<(DEPTH)/testing/gmock.gyp:gmock',
|
2013-05-29 00:38:02 +00:00
|
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
|
|
|
# The rest are to satisfy the unittests' include chain.
|
|
|
|
|
# This would be unnecessary if we used qualified includes.
|
|
|
|
|
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:audio_device',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:audio_processing',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:audio_coding_module',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:audio_conference_mixer',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:media_file',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
|
|
|
|
|
'<(webrtc_root)/modules/modules.gyp:webrtc_utility',
|
2015-01-14 09:30:52 +00:00
|
|
|
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
|
2013-06-11 08:29:17 +00:00
|
|
|
'<(webrtc_root)/test/test.gyp:test_support_main',
|
2013-05-29 00:38:02 +00:00
|
|
|
],
|
|
|
|
|
'sources': [
|
|
|
|
|
'channel_unittest.cc',
|
2014-07-16 21:28:26 +00:00
|
|
|
'network_predictor_unittest.cc',
|
2013-05-29 00:38:02 +00:00
|
|
|
'transmit_mixer_unittest.cc',
|
2014-04-08 23:09:28 +00:00
|
|
|
'utility_unittest.cc',
|
2013-05-29 00:38:02 +00:00
|
|
|
'voe_audio_processing_unittest.cc',
|
|
|
|
|
'voe_base_unittest.cc',
|
|
|
|
|
'voe_codec_unittest.cc',
|
2015-04-30 10:57:10 +02:00
|
|
|
'voe_network_unittest.cc',
|
|
|
|
|
'voice_engine_fixture.cc',
|
|
|
|
|
'voice_engine_fixture.h',
|
2013-05-29 00:38:02 +00:00
|
|
|
],
|
2013-08-02 16:53:47 +00:00
|
|
|
'conditions': [
|
2014-09-01 11:06:37 +00:00
|
|
|
['OS=="android"', {
|
2013-08-02 16:53:47 +00:00
|
|
|
'dependencies': [
|
|
|
|
|
'<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
|
|
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
],
|
2013-05-29 00:38:02 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
# command line test that should work on linux/mac/win
|
|
|
|
|
'target_name': 'voe_cmd_test',
|
|
|
|
|
'type': 'executable',
|
|
|
|
|
'dependencies': [
|
|
|
|
|
'voice_engine',
|
2013-06-11 08:29:17 +00:00
|
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
2013-09-30 08:43:50 +00:00
|
|
|
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
|
2015-01-14 09:30:52 +00:00
|
|
|
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
|
|
|
|
|
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
|
2013-06-11 08:29:17 +00:00
|
|
|
'<(webrtc_root)/test/test.gyp:channel_transport',
|
|
|
|
|
'<(webrtc_root)/test/test.gyp:test_support',
|
2015-09-09 00:09:43 -07:00
|
|
|
'<(webrtc_root)/webrtc.gyp:rtc_event_log',
|
2013-05-29 00:38:02 +00:00
|
|
|
],
|
|
|
|
|
'sources': [
|
|
|
|
|
'test/cmd_test/voe_cmd_test.cc',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
], # targets
|
|
|
|
|
'conditions': [
|
2015-11-19 15:39:29 +01:00
|
|
|
['OS!="ios"', {
|
|
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'voe_auto_test',
|
|
|
|
|
'type': 'executable',
|
|
|
|
|
'dependencies': [
|
|
|
|
|
'voice_engine',
|
|
|
|
|
'<(DEPTH)/testing/gmock.gyp:gmock',
|
|
|
|
|
'<(DEPTH)/testing/gtest.gyp:gtest',
|
|
|
|
|
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
|
|
|
|
|
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
|
|
|
|
|
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
|
|
|
|
|
'<(webrtc_root)/test/test.gyp:channel_transport',
|
|
|
|
|
'<(webrtc_root)/test/test.gyp:test_support',
|
|
|
|
|
'<(webrtc_root)/test/webrtc_test_common.gyp:webrtc_test_common',
|
|
|
|
|
'<(webrtc_root)/webrtc.gyp:rtc_event_log',
|
|
|
|
|
],
|
|
|
|
|
'sources': [
|
|
|
|
|
'test/auto_test/automated_mode.cc',
|
|
|
|
|
'test/auto_test/extended/agc_config_test.cc',
|
|
|
|
|
'test/auto_test/extended/ec_metrics_test.cc',
|
|
|
|
|
'test/auto_test/fakes/conference_transport.cc',
|
|
|
|
|
'test/auto_test/fakes/conference_transport.h',
|
|
|
|
|
'test/auto_test/fakes/loudest_filter.cc',
|
|
|
|
|
'test/auto_test/fakes/loudest_filter.h',
|
|
|
|
|
'test/auto_test/fixtures/after_initialization_fixture.cc',
|
|
|
|
|
'test/auto_test/fixtures/after_initialization_fixture.h',
|
|
|
|
|
'test/auto_test/fixtures/after_streaming_fixture.cc',
|
|
|
|
|
'test/auto_test/fixtures/after_streaming_fixture.h',
|
|
|
|
|
'test/auto_test/fixtures/before_initialization_fixture.cc',
|
|
|
|
|
'test/auto_test/fixtures/before_initialization_fixture.h',
|
|
|
|
|
'test/auto_test/fixtures/before_streaming_fixture.cc',
|
|
|
|
|
'test/auto_test/fixtures/before_streaming_fixture.h',
|
|
|
|
|
'test/auto_test/standard/audio_processing_test.cc',
|
|
|
|
|
'test/auto_test/standard/codec_before_streaming_test.cc',
|
|
|
|
|
'test/auto_test/standard/codec_test.cc',
|
|
|
|
|
'test/auto_test/standard/dtmf_test.cc',
|
|
|
|
|
'test/auto_test/standard/external_media_test.cc',
|
|
|
|
|
'test/auto_test/standard/file_before_streaming_test.cc',
|
|
|
|
|
'test/auto_test/standard/file_test.cc',
|
|
|
|
|
'test/auto_test/standard/hardware_before_initializing_test.cc',
|
|
|
|
|
'test/auto_test/standard/hardware_before_streaming_test.cc',
|
|
|
|
|
'test/auto_test/standard/hardware_test.cc',
|
|
|
|
|
'test/auto_test/standard/mixing_test.cc',
|
|
|
|
|
'test/auto_test/standard/neteq_stats_test.cc',
|
|
|
|
|
'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc',
|
|
|
|
|
'test/auto_test/standard/rtp_rtcp_extensions.cc',
|
|
|
|
|
'test/auto_test/standard/rtp_rtcp_test.cc',
|
|
|
|
|
'test/auto_test/standard/voe_base_misc_test.cc',
|
|
|
|
|
'test/auto_test/standard/video_sync_test.cc',
|
|
|
|
|
'test/auto_test/standard/volume_test.cc',
|
|
|
|
|
'test/auto_test/resource_manager.cc',
|
|
|
|
|
'test/auto_test/voe_conference_test.cc',
|
|
|
|
|
'test/auto_test/voe_cpu_test.cc',
|
|
|
|
|
'test/auto_test/voe_cpu_test.h',
|
|
|
|
|
'test/auto_test/voe_output_test.cc',
|
|
|
|
|
'test/auto_test/voe_standard_test.cc',
|
|
|
|
|
'test/auto_test/voe_standard_test.h',
|
|
|
|
|
'test/auto_test/voe_stress_test.cc',
|
|
|
|
|
'test/auto_test/voe_stress_test.h',
|
|
|
|
|
'test/auto_test/voe_test_defines.h',
|
|
|
|
|
'test/auto_test/voe_test_interface.h',
|
|
|
|
|
],
|
|
|
|
|
'conditions': [
|
|
|
|
|
['OS=="android"', {
|
|
|
|
|
# some tests are not supported on android yet, exclude these tests.
|
|
|
|
|
'sources!': [
|
|
|
|
|
'test/auto_test/standard/hardware_before_streaming_test.cc',
|
|
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
['enable_protobuf==1', {
|
|
|
|
|
'defines': [
|
|
|
|
|
'ENABLE_RTC_EVENT_LOG',
|
|
|
|
|
],
|
|
|
|
|
}],
|
|
|
|
|
],
|
|
|
|
|
# Disable warnings to enable Win64 build, issue 1323.
|
|
|
|
|
'msvs_disabled_warnings': [
|
|
|
|
|
4267, # size_t to int truncation.
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}],
|
2014-09-01 11:06:37 +00:00
|
|
|
['OS=="android"', {
|
2013-08-02 16:53:47 +00:00
|
|
|
'targets': [
|
|
|
|
|
{
|
2014-09-03 14:34:46 +00:00
|
|
|
'target_name': 'voice_engine_unittests_apk_target',
|
2013-08-02 16:53:47 +00:00
|
|
|
'type': 'none',
|
|
|
|
|
'dependencies': [
|
2014-09-03 14:34:46 +00:00
|
|
|
'<(apk_tests_path):voice_engine_unittests_apk',
|
2013-08-02 16:53:47 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}],
|
2013-08-22 07:57:00 +00:00
|
|
|
['test_isolation_mode != "noop"', {
|
|
|
|
|
'targets': [
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'voice_engine_unittests_run',
|
|
|
|
|
'type': 'none',
|
|
|
|
|
'dependencies': [
|
|
|
|
|
'voice_engine_unittests',
|
|
|
|
|
],
|
|
|
|
|
'includes': [
|
2013-10-02 19:31:16 +00:00
|
|
|
'../build/isolate.gypi',
|
2013-08-22 07:57:00 +00:00
|
|
|
],
|
|
|
|
|
'sources': [
|
|
|
|
|
'voice_engine_unittests.isolate',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'target_name': 'voe_auto_test_run',
|
|
|
|
|
'type': 'none',
|
|
|
|
|
'dependencies': [
|
|
|
|
|
'voe_auto_test',
|
|
|
|
|
],
|
|
|
|
|
'includes': [
|
2013-10-02 19:31:16 +00:00
|
|
|
'../build/isolate.gypi',
|
2013-08-22 07:57:00 +00:00
|
|
|
],
|
|
|
|
|
'sources': [
|
|
|
|
|
'voe_auto_test.isolate',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}],
|
2013-05-29 00:38:02 +00:00
|
|
|
], # conditions
|
2015-11-19 15:39:29 +01:00
|
|
|
}], # include_tests==1
|
2013-05-29 00:38:02 +00:00
|
|
|
], # conditions
|
2011-09-12 12:24:39 +00:00
|
|
|
}
|