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("../webrtc.gni") | 9 import("../webrtc.gni") |
10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
100 "field_trial.h", | 100 "field_trial.h", |
101 ] | 101 ] |
102 | 102 |
103 deps = [ | 103 deps = [ |
104 "..:webrtc_common", | 104 "..:webrtc_common", |
105 "../system_wrappers", | 105 "../system_wrappers", |
106 "../system_wrappers:field_trial_default", | 106 "../system_wrappers:field_trial_default", |
107 ] | 107 ] |
108 } | 108 } |
109 | 109 |
110 if (is_ios) { | |
111 rtc_source_set("test_support_objc") { | |
112 visibility = [ ":*" ] | |
113 sources = [ | |
114 "ios/test_support.h", | |
115 "ios/test_support.mm", | |
116 ] | |
117 } | |
118 } | |
119 | |
110 rtc_source_set("test_support") { | 120 rtc_source_set("test_support") { |
111 testonly = true | 121 testonly = true |
112 | 122 |
113 sources = [ | 123 sources = [ |
114 "gmock.h", | 124 "gmock.h", |
115 "gtest.h", | 125 "gtest.h", |
116 "testsupport/packet_reader.cc", | 126 "testsupport/packet_reader.cc", |
117 "testsupport/packet_reader.h", | 127 "testsupport/packet_reader.h", |
118 "testsupport/perf_test.cc", | 128 "testsupport/perf_test.cc", |
119 "testsupport/perf_test.h", | 129 "testsupport/perf_test.h", |
120 "testsupport/trace_to_stderr.cc", | 130 "testsupport/trace_to_stderr.cc", |
121 "testsupport/trace_to_stderr.h", | 131 "testsupport/trace_to_stderr.h", |
122 "testsupport/unittest_utils.h", | 132 "testsupport/unittest_utils.h", |
123 ] | 133 ] |
124 | 134 |
135 public_deps = [ | |
136 ":fileutils", | |
137 ] | |
125 if (is_ios) { | 138 if (is_ios) { |
126 sources += [ | 139 public_deps += [ ":test_support_objc" ] |
127 "ios/test_support.h", | |
128 "ios/test_support.mm", | |
129 ] | |
130 } | 140 } |
131 | 141 |
132 deps = [ | 142 deps = [ |
133 "..:webrtc_common", | 143 "..:webrtc_common", |
134 "../common_video", | 144 "../common_video", |
135 "../rtc_base:gtest_prod", | 145 "../rtc_base:gtest_prod", |
136 "../rtc_base:rtc_base_approved", | 146 "../rtc_base:rtc_base_approved", |
137 "../system_wrappers", | 147 "../system_wrappers", |
138 "//testing/gmock", | 148 "//testing/gmock", |
139 "//testing/gtest", | 149 "//testing/gtest", |
140 ] | 150 ] |
141 | 151 |
142 public_deps = [ | |
143 ":fileutils", | |
144 ] | |
145 | |
146 if (!build_with_chromium && is_clang) { | 152 if (!build_with_chromium && is_clang) { |
147 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 153 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
148 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 154 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
149 } | 155 } |
150 | 156 |
151 if (is_android) { | 157 if (is_android) { |
152 deps += [ "//base:base" ] | 158 deps += [ "//base:base" ] |
153 } | 159 } |
154 | 160 |
155 if (is_ios && !build_with_chromium) { | 161 if (is_ios && !build_with_chromium) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 "testsupport/frame_writer.h", | 200 "testsupport/frame_writer.h", |
195 "testsupport/metrics/video_metrics.cc", | 201 "testsupport/metrics/video_metrics.cc", |
196 "testsupport/metrics/video_metrics.h", | 202 "testsupport/metrics/video_metrics.h", |
197 "testsupport/mock/mock_frame_reader.h", | 203 "testsupport/mock/mock_frame_reader.h", |
198 "testsupport/mock/mock_frame_writer.h", | 204 "testsupport/mock/mock_frame_writer.h", |
199 "testsupport/y4m_frame_writer.cc", | 205 "testsupport/y4m_frame_writer.cc", |
200 "testsupport/yuv_frame_reader.cc", | 206 "testsupport/yuv_frame_reader.cc", |
201 "testsupport/yuv_frame_writer.cc", | 207 "testsupport/yuv_frame_writer.cc", |
202 ] | 208 ] |
203 | 209 |
210 public_deps = [ | |
211 ":fileutils", | |
212 ] | |
213 | |
204 deps = [ | 214 deps = [ |
205 ":test_support", | 215 ":test_support", |
206 ":video_test_common", | 216 ":video_test_common", |
207 "..:webrtc_common", | 217 "..:webrtc_common", |
208 "../common_video", | 218 "../common_video", |
209 "../rtc_base:rtc_base_approved", | 219 "../rtc_base:rtc_base_approved", |
210 "../system_wrappers", | 220 "../system_wrappers", |
211 "//testing/gmock", | 221 "//testing/gmock", |
212 "//testing/gtest", | 222 "//testing/gtest", |
213 "//third_party/gflags", | 223 "//third_party/gflags", |
214 ] | 224 ] |
215 | 225 |
216 public_deps = [ | |
217 ":fileutils", | |
218 ] | |
219 | |
220 if (!build_with_chromium && is_clang) { | 226 if (!build_with_chromium && is_clang) { |
221 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 227 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
222 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 228 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
223 } | 229 } |
224 | 230 |
225 if (is_android) { | 231 if (is_android) { |
226 deps += [ "//base:base" ] | 232 deps += [ "//base:base" ] |
227 } | 233 } |
228 | 234 |
229 if (is_ios) { | 235 if (is_ios) { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
327 ":video_test_common", | 333 ":video_test_common", |
328 ":video_test_support", | 334 ":video_test_support", |
329 "../modules/video_capture", | 335 "../modules/video_capture", |
330 "//testing/gmock", | 336 "//testing/gmock", |
331 "//testing/gtest", | 337 "//testing/gtest", |
332 "//third_party/gflags", | 338 "//third_party/gflags", |
333 ] | 339 ] |
334 } | 340 } |
335 } | 341 } |
336 | 342 |
343 if (is_ios) { | |
344 rtc_source_set("fileutils_objc") { | |
345 visibility = [ ":*" ] | |
346 sources = [ | |
347 "testsupport/iosfileutils.mm", | |
348 ] | |
349 deps = [ | |
350 "..:webrtc_common", | |
351 "../rtc_base:rtc_base_approved", | |
352 "../sdk:objc_common", | |
353 ] | |
354 } | |
355 } | |
356 | |
337 rtc_source_set("fileutils") { | 357 rtc_source_set("fileutils") { |
338 testonly = true | 358 testonly = true |
359 visibility = [ ":*" ] | |
339 sources = [ | 360 sources = [ |
340 "testsupport/fileutils.cc", | 361 "testsupport/fileutils.cc", |
341 "testsupport/fileutils.h", | 362 "testsupport/fileutils.h", |
342 ] | 363 ] |
343 deps = [ | 364 deps = [ |
344 "..:webrtc_common", | 365 "..:webrtc_common", |
345 "../rtc_base:rtc_base_approved", | 366 "../rtc_base:rtc_base_approved", |
346 ] | 367 ] |
347 if (is_ios) { | 368 if (is_ios) { |
348 sources += [ "testsupport/iosfileutils.mm" ] | 369 deps += [ ":fileutils_objc" ] |
349 deps += [ "../sdk:objc_common" ] | |
350 } | 370 } |
351 if (is_win) { | 371 if (is_win) { |
352 deps += [ "../rtc_base:rtc_base" ] | 372 deps += [ "../rtc_base:rtc_base" ] |
353 } | 373 } |
354 visibility = [ ":*" ] | |
355 } | 374 } |
356 | 375 |
357 rtc_source_set("run_test") { | 376 rtc_source_set("run_test") { |
358 testonly = true | 377 testonly = true |
378 if (is_mac) { | |
379 public_deps = [ | |
380 ":run_test_objc", | |
381 ] | |
382 } else { | |
383 public_deps = [ | |
384 ":run_test_generic", | |
385 ] | |
386 } | |
387 } | |
388 | |
389 rtc_source_set("run_test_interface") { | |
390 testonly = true | |
391 visibility = [ ":*" ] | |
359 sources = [ | 392 sources = [ |
360 "run_test.h", | 393 "run_test.h", |
361 ] | 394 ] |
362 if (is_mac) { | 395 } |
363 sources += [ "mac/run_test.mm" ] | 396 |
364 } else { | 397 if (is_mac) { |
365 sources += [ "run_test.cc" ] | 398 rtc_source_set("run_test_objc") { |
399 testonly = true | |
400 visibility = [ ":*" ] | |
401 sources = [ | |
402 "mac/run_test.mm", | |
403 ] | |
404 public_deps = [ | |
405 ":run_test_interface", | |
406 ] | |
366 } | 407 } |
367 } | 408 } |
368 | 409 |
410 rtc_source_set("run_test_generic") { | |
411 testonly = true | |
412 visibility = [ ":*" ] | |
413 sources = [ | |
414 "run_test.cc", | |
415 ] | |
416 public_deps = [ | |
417 ":run_test_interface", | |
418 ] | |
419 } | |
420 | |
369 rtc_source_set("fileutils_unittests") { | 421 rtc_source_set("fileutils_unittests") { |
370 testonly = true | 422 testonly = true |
371 visibility = [ ":*" ] # Only targets in this file can depend on this. | 423 visibility = [ ":*" ] # Only targets in this file can depend on this. |
372 sources = [ | 424 sources = [ |
373 "testsupport/fileutils_unittest.cc", | 425 "testsupport/fileutils_unittest.cc", |
374 ] | 426 ] |
375 deps = [ | 427 deps = [ |
376 ":fileutils", | 428 ":fileutils", |
377 ":test_support", | 429 ":test_support", |
378 "../rtc_base:rtc_base_approved", | 430 "../rtc_base:rtc_base_approved", |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
511 cflags = [ | 563 cflags = [ |
512 "-Wno-bool-conversion", | 564 "-Wno-bool-conversion", |
513 "-Wno-comment", | 565 "-Wno-comment", |
514 "-Wno-delete-non-virtual-dtor", | 566 "-Wno-delete-non-virtual-dtor", |
515 ] | 567 ] |
516 } | 568 } |
517 } | 569 } |
518 | 570 |
519 rtc_source_set("test_renderer") { | 571 rtc_source_set("test_renderer") { |
520 testonly = true | 572 testonly = true |
573 if (is_mac) { | |
574 public_deps = [ | |
575 ":test_renderer_objc", | |
576 ] | |
577 } else { | |
578 public_deps = [ | |
579 ":test_renderer_generic", | |
580 ] | |
581 } | |
582 } | |
583 | |
584 if (is_mac) { | |
585 rtc_source_set("test_renderer_objc") { | |
586 testonly = true | |
587 visibility = [ ":*" ] | |
588 sources = [ | |
589 "mac/video_renderer_mac.h", | |
590 "mac/video_renderer_mac.mm", | |
591 ] | |
592 public_deps = [ | |
593 ":test_renderer_generic", | |
594 ] | |
595 deps = [ | |
596 "../rtc_base:rtc_base_approved", | |
597 ] | |
598 libs = [ | |
599 "Cocoa.framework", | |
600 "OpenGL.framework", | |
601 "CoreVideo.framework", | |
602 ] | |
603 if (!build_with_chromium && is_clang) { | |
604 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | |
605 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | |
606 } | |
607 } | |
608 } | |
609 | |
610 rtc_source_set("test_renderer_generic") { | |
611 testonly = true | |
521 libs = [] | 612 libs = [] |
kjellander_webrtc
2017/08/15 14:14:18
Add
visibility = [ ":*" ]
mbonadei
2017/08/15 14:25:16
Done.
| |
522 sources = [ | 613 sources = [ |
523 "linux/glx_renderer.cc", | 614 "linux/glx_renderer.cc", |
524 "linux/glx_renderer.h", | 615 "linux/glx_renderer.h", |
525 "linux/video_renderer_linux.cc", | 616 "linux/video_renderer_linux.cc", |
526 "mac/video_renderer_mac.h", | |
527 "mac/video_renderer_mac.mm", | |
528 "video_renderer.cc", | 617 "video_renderer.cc", |
529 "video_renderer.h", | 618 "video_renderer.h", |
530 "win/d3d_renderer.cc", | 619 "win/d3d_renderer.cc", |
531 "win/d3d_renderer.h", | 620 "win/d3d_renderer.h", |
532 ] | 621 ] |
622 deps = [ | |
623 ":test_support", | |
624 "..:webrtc_common", | |
625 "../common_video", | |
626 "../modules/media_file", | |
627 "../rtc_base:rtc_base_approved", | |
628 "//testing/gtest", | |
629 ] | |
533 if (!is_linux && !is_mac && !is_win) { | 630 if (!is_linux && !is_mac && !is_win) { |
534 sources += [ "null_platform_renderer.cc" ] | 631 sources += [ "null_platform_renderer.cc" ] |
535 } | 632 } |
536 if (is_linux || is_mac) { | 633 if (is_linux || is_mac) { |
537 sources += [ | 634 sources += [ |
538 "gl/gl_renderer.cc", | 635 "gl/gl_renderer.cc", |
539 "gl/gl_renderer.h", | 636 "gl/gl_renderer.h", |
540 ] | 637 ] |
541 } | 638 } |
542 | 639 |
543 if (is_linux) { | 640 if (is_linux) { |
544 libs += [ | 641 libs += [ |
545 "Xext", | 642 "Xext", |
546 "X11", | 643 "X11", |
547 "GL", | 644 "GL", |
548 ] | 645 ] |
549 } | 646 } |
550 if (is_android) { | 647 if (is_android) { |
551 libs += [ | 648 libs += [ |
552 "GLESv2", | 649 "GLESv2", |
553 "log", | 650 "log", |
554 ] | 651 ] |
555 } | 652 } |
556 if (is_mac) { | |
557 libs = [ | |
558 "Cocoa.framework", | |
559 "OpenGL.framework", | |
560 "CoreVideo.framework", | |
561 ] | |
562 } | |
563 | 653 |
564 public_configs = [ ":test_renderer_exported_config" ] | 654 public_configs = [ ":test_renderer_exported_config" ] |
565 | 655 |
566 if (!build_with_chromium && is_clang) { | 656 if (!build_with_chromium && is_clang) { |
567 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 657 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
568 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 658 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
569 } | 659 } |
570 | |
571 deps = [ | |
572 ":test_support", | |
573 "..:webrtc_common", | |
574 "../common_video", | |
575 "../modules/media_file", | |
576 "../rtc_base:rtc_base_approved", | |
577 "//testing/gtest", | |
578 ] | |
579 } | 660 } |
580 | 661 |
581 rtc_source_set("audio_codec_mocks") { | 662 rtc_source_set("audio_codec_mocks") { |
582 testonly = true | 663 testonly = true |
583 sources = [ | 664 sources = [ |
584 "mock_audio_decoder.cc", | 665 "mock_audio_decoder.cc", |
585 "mock_audio_decoder.h", | 666 "mock_audio_decoder.h", |
586 "mock_audio_decoder_factory.h", | 667 "mock_audio_decoder_factory.h", |
587 "mock_audio_encoder.cc", | 668 "mock_audio_encoder.cc", |
588 "mock_audio_encoder.h", | 669 "mock_audio_encoder.h", |
(...skipping 15 matching lines...) Expand all Loading... | |
604 java_files = [ | 685 java_files = [ |
605 "android/org/webrtc/native_test/RTCNativeUnitTest.java", | 686 "android/org/webrtc/native_test/RTCNativeUnitTest.java", |
606 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", | 687 "android/org/webrtc/native_test/RTCNativeUnitTestActivity.java", |
607 ] | 688 ] |
608 deps = [ | 689 deps = [ |
609 "../rtc_base:base_java", | 690 "../rtc_base:base_java", |
610 "//testing/android/native_test:native_test_java", | 691 "//testing/android/native_test:native_test_java", |
611 ] | 692 ] |
612 } | 693 } |
613 } | 694 } |
OLD | NEW |