pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 1 | # 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.org | 1d09690 | 2013-12-13 12:48:05 +0000 | [diff] [blame] | 16 | 'webrtc_perf_tests', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 17 | ], |
| 18 | }, |
| 19 | { |
| 20 | 'target_name': 'video_loopback', |
| 21 | 'type': 'executable', |
| 22 | 'sources': [ |
pbos@webrtc.org | c49d5b7 | 2013-12-05 12:11:47 +0000 | [diff] [blame] | 23 | 'video/loopback.cc', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 24 | '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.org | 5ab7567 | 2013-12-16 12:24:44 +0000 | [diff] [blame] | 36 | 'video/bitrate_estimator_tests.cc', |
pbos@webrtc.org | c49d5b7 | 2013-12-05 12:11:47 +0000 | [diff] [blame] | 37 | 'video/call_tests.cc', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 38 | 'video/video_send_stream_tests.cc', |
pbos@webrtc.org | c49d5b7 | 2013-12-05 12:11:47 +0000 | [diff] [blame] | 39 | 'test/common_unittest.cc', |
pbos@webrtc.org | 0a222eb | 2013-12-13 14:31:47 +0000 | [diff] [blame] | 40 | 'test/testsupport/metrics/video_metrics_unittest.cc', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 41 | '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.org | 0a222eb | 2013-12-13 14:31:47 +0000 | [diff] [blame] | 47 | 'test/metrics.gyp:metrics', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 48 | 'test/webrtc_test_common.gyp:webrtc_test_common', |
| 49 | 'webrtc', |
| 50 | ], |
| 51 | }, |
pbos@webrtc.org | 1d09690 | 2013-12-13 12:48:05 +0000 | [diff] [blame] | 52 | { |
| 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.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 69 | ], |
| 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.org | 1d09690 | 2013-12-13 12:48:05 +0000 | [diff] [blame] | 82 | { |
| 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.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 89 | ], |
| 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.org | 0803c03 | 2013-10-28 18:10:29 +0000 | [diff] [blame] | 100 | 'build/isolate.gypi', |
pbos@webrtc.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 101 | 'video_engine_tests.isolate', |
| 102 | ], |
| 103 | 'sources': [ |
| 104 | 'video_engine_tests.isolate', |
| 105 | ], |
| 106 | }, |
pbos@webrtc.org | 1d09690 | 2013-12-13 12:48:05 +0000 | [diff] [blame] | 107 | { |
| 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.org | 16e03b7 | 2013-10-28 16:32:01 +0000 | [diff] [blame] | 121 | ], |
| 122 | }], |
| 123 | ], |
| 124 | } |