Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: webrtc/test/BUILD.gn

Issue 3010133002: Tightening visibility and removing a public_dep. (Closed)
Patch Set: Fixing rtc_test target Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/video/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 deps = [ 106 deps = [
107 "..:webrtc_common", 107 "..:webrtc_common",
108 "../system_wrappers", 108 "../system_wrappers",
109 "../system_wrappers:field_trial_default", 109 "../system_wrappers:field_trial_default",
110 ] 110 ]
111 } 111 }
112 112
113 if (is_ios) { 113 if (is_ios) {
114 rtc_source_set("test_support_objc") { 114 rtc_source_set("test_support_objc") {
115 testonly = true 115 testonly = true
116 visibility = [ ":*" ] 116 visibility = [ ":test_support" ]
117 sources = [ 117 sources = [
118 "ios/test_support.h", 118 "ios/test_support.h",
119 "ios/test_support.mm", 119 "ios/test_support.mm",
120 ] 120 ]
121 } 121 }
122 } 122 }
123 123
124 rtc_source_set("test_support") { 124 rtc_source_set("test_support") {
125 testonly = true 125 testonly = true
126 126
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 "../modules/video_capture", 342 "../modules/video_capture",
343 "../rtc_base:rtc_base_approved", 343 "../rtc_base:rtc_base_approved",
344 "//testing/gmock", 344 "//testing/gmock",
345 "//testing/gtest", 345 "//testing/gtest",
346 ] 346 ]
347 } 347 }
348 } 348 }
349 349
350 if (is_ios) { 350 if (is_ios) {
351 rtc_source_set("fileutils_objc") { 351 rtc_source_set("fileutils_objc") {
352 visibility = [ ":*" ] 352 visibility = [ ":fileutils" ]
353 sources = [ 353 sources = [
354 "testsupport/iosfileutils.mm", 354 "testsupport/iosfileutils.mm",
355 ] 355 ]
356 deps = [ 356 deps = [
357 "..:webrtc_common", 357 "..:webrtc_common",
358 "../rtc_base:rtc_base_approved", 358 "../rtc_base:rtc_base_approved",
359 "../sdk:common_objc", 359 "../sdk:common_objc",
360 ] 360 ]
361 } 361 }
362 } 362 }
363 363
364 rtc_source_set("fileutils") { 364 rtc_source_set("fileutils") {
365 testonly = true 365 testonly = true
366 visibility = [ ":*" ] 366 visibility = [
367 ":fileutils_unittests",
368 ":test_support_test_output",
369 ":test_support",
370 ":video_test_support",
371 ]
367 sources = [ 372 sources = [
368 "testsupport/fileutils.cc", 373 "testsupport/fileutils.cc",
369 "testsupport/fileutils.h", 374 "testsupport/fileutils.h",
370 ] 375 ]
371 deps = [ 376 deps = [
372 "..:webrtc_common", 377 "..:webrtc_common",
373 "../rtc_base:rtc_base_approved", 378 "../rtc_base:rtc_base_approved",
374 ] 379 ]
375 if (is_ios) { 380 if (is_ios) {
376 deps += [ ":fileutils_objc" ] 381 deps += [ ":fileutils_objc" ]
(...skipping 10 matching lines...) Expand all
387 ":run_test_objc", 392 ":run_test_objc",
388 ] 393 ]
389 } else { 394 } else {
390 public_deps = [ 395 public_deps = [
391 ":run_test_generic", 396 ":run_test_generic",
392 ] 397 ]
393 } 398 }
394 } 399 }
395 400
396 rtc_source_set("run_test_interface") { 401 rtc_source_set("run_test_interface") {
397 testonly = true
398 visibility = [ ":*" ]
399 sources = [ 402 sources = [
400 "run_test.h", 403 "run_test.h",
401 ] 404 ]
402 } 405 }
403 406
404 if (is_mac) { 407 if (is_mac) {
405 rtc_source_set("run_test_objc") { 408 rtc_source_set("run_test_objc") {
406 testonly = true 409 testonly = true
407 visibility = [ ":*" ] 410 visibility = [ ":run_test" ]
408 sources = [ 411 sources = [
409 "mac/run_test.mm", 412 "mac/run_test.mm",
410 ] 413 ]
411 public_deps = [ 414 deps = [
412 ":run_test_interface", 415 ":run_test_interface",
413 ] 416 ]
414 } 417 }
415 } 418 }
416 419
417 rtc_source_set("run_test_generic") { 420 rtc_source_set("run_test_generic") {
418 testonly = true 421 testonly = true
419 visibility = [ ":*" ] 422 visibility = [ ":run_test" ]
420 sources = [ 423 sources = [
421 "run_test.cc", 424 "run_test.cc",
422 ] 425 ]
423 public_deps = [ 426 deps = [
424 ":run_test_interface", 427 ":run_test_interface",
425 ] 428 ]
426 } 429 }
427 430
428 rtc_source_set("fileutils_unittests") { 431 rtc_source_set("fileutils_unittests") {
429 testonly = true 432 testonly = true
430 visibility = [ ":*" ] # Only targets in this file can depend on this. 433 visibility = [ ":*" ] # Only targets in this file can depend on this.
431 sources = [ 434 sources = [
432 "testsupport/fileutils_unittest.cc", 435 "testsupport/fileutils_unittest.cc",
433 ] 436 ]
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 # come from a config and cannot be on the target directly. 589 # come from a config and cannot be on the target directly.
587 cflags = [ 590 cflags = [
588 "-Wno-bool-conversion", 591 "-Wno-bool-conversion",
589 "-Wno-comment", 592 "-Wno-comment",
590 "-Wno-delete-non-virtual-dtor", 593 "-Wno-delete-non-virtual-dtor",
591 ] 594 ]
592 } 595 }
593 } 596 }
594 597
595 rtc_source_set("test_renderer") { 598 rtc_source_set("test_renderer") {
599 public_deps = [
600 ":test_renderer_generic",
601 ]
596 testonly = true 602 testonly = true
597 if (is_mac) { 603 if (is_mac) {
598 public_deps = [ 604 public_deps += [ ":test_renderer_objc" ]
599 ":test_renderer_objc",
600 ]
601 } else {
602 public_deps = [
603 ":test_renderer_generic",
604 ]
605 } 605 }
606 } 606 }
607 607
608 if (is_mac) { 608 if (is_mac) {
609 rtc_source_set("test_renderer_objc") { 609 rtc_source_set("test_renderer_objc") {
610 testonly = true 610 testonly = true
611 visibility = [ ":*" ] 611 visibility = [ ":test_renderer" ]
612 sources = [ 612 sources = [
613 "mac/video_renderer_mac.h", 613 "mac/video_renderer_mac.h",
614 "mac/video_renderer_mac.mm", 614 "mac/video_renderer_mac.mm",
615 ] 615 ]
616 public_deps = [ 616 deps = [
617 ":test_renderer_generic", 617 ":test_renderer_generic",
618 ]
619 deps = [
620 "../rtc_base:rtc_base_approved", 618 "../rtc_base:rtc_base_approved",
621 ] 619 ]
622 libs = [ 620 libs = [
623 "Cocoa.framework", 621 "Cocoa.framework",
624 "OpenGL.framework", 622 "OpenGL.framework",
625 "CoreVideo.framework", 623 "CoreVideo.framework",
626 ] 624 ]
627 if (!build_with_chromium && is_clang) { 625 if (!build_with_chromium && is_clang) {
628 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 626 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
629 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 627 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
630 } 628 }
631 } 629 }
632 } 630 }
633 631
634 rtc_source_set("test_renderer_generic") { 632 rtc_source_set("test_renderer_generic") {
635 testonly = true 633 testonly = true
636 visibility = [ ":*" ] 634 visibility = [
635 ":test_renderer",
636 ":test_renderer_objc",
637 ]
637 libs = [] 638 libs = []
638 sources = [ 639 sources = [
639 "linux/glx_renderer.cc", 640 "linux/glx_renderer.cc",
640 "linux/glx_renderer.h", 641 "linux/glx_renderer.h",
641 "linux/video_renderer_linux.cc", 642 "linux/video_renderer_linux.cc",
642 "video_renderer.cc", 643 "video_renderer.cc",
643 "video_renderer.h", 644 "video_renderer.h",
644 "win/d3d_renderer.cc", 645 "win/d3d_renderer.cc",
645 "win/d3d_renderer.h", 646 "win/d3d_renderer.h",
646 ] 647 ]
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 ] 715 ]
715 deps = [ 716 deps = [
716 "../rtc_base:base_java", 717 "../rtc_base:base_java",
717 "//testing/android/native_test:native_test_java", 718 "//testing/android/native_test:native_test_java",
718 ] 719 ]
719 720
720 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 721 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148
721 no_build_hooks = true 722 no_build_hooks = true
722 } 723 }
723 } 724 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698