Skip to content

Commit

Permalink
Stop using public_deps in pc/.
Browse files Browse the repository at this point in the history
[email protected]

Bug: webrtc:8603
Change-Id: If18e5a4d212392bbd9b4e1f9c2f00ee79a2ab348
No-Try: True
Reviewed-on: https://webrtc-review.googlesource.com/29864
Reviewed-by: Edward Lemur <[email protected]>
Commit-Queue: Mirko Bonadei <[email protected]>
Cr-Commit-Position: refs/heads/master@{#21139}
  • Loading branch information
MirkoBonadei authored and Commit Bot committed Dec 7, 2017
1 parent 904f869 commit e51f785
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
1 change: 1 addition & 0 deletions media/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ if (rtc_include_tests) {
deps = [
"../api:video_frame_api_i420",
"../pc:rtc_pc",
"../pc:rtc_pc_base",
"../test:field_trial",
]
sources = [
Expand Down
3 changes: 3 additions & 0 deletions ortc/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ rtc_static_library("ortc") {
# PeerConnection code shares, so that ortc can depend on that instead of
# libjingle_peerconnection.
deps = [
"../api:libjingle_peerconnection_api",
"../api:optional",
"../api:ortc_api",
"../call:call_interfaces",
Expand All @@ -43,7 +44,9 @@ rtc_static_library("ortc") {
"../modules/audio_processing:audio_processing",
"../p2p:rtc_p2p",
"../pc:libjingle_peerconnection",
"../pc:peerconnection",
"../pc:rtc_pc",
"../pc:rtc_pc_base",
"../rtc_base:rtc_base",
"../rtc_base:rtc_base_approved",
]
Expand Down
22 changes: 11 additions & 11 deletions pc/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (is_android) {
}

group("pc") {
public_deps = [
deps = [
":rtc_pc",
]
}
Expand Down Expand Up @@ -92,11 +92,8 @@ rtc_static_library("rtc_pc_base") {
}

rtc_source_set("rtc_pc") {
public_deps = [
":rtc_pc_base",
]

deps = [
":rtc_pc_base",
"../media:rtc_audio_video",
]
}
Expand Down Expand Up @@ -176,6 +173,7 @@ rtc_static_library("peerconnection") {
":rtc_pc_base",
"..:webrtc_common",
"../api:call_api",
"../api:libjingle_peerconnection_api",
"../api:optional",
"../api:rtc_stats_api",
"../api/video_codecs:video_codecs_api",
Expand All @@ -190,10 +188,6 @@ rtc_static_library("peerconnection") {
"../system_wrappers",
"../system_wrappers:field_trial_api",
]

public_deps = [
"../api:libjingle_peerconnection_api",
]
}

# This target implements CreatePeerConnectionFactory methods that will create a
Expand Down Expand Up @@ -233,7 +227,7 @@ rtc_static_library("create_pc_factory") {
}

rtc_source_set("libjingle_peerconnection") {
public_deps = [
deps = [
":create_pc_factory",
":peerconnection",
"../api:libjingle_peerconnection_api",
Expand Down Expand Up @@ -287,7 +281,9 @@ if (rtc_include_tests) {
":libjingle_peerconnection",
":pc_test_utils",
":rtc_pc",
":rtc_pc_base",
"../api:array_view",
"../api:libjingle_peerconnection_api",
"../logging:rtc_event_log_api",
"../media:rtc_media_base",
"../media:rtc_media_tests_utils",
Expand Down Expand Up @@ -333,6 +329,7 @@ if (rtc_include_tests) {

deps = [
":libjingle_peerconnection",
":peerconnection",
":rtc_pc_base",
"..:webrtc_common",
"../api:libjingle_peerconnection_test_api",
Expand Down Expand Up @@ -436,7 +433,10 @@ if (rtc_include_tests) {
]
}

deps = []
deps = [
":peerconnection",
":rtc_pc_base",
]
if (is_android) {
deps += [ ":android_black_magic" ]
}
Expand Down
4 changes: 4 additions & 0 deletions sdk/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ if (is_ios || is_mac) {
":video_objc",
":videotoolbox_objc",
":videotracksource_objc",
"../api:libjingle_peerconnection_api",
"../api:peerconnection_and_implicit_call_api",
"../api:video_frame_api",
"../api/audio_codecs:builtin_audio_decoder_factory",
"../api/audio_codecs:builtin_audio_encoder_factory",
Expand Down Expand Up @@ -505,6 +507,8 @@ if (is_ios || is_mac) {
":common_objc",
":corevideoframebuffer_objc",
":videotracksource_objc",
"../api:libjingle_peerconnection_api",
"../api:peerconnection_and_implicit_call_api",
"../api:video_frame_api",
"../api/video_codecs:video_codecs_api",
"../common_video",
Expand Down
2 changes: 2 additions & 0 deletions sdk/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ rtc_static_library("peerconnection_jni") {
":generated_external_classes_jni",
":generated_peerconnection_jni",
"../..:webrtc_common",
"../../api:libjingle_peerconnection_api",
"../../api:peerconnection_and_implicit_call_api",
"../../api/video_codecs:video_codecs_api",
"../../media:rtc_data",
"../../media:rtc_media_base",
Expand Down
1 change: 1 addition & 0 deletions test/fuzzers/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ webrtc_fuzzer_test("sdp_parser_fuzzer") {
"sdp_parser_fuzzer.cc",
]
deps = [
"../../api:libjingle_peerconnection_api",
"../../pc:libjingle_peerconnection",
]
seed_corpus = "corpora/sdp-corpus"
Expand Down

0 comments on commit e51f785

Please sign in to comment.