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