blob: 85bb088c58c2ff1c456887e80326c7d1bb4c0bb7 [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 ],
25 'dependencies': [
26 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org023b1012014-05-13 11:26:40 +000027 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000028 'test/webrtc_test_common.gyp:webrtc_test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +000029 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
pbos@webrtc.org16e03b72013-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.org5ab75672013-12-16 12:24:44 +000037 'video/bitrate_estimator_tests.cc',
pbos@webrtc.orgc49d5b72013-12-05 12:11:47 +000038 'video/call_tests.cc',
sprang@webrtc.orgccd42842014-01-07 09:54:34 +000039 'video/send_statistics_proxy_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000040 'video/video_send_stream_tests.cc',
pbos@webrtc.orgc49d5b72013-12-05 12:11:47 +000041 'test/common_unittest.cc',
pbos@webrtc.org0a222eb2013-12-13 14:31:47 +000042 'test/testsupport/metrics/video_metrics_unittest.cc',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000043 ],
44 'dependencies': [
45 '<(DEPTH)/testing/gtest.gyp:gtest',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000046 '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',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +000049 'test/test.gyp:test_main',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000050 'webrtc',
51 ],
fischman@webrtc.org033aa222014-05-27 18:44:59 +000052 'conditions': [
53 # TODO(henrike): remove build_with_chromium==1 when the bots are
54 # using Chromium's buildbots.
55 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
56 'dependencies': [
57 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
58 ],
59 }],
60 ],
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000061 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +000062 {
63 'target_name': 'webrtc_perf_tests',
64 'type': '<(gtest_target_type)',
65 'sources': [
henrik.lundin@webrtc.org1b9df052014-05-28 07:33:39 +000066 'modules/audio_coding/neteq4/test/neteq_performance_unittest.cc',
pbos@webrtc.org1d096902013-12-13 12:48:05 +000067 'video/call_perf_tests.cc',
68 'video/full_stack.cc',
69 'video/rampup_tests.cc',
70 ],
71 'dependencies': [
72 '<(DEPTH)/testing/gtest.gyp:gtest',
henrik.lundin@webrtc.orgd57b8142014-04-24 13:19:04 +000073 'modules/modules.gyp:neteq_test_support', # Needed by neteq_performance_unittest.
pbos@webrtc.org1d096902013-12-13 12:48:05 +000074 'modules/modules.gyp:rtp_rtcp',
75 'test/webrtc_test_common.gyp:webrtc_test_common',
andresp@webrtc.orga36ad692014-05-14 12:24:04 +000076 'test/test.gyp:test_main',
pbos@webrtc.org1d096902013-12-13 12:48:05 +000077 'webrtc',
78 ],
pbos@webrtc.orgb4e3c252014-05-30 12:42:10 +000079 'conditions': [
80 # TODO(henrike): remove build_with_chromium==1 when the bots are
81 # using Chromium's buildbots.
82 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
83 'dependencies': [
84 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
85 ],
86 }],
87 ],
pbos@webrtc.org1d096902013-12-13 12:48:05 +000088 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +000089 ],
90 'conditions': [
91 # TODO(henrike): remove build_with_chromium==1 when the bots are using
92 # Chromium's buildbots.
93 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
94 'targets': [
95 {
96 'target_name': 'video_engine_tests_apk_target',
97 'type': 'none',
98 'dependencies': [
99 '<(apk_tests_path):video_engine_tests_apk',
100 ],
101 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000102 {
103 'target_name': 'webrtc_perf_tests_apk_target',
104 'type': 'none',
105 'dependencies': [
106 '<(apk_tests_path):webrtc_perf_tests_apk',
107 ],
108 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000109 ],
110 }],
111 ['test_isolation_mode != "noop"', {
112 'targets': [
113 {
114 'target_name': 'video_engine_tests_run',
115 'type': 'none',
116 'dependencies': [
117 'video_engine_tests',
118 ],
119 'includes': [
pbos@webrtc.org0803c032013-10-28 18:10:29 +0000120 'build/isolate.gypi',
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000121 'video_engine_tests.isolate',
122 ],
123 'sources': [
124 'video_engine_tests.isolate',
125 ],
126 },
pbos@webrtc.org1d096902013-12-13 12:48:05 +0000127 {
128 'target_name': 'webrtc_perf_tests_run',
129 'type': 'none',
130 'dependencies': [
131 'webrtc_perf_tests',
132 ],
133 'includes': [
134 'build/isolate.gypi',
135 'webrtc_perf_tests.isolate',
136 ],
137 'sources': [
138 'webrtc_perf_tests.isolate',
139 ],
140 },
pbos@webrtc.org16e03b72013-10-28 16:32:01 +0000141 ],
142 }],
143 ],
144}