blob: 17ff23ecfbaf3e114ec724466fe17d0d12eea058 [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.orgc49d5b72013-12-05 12:11:47 +000036 'video/call_tests.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000037 'video/video_send_stream_tests.cc',
pbos@webrtc.orgc49d5b72013-12-05 12:11:47 +000038 'test/common_unittest.cc',
pbos@webrtc.org0a222eb2013-12-13 14:31:47 +000039 'test/testsupport/metrics/video_metrics_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000040 'test/test_main.cc',
41 ],
42 'dependencies': [
43 '<(DEPTH)/testing/gtest.gyp:gtest',
44 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
45 'modules/modules.gyp:rtp_rtcp',
pbos@webrtc.org0a222eb2013-12-13 14:31:47 +000046 'test/metrics.gyp:metrics',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000047 'test/webrtc_test_common.gyp:webrtc_test_common',
48 'webrtc',
49 ],
50 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +000051 {
52 'target_name': 'webrtc_perf_tests',
53 'type': '<(gtest_target_type)',
54 'sources': [
55 'test/test_main.cc',
56 'video/call_perf_tests.cc',
57 'video/full_stack.cc',
58 'video/rampup_tests.cc',
59 ],
60 'dependencies': [
61 '<(DEPTH)/testing/gtest.gyp:gtest',
62 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
63 'modules/modules.gyp:rtp_rtcp',
64 'test/webrtc_test_common.gyp:webrtc_test_common',
65 'webrtc',
66 ],
67 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000068 ],
69 'conditions': [
70 # TODO(henrike): remove build_with_chromium==1 when the bots are using
71 # Chromium's buildbots.
72 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
73 'targets': [
74 {
75 'target_name': 'video_engine_tests_apk_target',
76 'type': 'none',
77 'dependencies': [
78 '<(apk_tests_path):video_engine_tests_apk',
79 ],
80 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +000081 {
82 'target_name': 'webrtc_perf_tests_apk_target',
83 'type': 'none',
84 'dependencies': [
85 '<(apk_tests_path):webrtc_perf_tests_apk',
86 ],
87 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000088 ],
89 }],
90 ['test_isolation_mode != "noop"', {
91 'targets': [
92 {
93 'target_name': 'video_engine_tests_run',
94 'type': 'none',
95 'dependencies': [
96 'video_engine_tests',
97 ],
98 'includes': [
pbos@webrtc.org0803c032013-10-28 18:10:29 +000099 'build/isolate.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000100 'video_engine_tests.isolate',
101 ],
102 'sources': [
103 'video_engine_tests.isolate',
104 ],
105 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000106 {
107 'target_name': 'webrtc_perf_tests_run',
108 'type': 'none',
109 'dependencies': [
110 'webrtc_perf_tests',
111 ],
112 'includes': [
113 'build/isolate.gypi',
114 'webrtc_perf_tests.isolate',
115 ],
116 'sources': [
117 'webrtc_perf_tests.isolate',
118 ],
119 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000120 ],
121 }],
122 ],
123}