blob: dd6de61a528870915a01e96030fe81ac75048d35 [file] [log] [blame]
xians@google.comd3185fe2011-09-12 12:24:39 +00001# 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.org3ce62fc2011-10-06 01:03:18 +000011 '../build/common.gypi',
xians@google.comd3185fe2011-09-12 12:24:39 +000012 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000013 'targets': [
14 {
15 'target_name': 'voice_engine',
16 'type': 'static_library',
17 'dependencies': [
kjellandera69d9732016-08-31 07:33:05 -070018 '<(webrtc_root)/api/api.gyp:call_api',
kjellander@webrtc.org7ffeab52016-02-26 22:46:09 +010019 '<(webrtc_root)/base/base.gyp:rtc_base_approved',
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000020 '<(webrtc_root)/common.gyp:webrtc_common',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000021 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
22 '<(webrtc_root)/modules/modules.gyp:audio_coding_module',
23 '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer',
24 '<(webrtc_root)/modules/modules.gyp:audio_device',
25 '<(webrtc_root)/modules/modules.gyp:audio_processing',
minyue@webrtc.orgc1a40a72014-05-28 09:52:06 +000026 '<(webrtc_root)/modules/modules.gyp:bitrate_controller',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000027 '<(webrtc_root)/modules/modules.gyp:media_file',
Stefan Holmerb86d4e42015-12-07 10:26:18 +010028 '<(webrtc_root)/modules/modules.gyp:paced_sender',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000029 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
30 '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +000031 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
ivocb04965c2015-09-09 00:09:43 -070032 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
aleloie6ca9ec2016-08-10 05:01:51 -070033 'level_indicator',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000034 ],
minyue3cea2562015-11-10 03:49:26 -080035 'export_dependent_settings': [
36 '<(webrtc_root)/modules/modules.gyp:audio_coding_module',
37 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000038 'sources': [
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000039 'include/voe_audio_processing.h',
40 'include/voe_base.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000041 'include/voe_codec.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000042 'include/voe_errors.h',
43 'include/voe_external_media.h',
44 'include/voe_file.h',
45 'include/voe_hardware.h',
46 'include/voe_neteq_stats.h',
47 'include/voe_network.h',
48 'include/voe_rtp_rtcp.h',
49 'include/voe_video_sync.h',
50 'include/voe_volume_control.h',
51 'channel.cc',
52 'channel.h',
53 'channel_manager.cc',
54 'channel_manager.h',
solenberg13725082015-11-25 08:16:52 -080055 'channel_proxy.cc',
56 'channel_proxy.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000057 'monitor_module.cc',
58 'monitor_module.h',
minyue@webrtc.org74aaf292014-07-16 21:28:26 +000059 'network_predictor.cc',
60 'network_predictor.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000061 'output_mixer.cc',
62 'output_mixer.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000063 '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.orgf791b1c2013-05-29 00:38:02 +000075 'voe_codec_impl.cc',
76 'voe_codec_impl.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +000077 '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 },
aleloie6ca9ec2016-08-10 05:01:51 -070098 {
99 'target_name': 'level_indicator',
100 'type': 'static_library',
101 'dependencies': [
102 '<(webrtc_root)/base/base.gyp:rtc_base_approved',
103 '<(webrtc_root)/common.gyp:webrtc_common',
104 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
105 ],
106 'sources': [
107 'level_indicator.cc',
108 'level_indicator.h',
109 ]
solenberg07d9e542016-09-13 01:24:03 -0700110 }
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +0000111 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000112 'conditions': [
113 ['OS=="win"', {
114 'defines': ['WEBRTC_DRIFT_COMPENSATION_SUPPORTED',],
115 }],
116 ['include_tests==1', {
117 'targets': [
118 {
119 'target_name': 'voice_engine_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000120 'type': '<(gtest_target_type)',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000121 'dependencies': [
122 'voice_engine',
Jelena Marusic06b08af2015-04-21 11:39:57 +0200123 '<(DEPTH)/testing/gmock.gyp:gmock',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000124 '<(DEPTH)/testing/gtest.gyp:gtest',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000125 # The rest are to satisfy the unittests' include chain.
126 # This would be unnecessary if we used qualified includes.
127 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
128 '<(webrtc_root)/modules/modules.gyp:audio_device',
129 '<(webrtc_root)/modules/modules.gyp:audio_processing',
130 '<(webrtc_root)/modules/modules.gyp:audio_coding_module',
131 '<(webrtc_root)/modules/modules.gyp:audio_conference_mixer',
132 '<(webrtc_root)/modules/modules.gyp:media_file',
133 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
134 '<(webrtc_root)/modules/modules.gyp:webrtc_utility',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000135 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000136 '<(webrtc_root)/test/test.gyp:test_support_main',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000137 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000138 'sources': [
139 'channel_unittest.cc',
minyue@webrtc.org74aaf292014-07-16 21:28:26 +0000140 'network_predictor_unittest.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000141 'transmit_mixer_unittest.cc',
andrew@webrtc.orga78a41f2014-04-08 23:09:28 +0000142 'utility_unittest.cc',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000143 'voe_audio_processing_unittest.cc',
144 'voe_base_unittest.cc',
145 'voe_codec_unittest.cc',
Jelena Marusic46bd31b2015-04-30 10:57:10 +0200146 'voe_network_unittest.cc',
147 'voice_engine_fixture.cc',
148 'voice_engine_fixture.h',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000149 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000150 'conditions': [
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000151 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000152 'dependencies': [
153 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
154 ],
155 }],
156 ],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000157 },
158 {
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000159 # command line test that should work on linux/mac/win
160 'target_name': 'voe_cmd_test',
161 'type': 'executable',
162 'dependencies': [
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000163 'voice_engine',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000164 '<(DEPTH)/testing/gtest.gyp:gtest',
minyue@webrtc.orgcc92e002013-09-30 08:43:50 +0000165 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000166 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
167 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
solenberg07d9e542016-09-13 01:24:03 -0700168 '<(webrtc_root)/test/test.gyp:channel_transport',
kjellander@webrtc.org6c35e0b2013-06-11 08:29:17 +0000169 '<(webrtc_root)/test/test.gyp:test_support',
ivocb04965c2015-09-09 00:09:43 -0700170 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000171 ],
172 'sources': [
173 'test/cmd_test/voe_cmd_test.cc',
174 ],
175 },
176 ], # targets
177 'conditions': [
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100178 ['OS!="ios"', {
179 'targets': [
180 {
181 'target_name': 'voe_auto_test',
182 'type': 'executable',
183 'dependencies': [
184 'voice_engine',
185 '<(DEPTH)/testing/gmock.gyp:gmock',
186 '<(DEPTH)/testing/gtest.gyp:gtest',
187 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
188 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
189 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
solenberg07d9e542016-09-13 01:24:03 -0700190 '<(webrtc_root)/test/test.gyp:channel_transport',
kjellander0e739342016-03-02 10:46:17 -0800191 '<(webrtc_root)/test/test.gyp:test_common',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100192 '<(webrtc_root)/test/test.gyp:test_support',
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100193 '<(webrtc_root)/webrtc.gyp:rtc_event_log',
194 ],
195 'sources': [
196 'test/auto_test/automated_mode.cc',
197 'test/auto_test/extended/agc_config_test.cc',
198 'test/auto_test/extended/ec_metrics_test.cc',
199 'test/auto_test/fakes/conference_transport.cc',
200 'test/auto_test/fakes/conference_transport.h',
201 'test/auto_test/fakes/loudest_filter.cc',
202 'test/auto_test/fakes/loudest_filter.h',
203 'test/auto_test/fixtures/after_initialization_fixture.cc',
204 'test/auto_test/fixtures/after_initialization_fixture.h',
205 'test/auto_test/fixtures/after_streaming_fixture.cc',
206 'test/auto_test/fixtures/after_streaming_fixture.h',
207 'test/auto_test/fixtures/before_initialization_fixture.cc',
208 'test/auto_test/fixtures/before_initialization_fixture.h',
209 'test/auto_test/fixtures/before_streaming_fixture.cc',
210 'test/auto_test/fixtures/before_streaming_fixture.h',
211 'test/auto_test/standard/audio_processing_test.cc',
212 'test/auto_test/standard/codec_before_streaming_test.cc',
213 'test/auto_test/standard/codec_test.cc',
214 'test/auto_test/standard/dtmf_test.cc',
215 'test/auto_test/standard/external_media_test.cc',
216 'test/auto_test/standard/file_before_streaming_test.cc',
217 'test/auto_test/standard/file_test.cc',
218 'test/auto_test/standard/hardware_before_initializing_test.cc',
219 'test/auto_test/standard/hardware_before_streaming_test.cc',
220 'test/auto_test/standard/hardware_test.cc',
221 'test/auto_test/standard/mixing_test.cc',
222 'test/auto_test/standard/neteq_stats_test.cc',
223 'test/auto_test/standard/rtp_rtcp_before_streaming_test.cc',
224 'test/auto_test/standard/rtp_rtcp_extensions.cc',
225 'test/auto_test/standard/rtp_rtcp_test.cc',
226 'test/auto_test/standard/voe_base_misc_test.cc',
227 'test/auto_test/standard/video_sync_test.cc',
228 'test/auto_test/standard/volume_test.cc',
229 'test/auto_test/resource_manager.cc',
230 'test/auto_test/voe_conference_test.cc',
231 'test/auto_test/voe_cpu_test.cc',
232 'test/auto_test/voe_cpu_test.h',
233 'test/auto_test/voe_output_test.cc',
234 'test/auto_test/voe_standard_test.cc',
235 'test/auto_test/voe_standard_test.h',
236 'test/auto_test/voe_stress_test.cc',
237 'test/auto_test/voe_stress_test.h',
238 'test/auto_test/voe_test_defines.h',
239 'test/auto_test/voe_test_interface.h',
240 ],
241 'conditions': [
242 ['OS=="android"', {
243 # some tests are not supported on android yet, exclude these tests.
244 'sources!': [
245 'test/auto_test/standard/hardware_before_streaming_test.cc',
246 ],
247 }],
248 ['enable_protobuf==1', {
249 'defines': [
250 'ENABLE_RTC_EVENT_LOG',
251 ],
252 }],
253 ],
254 # Disable warnings to enable Win64 build, issue 1323.
255 'msvs_disabled_warnings': [
256 4267, # size_t to int truncation.
257 ],
258 },
259 ],
260 }],
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +0000261 ['OS=="android"', {
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000262 'targets': [
263 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000264 'target_name': 'voice_engine_unittests_apk_target',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000265 'type': 'none',
266 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700267 '<(android_tests_path):voice_engine_unittests_apk',
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000268 ],
269 },
270 ],
kjellandere532aec2016-04-17 20:08:20 -0700271 'conditions': [
272 ['test_isolation_mode != "noop"',
273 {
274 'targets': [
275 {
276 'target_name': 'voice_engine_unittests_apk_run',
277 'type': 'none',
278 'dependencies': [
kjellander208d1982016-05-31 04:01:38 -0700279 '<(android_tests_path):voice_engine_unittests_apk',
kjellandere532aec2016-04-17 20:08:20 -0700280 ],
281 'includes': [
282 '../build/isolate.gypi',
283 ],
284 'sources': [
285 'voice_engine_unittests_apk.isolate',
286 ],
287 },
288 ],
289 },
290 ],
291 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +0000292 }],
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000293 ['test_isolation_mode != "noop"', {
294 'targets': [
295 {
296 'target_name': 'voice_engine_unittests_run',
297 'type': 'none',
298 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000299 'voice_engine_unittests',
300 ],
301 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000302 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000303 ],
304 'sources': [
305 'voice_engine_unittests.isolate',
306 ],
307 },
308 {
309 'target_name': 'voe_auto_test_run',
310 'type': 'none',
311 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000312 'voe_auto_test',
313 ],
314 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:16 +0000315 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:00 +0000316 ],
317 'sources': [
318 'voe_auto_test.isolate',
319 ],
320 },
321 ],
322 }],
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000323 ], # conditions
kjellander@webrtc.orgf22695c2015-11-19 15:39:29 +0100324 }], # include_tests==1
andrew@webrtc.orgf791b1c2013-05-29 00:38:02 +0000325 ], # conditions
xians@google.comd3185fe2011-09-12 12:24:39 +0000326}