blob: 0d2b30ee1842e7df503c1fae1a414b556306ef08 [file] [log] [blame]
pbos@webrtc.org16e03b72013-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.org1d096902013-12-13 12:48:05 +000016 'webrtc_perf_tests',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000017 ],
18 },
19 {
20 'target_name': 'video_loopback',
21 'type': 'executable',
22 'sources': [
pbos@webrtc.orgc49d5b72013-12-05 12:11:47 +000023 'video/loopback.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000024 'test/test_main.cc',
25 ],
26 'dependencies': [
27 '<(DEPTH)/testing/gtest.gyp:gtest',
28 'test/webrtc_test_common.gyp:webrtc_test_common',
29 'webrtc',
30 ],
31 },
32 {
33 'target_name': 'video_engine_tests',
34 'type': '<(gtest_target_type)',
35 'sources': [
pbos@webrtc.org5ab75672013-12-16 12:24:44 +000036 'video/bitrate_estimator_tests.cc',
pbos@webrtc.orgc49d5b72013-12-05 12:11:47 +000037 'video/call_tests.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000038 'video/video_send_stream_tests.cc',
pbos@webrtc.orgc49d5b72013-12-05 12:11:47 +000039 'test/common_unittest.cc',
pbos@webrtc.org0a222eb2013-12-13 14:31:47 +000040 'test/testsupport/metrics/video_metrics_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000041 'test/test_main.cc',
42 ],
43 'dependencies': [
44 '<(DEPTH)/testing/gtest.gyp:gtest',
45 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
46 'modules/modules.gyp:rtp_rtcp',
pbos@webrtc.org0a222eb2013-12-13 14:31:47 +000047 'test/metrics.gyp:metrics',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000048 'test/webrtc_test_common.gyp:webrtc_test_common',
49 'webrtc',
50 ],
51 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +000052 {
53 'target_name': 'webrtc_perf_tests',
54 'type': '<(gtest_target_type)',
55 'sources': [
56 'test/test_main.cc',
57 'video/call_perf_tests.cc',
58 'video/full_stack.cc',
59 'video/rampup_tests.cc',
60 ],
61 'dependencies': [
62 '<(DEPTH)/testing/gtest.gyp:gtest',
63 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
64 'modules/modules.gyp:rtp_rtcp',
65 'test/webrtc_test_common.gyp:webrtc_test_common',
66 'webrtc',
67 ],
68 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000069 ],
70 'conditions': [
71 # TODO(henrike): remove build_with_chromium==1 when the bots are using
72 # Chromium's buildbots.
73 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
74 'targets': [
75 {
76 'target_name': 'video_engine_tests_apk_target',
77 'type': 'none',
78 'dependencies': [
79 '<(apk_tests_path):video_engine_tests_apk',
80 ],
81 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +000082 {
83 'target_name': 'webrtc_perf_tests_apk_target',
84 'type': 'none',
85 'dependencies': [
86 '<(apk_tests_path):webrtc_perf_tests_apk',
87 ],
88 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000089 ],
90 }],
91 ['test_isolation_mode != "noop"', {
92 'targets': [
93 {
94 'target_name': 'video_engine_tests_run',
95 'type': 'none',
96 'dependencies': [
97 'video_engine_tests',
98 ],
99 'includes': [
pbos@webrtc.org0803c032013-10-28 18:10:29 +0000100 'build/isolate.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000101 'video_engine_tests.isolate',
102 ],
103 'sources': [
104 'video_engine_tests.isolate',
105 ],
106 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000107 {
108 'target_name': 'webrtc_perf_tests_run',
109 'type': 'none',
110 'dependencies': [
111 'webrtc_perf_tests',
112 ],
113 'includes': [
114 'build/isolate.gypi',
115 'webrtc_perf_tests.isolate',
116 ],
117 'sources': [
118 'webrtc_perf_tests.isolate',
119 ],
120 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000121 ],
122 }],
123 ],
124}