OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
11 if (is_android) { | 11 if (is_android) { |
12 import("//build/config/android/rules.gni") | 12 import("//build/config/android/rules.gni") |
13 } | 13 } |
| 14 if (rtc_use_memcheck) { |
| 15 import("//tools/valgrind-webrtc/valgrind-webrtc.gni") |
| 16 } |
14 | 17 |
15 group("test") { | 18 group("test") { |
16 testonly = true | 19 testonly = true |
17 | 20 |
18 deps = [ | 21 deps = [ |
19 ":field_trial", | 22 ":field_trial", |
20 ":rtp_test_utils", | 23 ":rtp_test_utils", |
21 ":test_common", | 24 ":test_common", |
22 ":test_renderer", | 25 ":test_renderer", |
23 ":test_support", | 26 ":test_support", |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 configs += [ "//build/config/compiler:enable_arc" ] | 147 configs += [ "//build/config/compiler:enable_arc" ] |
145 } | 148 } |
146 | 149 |
147 if (use_x11) { | 150 if (use_x11) { |
148 deps += [ "//tools/xdisplaycheck" ] | 151 deps += [ "//tools/xdisplaycheck" ] |
149 } | 152 } |
150 | 153 |
151 if (is_android) { | 154 if (is_android) { |
152 deps += [ "//base:base" ] | 155 deps += [ "//base:base" ] |
153 } | 156 } |
| 157 |
| 158 if (rtc_use_memcheck) { |
| 159 data = valgrind_webrtc_dependencies |
| 160 } |
154 } | 161 } |
155 | 162 |
156 # Depend on this target when you want to have test_support but also the | 163 # Depend on this target when you want to have test_support but also the |
157 # main method needed for gtest to execute! | 164 # main method needed for gtest to execute! |
158 rtc_source_set("test_support_main") { | 165 rtc_source_set("test_support_main") { |
159 testonly = true | 166 testonly = true |
160 | 167 |
161 sources = [ | 168 sources = [ |
162 "run_all_unittests.cc", | 169 "run_all_unittests.cc", |
163 "test_suite.cc", | 170 "test_suite.cc", |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 416 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
410 } | 417 } |
411 | 418 |
412 deps = [ | 419 deps = [ |
413 ":test_support", | 420 ":test_support", |
414 ":video_test_common", | 421 ":video_test_common", |
415 "../modules/media_file", | 422 "../modules/media_file", |
416 "//testing/gtest", | 423 "//testing/gtest", |
417 ] | 424 ] |
418 } | 425 } |
OLD | NEW |