xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 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 | 'includes': [ |
andrew@webrtc.org | 3ce62fc | 2011-10-06 01:03:18 +0000 | [diff] [blame] | 11 | '../build/common.gypi', |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 12 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 13 | 'targets': [ |
| 14 | { |
| 15 | 'target_name': 'voice_engine', |
| 16 | 'type': 'static_library', |
| 17 | 'dependencies': [ |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame^] | 18 | '<(webrtc_root)/common.gyp:webrtc_common', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 19 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
| 20 | '<(webrtc_root)/modules/modules.gyp:audio_coding_module', |
| 21 | '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer', |
| 22 | '<(webrtc_root)/modules/modules.gyp:audio_device', |
| 23 | '<(webrtc_root)/modules/modules.gyp:audio_processing', |
minyue@webrtc.org | c1a40a7 | 2014-05-28 09:52:06 +0000 | [diff] [blame] | 24 | '<(webrtc_root)/modules/modules.gyp:bitrate_controller', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 25 | '<(webrtc_root)/modules/modules.gyp:media_file', |
| 26 | '<(webrtc_root)/modules/modules.gyp:rtp_rtcp', |
| 27 | '<(webrtc_root)/modules/modules.gyp:webrtc_utility', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 28 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
andrew@webrtc.org | 3ce62fc | 2011-10-06 01:03:18 +0000 | [diff] [blame] | 29 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 30 | 'sources': [ |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 31 | 'include/voe_audio_processing.h', |
| 32 | 'include/voe_base.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 33 | 'include/voe_codec.h', |
| 34 | 'include/voe_dtmf.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 35 | 'include/voe_errors.h', |
| 36 | 'include/voe_external_media.h', |
| 37 | 'include/voe_file.h', |
| 38 | 'include/voe_hardware.h', |
| 39 | 'include/voe_neteq_stats.h', |
| 40 | 'include/voe_network.h', |
| 41 | 'include/voe_rtp_rtcp.h', |
| 42 | 'include/voe_video_sync.h', |
| 43 | 'include/voe_volume_control.h', |
| 44 | 'channel.cc', |
| 45 | 'channel.h', |
| 46 | 'channel_manager.cc', |
| 47 | 'channel_manager.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 48 | 'dtmf_inband.cc', |
| 49 | 'dtmf_inband.h', |
| 50 | 'dtmf_inband_queue.cc', |
| 51 | 'dtmf_inband_queue.h', |
| 52 | 'level_indicator.cc', |
| 53 | 'level_indicator.h', |
| 54 | 'monitor_module.cc', |
| 55 | 'monitor_module.h', |
minyue@webrtc.org | 74aaf29 | 2014-07-16 21:28:26 +0000 | [diff] [blame] | 56 | 'network_predictor.cc', |
| 57 | 'network_predictor.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 58 | 'output_mixer.cc', |
| 59 | 'output_mixer.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 60 | 'shared_data.cc', |
| 61 | 'shared_data.h', |
| 62 | 'statistics.cc', |
| 63 | 'statistics.h', |
| 64 | 'transmit_mixer.cc', |
| 65 | 'transmit_mixer.h', |
| 66 | 'utility.cc', |
| 67 | 'utility.h', |
| 68 | 'voe_audio_processing_impl.cc', |
| 69 | 'voe_audio_processing_impl.h', |
| 70 | 'voe_base_impl.cc', |
| 71 | 'voe_base_impl.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 72 | 'voe_codec_impl.cc', |
| 73 | 'voe_codec_impl.h', |
| 74 | 'voe_dtmf_impl.cc', |
| 75 | 'voe_dtmf_impl.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 76 | 'voe_external_media_impl.cc', |
| 77 | 'voe_external_media_impl.h', |
| 78 | 'voe_file_impl.cc', |
| 79 | 'voe_file_impl.h', |
| 80 | 'voe_hardware_impl.cc', |
| 81 | 'voe_hardware_impl.h', |
| 82 | 'voe_neteq_stats_impl.cc', |
| 83 | 'voe_neteq_stats_impl.h', |
| 84 | 'voe_network_impl.cc', |
| 85 | 'voe_network_impl.h', |
| 86 | 'voe_rtp_rtcp_impl.cc', |
| 87 | 'voe_rtp_rtcp_impl.h', |
| 88 | 'voe_video_sync_impl.cc', |
| 89 | 'voe_video_sync_impl.h', |
| 90 | 'voe_volume_control_impl.cc', |
| 91 | 'voe_volume_control_impl.h', |
| 92 | 'voice_engine_defines.h', |
| 93 | 'voice_engine_impl.cc', |
| 94 | 'voice_engine_impl.h', |
| 95 | ], |
| 96 | }, |
andrew@webrtc.org | 3ce62fc | 2011-10-06 01:03:18 +0000 | [diff] [blame] | 97 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 98 | 'conditions': [ |
| 99 | ['OS=="win"', { |
| 100 | 'defines': ['WEBRTC_DRIFT_COMPENSATION_SUPPORTED',], |
| 101 | }], |
| 102 | ['include_tests==1', { |
| 103 | 'targets': [ |
| 104 | { |
| 105 | 'target_name': 'voice_engine_unittests', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 106 | 'type': '<(gtest_target_type)', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 107 | 'dependencies': [ |
| 108 | 'voice_engine', |
| 109 | '<(DEPTH)/testing/gtest.gyp:gtest', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 110 | # The rest are to satisfy the unittests' include chain. |
| 111 | # This would be unnecessary if we used qualified includes. |
| 112 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio', |
| 113 | '<(webrtc_root)/modules/modules.gyp:audio_device', |
| 114 | '<(webrtc_root)/modules/modules.gyp:audio_processing', |
| 115 | '<(webrtc_root)/modules/modules.gyp:audio_coding_module', |
| 116 | '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer', |
| 117 | '<(webrtc_root)/modules/modules.gyp:media_file', |
| 118 | '<(webrtc_root)/modules/modules.gyp:rtp_rtcp', |
| 119 | '<(webrtc_root)/modules/modules.gyp:webrtc_utility', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 120 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
kjellander@webrtc.org | 6c35e0b | 2013-06-11 08:29:17 +0000 | [diff] [blame] | 121 | '<(webrtc_root)/test/test.gyp:test_support_main', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 122 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 123 | 'sources': [ |
| 124 | 'channel_unittest.cc', |
minyue@webrtc.org | 74aaf29 | 2014-07-16 21:28:26 +0000 | [diff] [blame] | 125 | 'network_predictor_unittest.cc', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 126 | 'transmit_mixer_unittest.cc', |
andrew@webrtc.org | a78a41f | 2014-04-08 23:09:28 +0000 | [diff] [blame] | 127 | 'utility_unittest.cc', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 128 | 'voe_audio_processing_unittest.cc', |
| 129 | 'voe_base_unittest.cc', |
| 130 | 'voe_codec_unittest.cc', |
| 131 | ], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 132 | 'conditions': [ |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 133 | ['OS=="android"', { |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 134 | 'dependencies': [ |
| 135 | '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 136 | ], |
| 137 | }], |
| 138 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 139 | }, |
| 140 | { |
| 141 | 'target_name': 'voe_auto_test', |
| 142 | 'type': 'executable', |
| 143 | 'dependencies': [ |
| 144 | 'voice_engine', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 145 | '<(DEPTH)/testing/gmock.gyp:gmock', |
kjellander@webrtc.org | 6c35e0b | 2013-06-11 08:29:17 +0000 | [diff] [blame] | 146 | '<(DEPTH)/testing/gtest.gyp:gtest', |
fischman@webrtc.org | dde7d4c | 2013-08-15 23:31:30 +0000 | [diff] [blame] | 147 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 148 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
| 149 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default', |
kjellander@webrtc.org | 6c35e0b | 2013-06-11 08:29:17 +0000 | [diff] [blame] | 150 | '<(webrtc_root)/test/test.gyp:channel_transport', |
| 151 | '<(webrtc_root)/test/test.gyp:test_support', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 152 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 153 | 'sources': [ |
| 154 | 'test/auto_test/automated_mode.cc', |
| 155 | 'test/auto_test/extended/agc_config_test.cc', |
| 156 | 'test/auto_test/extended/ec_metrics_test.cc', |
| 157 | 'test/auto_test/fakes/fake_external_transport.cc', |
| 158 | 'test/auto_test/fakes/fake_external_transport.h', |
| 159 | 'test/auto_test/fixtures/after_initialization_fixture.cc', |
| 160 | 'test/auto_test/fixtures/after_initialization_fixture.h', |
| 161 | 'test/auto_test/fixtures/after_streaming_fixture.cc', |
| 162 | 'test/auto_test/fixtures/after_streaming_fixture.h', |
| 163 | 'test/auto_test/fixtures/before_initialization_fixture.cc', |
| 164 | 'test/auto_test/fixtures/before_initialization_fixture.h', |
solenberg@webrtc.org | 57e0602 | 2014-05-16 11:27:09 +0000 | [diff] [blame] | 165 | 'test/auto_test/fixtures/before_streaming_fixture.cc', |
| 166 | 'test/auto_test/fixtures/before_streaming_fixture.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 167 | 'test/auto_test/standard/audio_processing_test.cc', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 168 | 'test/auto_test/standard/codec_before_streaming_test.cc', |
| 169 | 'test/auto_test/standard/codec_test.cc', |
| 170 | 'test/auto_test/standard/dtmf_test.cc', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 171 | 'test/auto_test/standard/external_media_test.cc', |
| 172 | 'test/auto_test/standard/file_before_streaming_test.cc', |
| 173 | 'test/auto_test/standard/file_test.cc', |
| 174 | 'test/auto_test/standard/hardware_before_initializing_test.cc', |
| 175 | 'test/auto_test/standard/hardware_before_streaming_test.cc', |
| 176 | 'test/auto_test/standard/hardware_test.cc', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 177 | 'test/auto_test/standard/mixing_test.cc', |
| 178 | 'test/auto_test/standard/neteq_stats_test.cc', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 179 | 'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc', |
wu@webrtc.org | ebdb0e3 | 2014-03-06 23:49:08 +0000 | [diff] [blame] | 180 | 'test/auto_test/standard/rtp_rtcp_extensions.cc', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 181 | 'test/auto_test/standard/rtp_rtcp_test.cc', |
| 182 | 'test/auto_test/standard/voe_base_misc_test.cc', |
| 183 | 'test/auto_test/standard/video_sync_test.cc', |
| 184 | 'test/auto_test/standard/volume_test.cc', |
| 185 | 'test/auto_test/resource_manager.cc', |
| 186 | 'test/auto_test/voe_cpu_test.cc', |
| 187 | 'test/auto_test/voe_cpu_test.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 188 | 'test/auto_test/voe_standard_test.cc', |
| 189 | 'test/auto_test/voe_standard_test.h', |
| 190 | 'test/auto_test/voe_stress_test.cc', |
| 191 | 'test/auto_test/voe_stress_test.h', |
| 192 | 'test/auto_test/voe_test_defines.h', |
| 193 | 'test/auto_test/voe_test_interface.h', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 194 | ], |
| 195 | 'conditions': [ |
| 196 | ['OS=="android"', { |
| 197 | # some tests are not supported on android yet, exclude these tests. |
| 198 | 'sources!': [ |
| 199 | 'test/auto_test/standard/hardware_before_streaming_test.cc', |
| 200 | ], |
| 201 | }], |
| 202 | ], |
| 203 | # Disable warnings to enable Win64 build, issue 1323. |
| 204 | 'msvs_disabled_warnings': [ |
| 205 | 4267, # size_t to int truncation. |
| 206 | ], |
| 207 | }, |
| 208 | { |
| 209 | # command line test that should work on linux/mac/win |
| 210 | 'target_name': 'voe_cmd_test', |
| 211 | 'type': 'executable', |
| 212 | 'dependencies': [ |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 213 | 'voice_engine', |
kjellander@webrtc.org | 6c35e0b | 2013-06-11 08:29:17 +0000 | [diff] [blame] | 214 | '<(DEPTH)/testing/gtest.gyp:gtest', |
minyue@webrtc.org | cc92e00 | 2013-09-30 08:43:50 +0000 | [diff] [blame] | 215 | '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 216 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
| 217 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default', |
kjellander@webrtc.org | 6c35e0b | 2013-06-11 08:29:17 +0000 | [diff] [blame] | 218 | '<(webrtc_root)/test/test.gyp:channel_transport', |
| 219 | '<(webrtc_root)/test/test.gyp:test_support', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 220 | ], |
| 221 | 'sources': [ |
| 222 | 'test/cmd_test/voe_cmd_test.cc', |
| 223 | ], |
| 224 | }, |
| 225 | ], # targets |
| 226 | 'conditions': [ |
| 227 | # TODO(kjellander): Support UseoFMFC on VS2010. |
| 228 | # http://code.google.com/p/webrtc/issues/detail?id=709 |
| 229 | ['OS=="win" and MSVS_VERSION < "2010"', { |
| 230 | 'targets': [ |
| 231 | # WinTest - GUI test for Windows |
| 232 | { |
| 233 | 'target_name': 'voe_ui_win_test', |
| 234 | 'type': 'executable', |
| 235 | 'dependencies': [ |
| 236 | 'voice_engine', |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 237 | '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 238 | '<(webrtc_root)/test/test.gyp:test_support', |
| 239 | ], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 240 | 'sources': [ |
| 241 | 'test/win_test/Resource.h', |
| 242 | 'test/win_test/WinTest.cc', |
| 243 | 'test/win_test/WinTest.h', |
| 244 | 'test/win_test/WinTest.rc', |
| 245 | 'test/win_test/WinTestDlg.cc', |
| 246 | 'test/win_test/WinTestDlg.h', |
| 247 | 'test/win_test/res/WinTest.ico', |
| 248 | 'test/win_test/res/WinTest.rc2', |
| 249 | 'test/win_test/stdafx.cc', |
| 250 | 'test/win_test/stdafx.h', |
| 251 | ], |
| 252 | 'configurations': { |
| 253 | 'Common_Base': { |
| 254 | 'msvs_configuration_attributes': { |
| 255 | 'conditions': [ |
| 256 | ['component=="shared_library"', { |
| 257 | 'UseOfMFC': '2', # Shared DLL |
| 258 | },{ |
| 259 | 'UseOfMFC': '1', # Static |
| 260 | }], |
| 261 | ], |
| 262 | }, |
| 263 | }, |
| 264 | }, |
| 265 | 'msvs_settings': { |
| 266 | 'VCLinkerTool': { |
| 267 | 'SubSystem': '2', # Windows |
| 268 | }, |
| 269 | }, |
| 270 | }, |
| 271 | ], # targets |
| 272 | }], |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 273 | ['OS=="android"', { |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 274 | 'targets': [ |
| 275 | { |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 276 | 'target_name': 'voice_engine_unittests_apk_target', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 277 | 'type': 'none', |
| 278 | 'dependencies': [ |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 279 | '<(apk_tests_path):voice_engine_unittests_apk', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 +0000 | [diff] [blame] | 280 | ], |
| 281 | }, |
| 282 | ], |
| 283 | }], |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 284 | ['test_isolation_mode != "noop"', { |
| 285 | 'targets': [ |
| 286 | { |
| 287 | 'target_name': 'voice_engine_unittests_run', |
| 288 | 'type': 'none', |
| 289 | 'dependencies': [ |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 290 | 'voice_engine_unittests', |
| 291 | ], |
| 292 | 'includes': [ |
kjellander@webrtc.org | 2a97317 | 2013-10-02 19:31:16 +0000 | [diff] [blame] | 293 | '../build/isolate.gypi', |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 294 | ], |
| 295 | 'sources': [ |
| 296 | 'voice_engine_unittests.isolate', |
| 297 | ], |
| 298 | }, |
| 299 | { |
| 300 | 'target_name': 'voe_auto_test_run', |
| 301 | 'type': 'none', |
| 302 | 'dependencies': [ |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 303 | 'voe_auto_test', |
| 304 | ], |
| 305 | 'includes': [ |
kjellander@webrtc.org | 2a97317 | 2013-10-02 19:31:16 +0000 | [diff] [blame] | 306 | '../build/isolate.gypi', |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 +0000 | [diff] [blame] | 307 | ], |
| 308 | 'sources': [ |
| 309 | 'voe_auto_test.isolate', |
| 310 | ], |
| 311 | }, |
| 312 | ], |
| 313 | }], |
andrew@webrtc.org | f791b1c | 2013-05-29 00:38:02 +0000 | [diff] [blame] | 314 | ], # conditions |
| 315 | }], # include_tests |
| 316 | ], # conditions |
xians@google.com | d3185fe | 2011-09-12 12:24:39 +0000 | [diff] [blame] | 317 | } |