Creating webrtc:video_stream_api
This target keeps track of .h the files under webrtc/ that are not part
of any target.
If a .h file is not part of a target the 'gn check' utility is not
able to spot if a target is missing a dependency because even if
it parses '#include' directives it is not able to find a target that
contains these headers.
BUG=webrtc:7512
NOTRY=True
Review-Url: https://codereview.webrtc.org/2841873002
Cr-Original-Commit-Position: refs/heads/master@{#17874}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 81c79f51aa842e0c8254ebd4e91dfb0cea7c181e
diff --git a/BUILD.gn b/BUILD.gn
index bde2b86..7649f46 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -224,6 +224,13 @@
libs = [ "Foundation.framework" ]
}
+rtc_source_set("video_stream_api") {
+ sources = [
+ "video_receive_stream.h",
+ "video_send_stream.h",
+ ]
+}
+
if (!build_with_chromium) {
# Target to build all the WebRTC production code.
rtc_static_library("webrtc") {
diff --git a/call/BUILD.gn b/call/BUILD.gn
index 9cc3c18..47847cc 100644
--- a/call/BUILD.gn
+++ b/call/BUILD.gn
@@ -21,6 +21,7 @@
"syncable.h",
]
deps = [
+ "..:video_stream_api",
"..:webrtc_common",
"../api:audio_mixer_api",
"../api:libjingle_peerconnection_api",
diff --git a/logging/BUILD.gn b/logging/BUILD.gn
index 6fcab59..6032ba6 100644
--- a/logging/BUILD.gn
+++ b/logging/BUILD.gn
@@ -27,6 +27,7 @@
"rtc_event_log/rtc_event_log.h",
]
deps = [
+ "..:video_stream_api",
"../base:rtc_base_approved",
"../call:call_interfaces",
]
@@ -94,6 +95,7 @@
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
}
deps = [
+ "..:video_stream_api",
"../base:protobuf_utils",
"../base:rtc_base_approved",
]
diff --git a/media/BUILD.gn b/media/BUILD.gn
index b1f768c..b6529bf 100644
--- a/media/BUILD.gn
+++ b/media/BUILD.gn
@@ -267,6 +267,7 @@
include_dirs = []
public_deps = []
deps = [
+ "..:video_stream_api",
"../modules/audio_coding:rent_a_codec",
"../modules/audio_processing:audio_processing",
"../p2p:rtc_p2p",
diff --git a/modules/video_coding/BUILD.gn b/modules/video_coding/BUILD.gn
index 821e396..bafc8ba 100644
--- a/modules/video_coding/BUILD.gn
+++ b/modules/video_coding/BUILD.gn
@@ -94,6 +94,7 @@
":webrtc_i420",
":webrtc_vp8",
":webrtc_vp9",
+ "../..:video_stream_api",
"../..:webrtc_common",
"../../base:rtc_base",
"../../base:rtc_base_approved",
diff --git a/tools/BUILD.gn b/tools/BUILD.gn
index 05b7adb..be3296d 100644
--- a/tools/BUILD.gn
+++ b/tools/BUILD.gn
@@ -205,6 +205,7 @@
}
defines = [ "ENABLE_RTC_EVENT_LOG" ]
deps = [
+ "..:video_stream_api",
"../base:rtc_base_approved",
"../call:call_interfaces",
"../logging:rtc_event_log_impl",
diff --git a/video/BUILD.gn b/video/BUILD.gn
index 20b5d10..76f6ece 100644
--- a/video/BUILD.gn
+++ b/video/BUILD.gn
@@ -54,6 +54,7 @@
}
deps = [
+ "..:video_stream_api",
"..:webrtc_common",
"../api:transport_api",
"../api/video_codecs:video_codecs_api",
@@ -249,6 +250,7 @@
]
deps = [
":video",
+ "..:video_stream_api",
"../api:video_frame_api",
"../api/video_codecs:video_codecs_api",
"../base:rtc_base_approved",