Skip to content

Commit

Permalink
Fixing hidden dependencies.
Browse files Browse the repository at this point in the history
Header files base/videosinkinterface.h and base/videosourceinterface.h
were not part of any target (because they cause 2 dependency cycles).

This CL uncomment them so GN can keep dependencies under control, the
2 dependency cycles will be removed as part of webrtc:6828.

Bug: webrtc:6828
Change-Id: I5c5580facc010ba619e105a9b8a572ac70169a01
Reviewed-on: https://webrtc-review.googlesource.com/27621
Reviewed-by: Patrik Höglund <[email protected]>
Commit-Queue: Mirko Bonadei <[email protected]>
Cr-Commit-Position: refs/heads/master@{#20970}
  • Loading branch information
MirkoBonadei authored and Commit Bot committed Dec 1, 2017
1 parent 8e28c56 commit ad62792
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
6 changes: 6 additions & 0 deletions call/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ rtc_static_library("call") {
}

rtc_source_set("video_stream_api") {
# TODO(bugs.webrtc.org/6828): Remove dependency cycle:
# //call:video_stream_api ->
# //media:rtc_media_base ->
# //call:call_interfaces ->
# //call:video_stream_api
check_includes = false
sources = [
"video_config.cc",
"video_config.h",
Expand Down
7 changes: 7 additions & 0 deletions common_video/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ config("common_video_config") {
}

rtc_static_library("common_video") {
# TODO(bugs.webrtc.org/6828): Remove dependency cycle:
# //common_video:common_video ->
# //media:rtc_media_base ->
# //call:call_interfaces ->
# //call:video_stream_api ->
# //common_video:common_video
check_includes = false
sources = [
"bitrate_adjuster.cc",
"h264/h264_bitstream_parser.cc",
Expand Down
6 changes: 2 additions & 4 deletions media/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@ rtc_static_library("rtc_media_base") {
"base/videocapturerfactory.h",
"base/videocommon.cc",
"base/videocommon.h",
"base/videosinkinterface.h",
"base/videosourcebase.cc",
"base/videosourcebase.h",

# TODO(aleloi): add "base/videosinkinterface.h"
"base/videosourceinterface.cc",

# TODO(aleloi): add "base/videosourceinterface.h"
"base/videosourceinterface.h",
]

if (!build_with_chromium && is_clang) {
Expand Down
1 change: 1 addition & 0 deletions modules/video_capture/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ rtc_static_library("video_capture_module") {
"../..:webrtc_common",
"../../api:video_frame_api_i420",
"../../common_video",
"../../media:rtc_media_base",
"../../rtc_base:rtc_base_approved",
"../../system_wrappers",
]
Expand Down
2 changes: 2 additions & 0 deletions test/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ rtc_source_set("test_common") {
"../call:video_stream_api",
"../common_video",
"../logging:rtc_event_log_api",
"../media:rtc_media_base",
"../modules/audio_device:mock_audio_device",
"../modules/audio_mixer:audio_mixer_impl",
"../modules/audio_processing",
Expand Down Expand Up @@ -653,6 +654,7 @@ rtc_source_set("test_renderer_generic") {
":test_support",
"..:webrtc_common",
"../common_video",
"../media:rtc_media_base",
"../modules/media_file",
"../rtc_base:rtc_base_approved",
"//testing/gtest",
Expand Down

0 comments on commit ad62792

Please sign in to comment.