blob: 31609670539f6d3d23fb057d2f33e1578547b0b9 [file] [log] [blame]
pbos@webrtc.orgb581c902013-10-28 16:32:01 +00001# 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 {
11 'target_name': 'webrtc_tests',
12 'type': 'none',
13 'dependencies': [
14 'video_engine_tests',
15 'video_loopback',
pbos@webrtc.orgd1dd1d22013-12-13 12:48:05 +000016 'webrtc_perf_tests',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000017 ],
18 },
19 {
20 'target_name': 'video_loopback',
21 'type': 'executable',
22 'sources': [
pbos@webrtc.org3d706412013-12-05 12:11:47 +000023 'video/loopback.cc',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000024 ],
25 'dependencies': [
26 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org838c9da2014-05-13 11:26:40 +000027 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000028 'test/webrtc_test_common.gyp:webrtc_test_common',
andresp@webrtc.org11fa3572014-05-14 12:24:04 +000029 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000030 'webrtc',
31 ],
32 },
33 {
34 'target_name': 'video_engine_tests',
35 'type': '<(gtest_target_type)',
36 'sources': [
pbos@webrtc.org39139dc2013-12-16 12:24:44 +000037 'video/bitrate_estimator_tests.cc',
pbos@webrtc.org3d706412013-12-05 12:11:47 +000038 'video/call_tests.cc',
sprang@webrtc.orgca723002014-01-07 09:54:34 +000039 'video/send_statistics_proxy_unittest.cc',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000040 'video/video_send_stream_tests.cc',
pbos@webrtc.org3d706412013-12-05 12:11:47 +000041 'test/common_unittest.cc',
pbos@webrtc.org9d9f1382013-12-13 14:31:47 +000042 'test/testsupport/metrics/video_metrics_unittest.cc',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000043 ],
44 'dependencies': [
45 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000046 'modules/modules.gyp:rtp_rtcp',
pbos@webrtc.org9d9f1382013-12-13 14:31:47 +000047 'test/metrics.gyp:metrics',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000048 'test/webrtc_test_common.gyp:webrtc_test_common',
andresp@webrtc.org11fa3572014-05-14 12:24:04 +000049 'test/test.gyp:test_main',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000050 'webrtc',
51 ],
52 },
pbos@webrtc.orgd1dd1d22013-12-13 12:48:05 +000053 {
54 'target_name': 'webrtc_perf_tests',
55 'type': '<(gtest_target_type)',
56 'sources': [
henrik.lundin@webrtc.org1cc11662014-01-10 08:24:04 +000057 'modules/audio_coding/neteq4/test/neteq_performance_unittest.cc',
pbos@webrtc.orgd1dd1d22013-12-13 12:48:05 +000058 'video/call_perf_tests.cc',
59 'video/full_stack.cc',
60 'video/rampup_tests.cc',
61 ],
62 'dependencies': [
63 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.org86e3fa82014-04-24 13:19:04 +000064 'modules/modules.gyp:neteq_test_support', # Needed by neteq_performance_unittest.
pbos@webrtc.orgd1dd1d22013-12-13 12:48:05 +000065 'modules/modules.gyp:rtp_rtcp',
66 'test/webrtc_test_common.gyp:webrtc_test_common',
andresp@webrtc.org11fa3572014-05-14 12:24:04 +000067 'test/test.gyp:test_main',
pbos@webrtc.orgd1dd1d22013-12-13 12:48:05 +000068 'webrtc',
69 ],
70 },
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000071 ],
72 'conditions': [
73 # TODO(henrike): remove build_with_chromium==1 when the bots are using
74 # Chromium's buildbots.
75 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
76 'targets': [
77 {
78 'target_name': 'video_engine_tests_apk_target',
79 'type': 'none',
80 'dependencies': [
81 '<(apk_tests_path):video_engine_tests_apk',
82 ],
83 },
pbos@webrtc.orgd1dd1d22013-12-13 12:48:05 +000084 {
85 'target_name': 'webrtc_perf_tests_apk_target',
86 'type': 'none',
87 'dependencies': [
88 '<(apk_tests_path):webrtc_perf_tests_apk',
89 ],
90 },
pbos@webrtc.orgb581c902013-10-28 16:32:01 +000091 ],
92 }],
93 ['test_isolation_mode != "noop"', {
94 'targets': [
95 {
96 'target_name': 'video_engine_tests_run',
97 'type': 'none',
98 'dependencies': [
99 'video_engine_tests',
100 ],
101 'includes': [
pbos@webrtc.org56290ed2013-10-28 18:10:29 +0000102 'build/isolate.gypi',
pbos@webrtc.orgb581c902013-10-28 16:32:01 +0000103 'video_engine_tests.isolate',
104 ],
105 'sources': [
106 'video_engine_tests.isolate',
107 ],
108 },
pbos@webrtc.orgd1dd1d22013-12-13 12:48:05 +0000109 {
110 'target_name': 'webrtc_perf_tests_run',
111 'type': 'none',
112 'dependencies': [
113 'webrtc_perf_tests',
114 ],
115 'includes': [
116 'build/isolate.gypi',
117 'webrtc_perf_tests.isolate',
118 ],
119 'sources': [
120 'webrtc_perf_tests.isolate',
121 ],
122 },
pbos@webrtc.orgb581c902013-10-28 16:32:01 +0000123 ],
124 }],
125 ],
126}