blob: 229f7b656554aaf9ec7b181f055661015bf3d77f [file] [log] [blame]
pbos@webrtc.org24e20892013-10-28 16:32:011# Copyright (c) 2013 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 'targets': [
10 {
henrike@webrtc.org51b64e42014-09-10 17:28:1911 'target_name': 'rtc_unittests',
kjellander@webrtc.orgb4d93a72015-03-04 08:47:3912 'type': '<(gtest_target_type)',
henrike@webrtc.org51b64e42014-09-10 17:28:1913 'dependencies': [
14 'base/base.gyp:rtc_base',
15 'base/base_tests.gyp:rtc_base_tests_utils',
16 'base/base_tests.gyp:rtc_base_tests',
henrike@webrtc.orgbe9a70f2014-10-02 18:43:4717 'libjingle/xmllite/xmllite.gyp:rtc_xmllite',
henrike@webrtc.org1a02faa2014-10-28 22:20:1118 'libjingle/xmpp/xmpp.gyp:rtc_xmpp',
19 'p2p/p2p.gyp:rtc_p2p',
Guo-wei Shiehf0bd1342015-05-15 17:26:5220 'p2p/p2p.gyp:libstunprober',
kjellandere1e16f02016-03-31 14:23:4921 'p2p/p2p.gyp:rtc_p2p_unittest',
22 'libjingle/xmllite/xmllite.gyp:rtc_xmllite_unittest',
23 'libjingle/xmpp/xmpp.gyp:rtc_xmpp_unittest',
henrike@webrtc.org51b64e42014-09-10 17:28:1924 '<(DEPTH)/testing/gtest.gyp:gtest',
Guo-wei Shiehf0bd1342015-05-15 17:26:5225 '<(DEPTH)/testing/gmock.gyp:gmock',
henrike@webrtc.org51b64e42014-09-10 17:28:1926 ],
kjellander@webrtc.orgb4d93a72015-03-04 08:47:3927 'conditions': [
28 ['OS=="android"', {
29 'dependencies': [
30 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
31 ],
32 }],
hjonda830202015-12-14 03:58:1133 ['OS=="ios"', {
34 'dependencies': [
tkchin6ca529d2016-01-28 01:50:1135 'api/api_tests.gyp:rtc_api_objc_tests',
hjonda830202015-12-14 03:58:1136 ]
37 }]
kjellander@webrtc.orgb4d93a72015-03-04 08:47:3938 ],
henrike@webrtc.org51b64e42014-09-10 17:28:1939 },
40 {
pbos@webrtc.org24e20892013-10-28 16:32:0141 'target_name': 'webrtc_tests',
42 'type': 'none',
43 'dependencies': [
44 'video_engine_tests',
45 'video_loopback',
pbos@webrtc.orgac772a42014-08-06 16:26:5646 'video_replay',
pbos@webrtc.orgf94ccd42013-12-13 12:48:0547 'webrtc_perf_tests',
Peter Boström54ad7e02015-10-29 11:41:5648 'webrtc_nonparallel_tests',
pbos@webrtc.org24e20892013-10-28 16:32:0149 ],
50 },
51 {
ivicada8e7c92015-09-17 12:30:2452 'target_name': 'video_quality_test',
sprang@webrtc.org5fbd9402015-02-18 12:46:0653 'type': 'static_library',
54 'sources': [
ivicada8e7c92015-09-17 12:30:2455 'video/video_quality_test.cc',
56 'video/video_quality_test.h',
sprang@webrtc.org5fbd9402015-02-18 12:46:0657 ],
58 'dependencies': [
59 '<(DEPTH)/testing/gtest.gyp:gtest',
sprang@webrtc.org5fbd9402015-02-18 12:46:0660 '<(webrtc_root)/modules/modules.gyp:video_render',
ivicada8e7c92015-09-17 12:30:2461 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
sprang@webrtc.org5fbd9402015-02-18 12:46:0662 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
63 'webrtc',
64 ],
ivicada8e7c92015-09-17 12:30:2465 'conditions': [
66 ['OS=="android"', {
67 'dependencies!': [
68 '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
69 ],
70 }],
71 ],
sprang@webrtc.org5fbd9402015-02-18 12:46:0672 },
73 {
pbos@webrtc.org24e20892013-10-28 16:32:0174 'target_name': 'video_loopback',
75 'type': 'executable',
76 'sources': [
mflodman@webrtc.org59a001f2014-06-05 09:32:5177 'test/mac/run_test.mm',
78 'test/run_test.cc',
79 'test/run_test.h',
sprang@webrtc.org5fbd9402015-02-18 12:46:0680 'video/video_loopback.cc',
pbos@webrtc.org24e20892013-10-28 16:32:0181 ],
mflodman@webrtc.org59a001f2014-06-05 09:32:5182 'conditions': [
83 ['OS=="mac"', {
84 'sources!': [
85 'test/run_test.cc',
86 ],
87 }],
88 ],
pbos@webrtc.org24e20892013-10-28 16:32:0189 'dependencies': [
ivicada8e7c92015-09-17 12:30:2490 'video_quality_test',
pbos@webrtc.org24e20892013-10-28 16:32:0191 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org11de5072014-05-13 11:26:4092 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander4bd2aae2016-03-02 18:46:1793 'test/test.gyp:test_common',
sprang@webrtc.org5fbd9402015-02-18 12:46:0694 'test/test.gyp:test_main',
kjellander4bd2aae2016-03-02 18:46:1795 'test/test.gyp:test_renderer',
sprang@webrtc.org5fbd9402015-02-18 12:46:0696 'webrtc',
97 ],
98 },
Peter Boströmd5d98ba2015-06-26 04:58:1699 {
sprang@webrtc.org5fbd9402015-02-18 12:46:06100 'target_name': 'screenshare_loopback',
101 'type': 'executable',
102 'sources': [
103 'test/mac/run_test.mm',
104 'test/run_test.cc',
105 'test/run_test.h',
106 'video/screenshare_loopback.cc',
107 ],
108 'conditions': [
109 ['OS=="mac"', {
110 'sources!': [
111 'test/run_test.cc',
112 ],
113 }],
114 ],
115 'dependencies': [
ivicada8e7c92015-09-17 12:30:24116 'video_quality_test',
sprang@webrtc.org5fbd9402015-02-18 12:46:06117 '<(DEPTH)/testing/gtest.gyp:gtest',
118 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander4bd2aae2016-03-02 18:46:17119 'test/test.gyp:test_common',
stefan@webrtc.org8d281582014-11-04 14:57:14120 'test/test.gyp:test_main',
kjellander4bd2aae2016-03-02 18:46:17121 'test/test.gyp:test_renderer',
pbos@webrtc.org24e20892013-10-28 16:32:01122 'webrtc',
123 ],
124 },
125 {
pbos@webrtc.orgac772a42014-08-06 16:26:56126 'target_name': 'video_replay',
127 'type': 'executable',
128 'sources': [
129 'test/mac/run_test.mm',
130 'test/run_test.cc',
131 'test/run_test.h',
132 'video/replay.cc',
133 ],
134 'conditions': [
135 ['OS=="mac"', {
136 'sources!': [
137 'test/run_test.cc',
138 ],
139 }],
140 ],
141 'dependencies': [
142 '<(DEPTH)/testing/gtest.gyp:gtest',
143 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
kjellander4bd2aae2016-03-02 18:46:17144 'test/test.gyp:test_common',
145 'test/test.gyp:test_renderer',
kjellander@webrtc.org12971d42015-02-11 07:47:00146 '<(webrtc_root)/modules/modules.gyp:video_capture',
147 '<(webrtc_root)/modules/modules.gyp:video_render',
andresp@webrtc.org20349b92015-01-14 09:30:52148 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
pbos@webrtc.orgac772a42014-08-06 16:26:56149 'webrtc',
150 ],
151 },
152 {
solenbergf707c682015-10-16 21:35:07153 # TODO(solenberg): Rename to webrtc_call_tests.
pbos@webrtc.org24e20892013-10-28 16:32:01154 'target_name': 'video_engine_tests',
155 'type': '<(gtest_target_type)',
156 'sources': [
Peter Boströmbf9f73c2015-09-25 11:58:30157 'audio/audio_receive_stream_unittest.cc',
solenbergf707c682015-10-16 21:35:07158 'audio/audio_send_stream_unittest.cc',
solenbergb0f22c52015-11-06 23:34:49159 'audio/audio_state_unittest.cc',
mflodman1b78cc32015-11-13 05:02:42160 'call/bitrate_allocator_unittest.cc',
Peter Boströmbf9f73c2015-09-25 11:58:30161 'call/bitrate_estimator_tests.cc',
solenbergf707c682015-10-16 21:35:07162 'call/call_unittest.cc',
Peter Boströmbf9f73c2015-09-25 11:58:30163 'call/packet_injection_tests.cc',
kjellander@webrtc.org6ae75ba2015-01-29 14:29:45164 'test/common_unittest.cc',
165 'test/testsupport/metrics/video_metrics_unittest.cc',
Peter Boströme8f07352015-12-09 11:13:30166 'video/call_stats_unittest.cc',
167 'video/encoder_state_feedback_unittest.cc',
pbos@webrtc.orgeb67a6b2014-06-27 08:47:52168 'video/end_to_end_tests.cc',
Peter Boströme8f07352015-12-09 11:13:30169 'video/overuse_frame_detector_unittest.cc',
170 'video/payload_router_unittest.cc',
171 'video/report_block_stats_unittest.cc',
sprang@webrtc.org49812e62014-01-07 09:54:34172 'video/send_statistics_proxy_unittest.cc',
Peter Boströme8f07352015-12-09 11:13:30173 'video/stream_synchronization_unittest.cc',
Peter Boströmd5d98ba2015-06-26 04:58:16174 'video/video_capture_input_unittest.cc',
Peter Boström5691fcf2015-05-18 17:42:03175 'video/video_decoder_unittest.cc',
Peter Boström6859ada2015-05-19 21:09:35176 'video/video_encoder_unittest.cc',
pbos@webrtc.org24e20892013-10-28 16:32:01177 'video/video_send_stream_tests.cc',
Peter Boströme8f07352015-12-09 11:13:30178 'video/vie_remb_unittest.cc',
pbos@webrtc.org24e20892013-10-28 16:32:01179 ],
180 'dependencies': [
pbos@webrtc.org3b44b3c2014-12-16 14:48:47181 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.org24e20892013-10-28 16:32:01182 '<(DEPTH)/testing/gtest.gyp:gtest',
kwiberg@webrtc.orgc4e2cd02015-02-26 13:59:22183 '<(webrtc_root)/common.gyp:webrtc_common',
andresp@webrtc.org0ab271b2014-09-18 08:58:15184 '<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
kjellander@webrtc.org12971d42015-02-11 07:47:00185 '<(webrtc_root)/modules/modules.gyp:video_capture',
186 '<(webrtc_root)/modules/modules.gyp:video_render',
pbos@webrtc.org3b44b3c2014-12-16 14:48:47187 '<(webrtc_root)/test/test.gyp:channel_transport',
188 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
pbos@webrtc.orgf64791e2013-12-13 14:31:47189 'test/metrics.gyp:metrics',
kjellander4bd2aae2016-03-02 18:46:17190 'test/test.gyp:test_common',
andresp@webrtc.org0b8a1c42014-05-14 12:24:04191 'test/test.gyp:test_main',
pbos@webrtc.org24e20892013-10-28 16:32:01192 'webrtc',
193 ],
fischman@webrtc.org487dfb02014-05-27 18:44:59194 'conditions': [
hbos65451ba2016-01-27 09:36:03195 ['rtc_use_h264==1', {
196 'defines': [
197 'WEBRTC_END_TO_END_H264_TESTS',
198 ],
199 }],
kjellander@webrtc.org606c1cd2014-09-02 08:40:39200 ['OS=="android"', {
fischman@webrtc.org487dfb02014-05-27 18:44:59201 'dependencies': [
202 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
203 ],
204 }],
kjellanderc9c53c42016-02-17 06:06:12205 ['OS=="ios"', {
206 'mac_bundle_resources': [
207 '<(DEPTH)/resources/foreman_cif_short.yuv',
208 '<(DEPTH)/resources/voice_engine/audio_long16.pcm',
209 ],
210 }],
Bjorn Tereliusbd3fce52015-07-30 10:45:18211 ['enable_protobuf==1', {
212 'defines': [
213 'ENABLE_RTC_EVENT_LOG',
214 ],
215 'dependencies': [
216 'webrtc.gyp:rtc_event_log',
217 'webrtc.gyp:rtc_event_log_proto',
218 ],
219 'sources': [
Peter Boströmbf9f73c2015-09-25 11:58:30220 'call/rtc_event_log_unittest.cc',
Bjorn Tereliusbd3fce52015-07-30 10:45:18221 ],
222 }],
fischman@webrtc.org487dfb02014-05-27 18:44:59223 ],
pbos@webrtc.org24e20892013-10-28 16:32:01224 },
pbos@webrtc.orgf94ccd42013-12-13 12:48:05225 {
226 'target_name': 'webrtc_perf_tests',
227 'type': '<(gtest_target_type)',
228 'sources': [
Peter Boströmbf9f73c2015-09-25 11:58:30229 'call/call_perf_tests.cc',
stefan19cc2832015-12-21 11:14:00230 'call/rampup_tests.cc',
231 'call/rampup_tests.h',
henrik.lundin@webrtc.orge5abc852014-06-09 08:10:28232 'modules/audio_coding/neteq/test/neteq_performance_unittest.cc',
peah33ae23e2015-12-21 07:13:40233 'modules/audio_processing/audio_processing_performance_unittest.cc',
Stefan Holmere38f07f2015-04-16 18:20:36234 'modules/remote_bitrate_estimator/remote_bitrate_estimators_test.cc',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05235 'video/full_stack.cc',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05236 ],
237 'dependencies': [
pbos@webrtc.org3b44b3c2014-12-16 14:48:47238 '<(DEPTH)/testing/gmock.gyp:gmock',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05239 '<(DEPTH)/testing/gtest.gyp:gtest',
peah33ae23e2015-12-21 07:13:40240 '<(webrtc_root)/modules/modules.gyp:audio_processing',
241 '<(webrtc_root)/modules/modules.gyp:audioproc_test_utils',
kjellander@webrtc.org12971d42015-02-11 07:47:00242 '<(webrtc_root)/modules/modules.gyp:video_capture',
pbos@webrtc.org3b44b3c2014-12-16 14:48:47243 '<(webrtc_root)/test/test.gyp:channel_transport',
244 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
ivicada8e7c92015-09-17 12:30:24245 'video_quality_test',
Stefan Holmere38f07f2015-04-16 18:20:36246 'modules/modules.gyp:neteq_test_support',
247 'modules/modules.gyp:bwe_simulator',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05248 'modules/modules.gyp:rtp_rtcp',
kjellander4bd2aae2016-03-02 18:46:17249 'test/test.gyp:test_common',
andresp@webrtc.org0b8a1c42014-05-14 12:24:04250 'test/test.gyp:test_main',
kjellander4bd2aae2016-03-02 18:46:17251 'test/test.gyp:test_renderer',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05252 'webrtc',
253 ],
pbos@webrtc.org858611f2014-05-30 12:42:10254 'conditions': [
kjellander@webrtc.orgb9d6b2b2014-09-01 11:06:37255 ['OS=="android"', {
pbos@webrtc.org858611f2014-05-30 12:42:10256 'dependencies': [
257 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
258 ],
259 }],
260 ],
pbos@webrtc.orgf94ccd42013-12-13 12:48:05261 },
Peter Boström54ad7e02015-10-29 11:41:56262 {
263 'target_name': 'webrtc_nonparallel_tests',
264 'type': '<(gtest_target_type)',
265 'sources': [
266 'base/nullsocketserver_unittest.cc',
267 'base/physicalsocketserver_unittest.cc',
268 'base/socket_unittest.cc',
269 'base/socket_unittest.h',
270 'base/socketaddress_unittest.cc',
271 'base/virtualsocket_unittest.cc',
272 ],
273 'defines': [
274 'GTEST_RELATIVE_PATH',
275 ],
276 'dependencies': [
277 '<(DEPTH)/testing/gtest.gyp:gtest',
278 'base/base.gyp:rtc_base',
279 'test/test.gyp:test_main',
280 ],
281 'conditions': [
282 ['OS=="android"', {
283 'dependencies': [
284 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
285 ],
286 }],
287 ['OS=="win"', {
288 'sources': [
289 'base/win32socketserver_unittest.cc',
290 ],
291 'sources!': [
292 # TODO(ronghuawu): Fix TestUdpReadyToSendIPv6 on windows bot
293 # then reenable these tests.
294 # TODO(pbos): Move test disabling to ifdefs within the test files
295 # instead of here.
296 'base/physicalsocketserver_unittest.cc',
297 'base/socket_unittest.cc',
298 'base/win32socketserver_unittest.cc',
299 ],
300 }],
301 ['OS=="mac"', {
302 'sources': [
303 'base/macsocketserver_unittest.cc',
304 ],
305 }],
306 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
307 'defines': [
308 'CARBON_DEPRECATED=YES',
309 ],
310 }],
311 ],
312 },
pbos@webrtc.org24e20892013-10-28 16:32:01313 ],
314 'conditions': [
kjellander@webrtc.orgb9d6b2b2014-09-01 11:06:37315 ['OS=="android"', {
pbos@webrtc.org24e20892013-10-28 16:32:01316 'targets': [
317 {
kjellander@webrtc.orgb4d93a72015-03-04 08:47:39318 'target_name': 'rtc_unittests_apk_target',
319 'type': 'none',
320 'dependencies': [
321 '<(apk_tests_path):rtc_unittests_apk',
322 ],
323 },
324 {
kjellander@webrtc.org51917302014-09-03 14:34:46325 'target_name': 'video_engine_tests_apk_target',
pbos@webrtc.org24e20892013-10-28 16:32:01326 'type': 'none',
327 'dependencies': [
kjellander@webrtc.org51917302014-09-03 14:34:46328 '<(apk_tests_path):video_engine_tests_apk',
pbos@webrtc.org24e20892013-10-28 16:32:01329 ],
330 },
pbos@webrtc.orgf94ccd42013-12-13 12:48:05331 {
kjellander@webrtc.org51917302014-09-03 14:34:46332 'target_name': 'webrtc_perf_tests_apk_target',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05333 'type': 'none',
334 'dependencies': [
kjellander@webrtc.org51917302014-09-03 14:34:46335 '<(apk_tests_path):webrtc_perf_tests_apk',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05336 ],
337 },
Peter Boström54ad7e02015-10-29 11:41:56338 {
339 'target_name': 'webrtc_nonparallel_tests_apk_target',
340 'type': 'none',
341 'dependencies': [
342 '<(apk_tests_path):webrtc_nonparallel_tests_apk',
343 ],
344 },
pbos@webrtc.org24e20892013-10-28 16:32:01345 ],
kjellander60cf4212016-04-18 03:08:20346 'conditions': [
347 ['test_isolation_mode != "noop"',
348 {
349 'targets': [
350 {
351 'target_name': 'rtc_unittests_apk_run',
352 'type': 'none',
353 'dependencies': [
354 '<(apk_tests_path):rtc_unittests_apk',
355 ],
356 'includes': [
357 'build/isolate.gypi',
358 ],
359 'sources': [
360 'rtc_unittests_apk.isolate',
361 ],
362 },
363 {
364 'target_name': 'video_engine_tests_apk_run',
365 'type': 'none',
366 'dependencies': [
367 '<(apk_tests_path):video_engine_tests_apk',
368 ],
369 'includes': [
370 'build/isolate.gypi',
371 ],
372 'sources': [
373 'video_engine_tests_apk.isolate',
374 ],
375 },
376 {
377 'target_name': 'webrtc_perf_tests_apk_run',
378 'type': 'none',
379 'dependencies': [
380 '<(apk_tests_path):webrtc_perf_tests_apk',
381 ],
382 'includes': [
383 'build/isolate.gypi',
384 ],
385 'sources': [
386 'webrtc_perf_tests_apk.isolate',
387 ],
388 },
389 {
390 'target_name': 'webrtc_nonparallel_tests_apk_run',
391 'type': 'none',
392 'dependencies': [
393 '<(apk_tests_path):webrtc_nonparallel_tests_apk',
394 ],
395 'includes': [
396 'build/isolate.gypi',
397 ],
398 'sources': [
399 'webrtc_nonparallel_tests_apk.isolate',
400 ],
401 },
402 ],
403 },
404 ],
405 ],
pbos@webrtc.org24e20892013-10-28 16:32:01406 }],
407 ['test_isolation_mode != "noop"', {
408 'targets': [
409 {
henrike@webrtc.org309cc9c2014-09-30 14:21:10410 'target_name': 'rtc_unittests_run',
411 'type': 'none',
412 'dependencies': [
413 'rtc_unittests',
414 ],
415 'includes': [
416 'build/isolate.gypi',
henrike@webrtc.org309cc9c2014-09-30 14:21:10417 ],
418 'sources': [
419 'rtc_unittests.isolate',
420 ],
421 },
422 {
pbos@webrtc.org24e20892013-10-28 16:32:01423 'target_name': 'video_engine_tests_run',
424 'type': 'none',
425 'dependencies': [
426 'video_engine_tests',
427 ],
428 'includes': [
pbos@webrtc.org800bc1a2013-10-28 18:10:29429 'build/isolate.gypi',
pbos@webrtc.org24e20892013-10-28 16:32:01430 ],
431 'sources': [
432 'video_engine_tests.isolate',
433 ],
434 },
pbos@webrtc.orgf94ccd42013-12-13 12:48:05435 {
Peter Boström1e609b82015-10-29 14:29:04436 'target_name': 'webrtc_nonparallel_tests_run',
437 'type': 'none',
438 'dependencies': [
439 'webrtc_nonparallel_tests',
440 ],
441 'includes': [
442 'build/isolate.gypi',
443 ],
444 'sources': [
445 'webrtc_nonparallel_tests.isolate',
446 ],
447 },
448 {
pbos@webrtc.orgf94ccd42013-12-13 12:48:05449 'target_name': 'webrtc_perf_tests_run',
450 'type': 'none',
451 'dependencies': [
452 'webrtc_perf_tests',
453 ],
454 'includes': [
455 'build/isolate.gypi',
pbos@webrtc.orgf94ccd42013-12-13 12:48:05456 ],
457 'sources': [
458 'webrtc_perf_tests.isolate',
459 ],
460 },
pbos@webrtc.org24e20892013-10-28 16:32:01461 ],
462 }],
463 ],
464}