blob: d6104b64642bf0d67e13ab5a361ae09095b78961 [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.org16e03b72013-10-28 16:32:01 +000039 'test/test_main.cc',
40 ],
41 'dependencies': [
42 '<(DEPTH)/testing/gtest.gyp:gtest',
43 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
44 'modules/modules.gyp:rtp_rtcp',
45 'test/webrtc_test_common.gyp:webrtc_test_common',
46 'webrtc',
47 ],
48 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +000049 {
50 'target_name': 'webrtc_perf_tests',
51 'type': '<(gtest_target_type)',
52 'sources': [
53 'test/test_main.cc',
54 'video/call_perf_tests.cc',
55 'video/full_stack.cc',
56 'video/rampup_tests.cc',
57 ],
58 'dependencies': [
59 '<(DEPTH)/testing/gtest.gyp:gtest',
60 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
61 'modules/modules.gyp:rtp_rtcp',
62 'test/webrtc_test_common.gyp:webrtc_test_common',
63 'webrtc',
64 ],
65 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000066 ],
67 'conditions': [
68 # TODO(henrike): remove build_with_chromium==1 when the bots are using
69 # Chromium's buildbots.
70 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
71 'targets': [
72 {
73 'target_name': 'video_engine_tests_apk_target',
74 'type': 'none',
75 'dependencies': [
76 '<(apk_tests_path):video_engine_tests_apk',
77 ],
78 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +000079 {
80 'target_name': 'webrtc_perf_tests_apk_target',
81 'type': 'none',
82 'dependencies': [
83 '<(apk_tests_path):webrtc_perf_tests_apk',
84 ],
85 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000086 ],
87 }],
88 ['test_isolation_mode != "noop"', {
89 'targets': [
90 {
91 'target_name': 'video_engine_tests_run',
92 'type': 'none',
93 'dependencies': [
94 'video_engine_tests',
95 ],
96 'includes': [
pbos@webrtc.org0803c032013-10-28 18:10:29 +000097 'build/isolate.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000098 'video_engine_tests.isolate',
99 ],
100 'sources': [
101 'video_engine_tests.isolate',
102 ],
103 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000104 {
105 'target_name': 'webrtc_perf_tests_run',
106 'type': 'none',
107 'dependencies': [
108 'webrtc_perf_tests',
109 ],
110 'includes': [
111 'build/isolate.gypi',
112 'webrtc_perf_tests.isolate',
113 ],
114 'sources': [
115 'webrtc_perf_tests.isolate',
116 ],
117 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000118 ],
119 }],
120 ],
121}