Fix circular dependencies in webrtc_common.

One reason for the circular deps is that common_types.h is a
historical dumping ground for various structs and defines that
are believed to be generally useful. I tried moving things out
that did not appear to be used downstream (StreamCounters,
RtpCounters etc) and moved the things that seemed used
(RtpHeader + supporting structs) to a new file api/rtp_headers.h.
This makes their place in the api more clear while moving out
the things that don't belong in the API in the first place.

I had to extract out typedefs.h from webrtc_common to resolve
another circular dependency. I believe checks includes typedefs,
but common depends on checks.

Bug: webrtc:7745
Change-Id: I725d49616b1ec0cdc8b74be7c078f7a4d46f084b
Reviewed-on: https://webrtc-review.googlesource.com/33001
Commit-Queue: Patrik Höglund <phoglund@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21295}
This commit is contained in:
Patrik Höglund
2017-12-15 14:40:10 +01:00
committed by Commit Bot
parent d5d0540b86
commit 3e113438b1
57 changed files with 559 additions and 316 deletions

View File

@ -226,10 +226,12 @@ rtc_static_library("audio_processing") {
":audio_processing_statistics",
"..:module_api",
"../..:webrtc_common",
"../../:typedefs",
"../../api:array_view",
"../../api:optional",
"../../audio/utility:audio_frame_operations",
"../../rtc_base:checks",
"../../rtc_base:deprecation",
"../../rtc_base:gtest_prod",
"../../rtc_base:protobuf_utils",
"../../rtc_base:sanitizer",
@ -341,6 +343,7 @@ rtc_source_set("audio_processing_c") {
deps = [
"../..:webrtc_common",
"../../:typedefs",
"../../common_audio",
"../../rtc_base:checks",
"../../rtc_base:rtc_base_approved",
@ -371,6 +374,7 @@ rtc_source_set("apm_logging") {
"../../api:array_view",
"../../common_audio:common_audio",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:stringutils",
]
defines = []
if (apm_debug_dump) {
@ -404,6 +408,7 @@ rtc_source_set("aec_core") {
":apm_logging",
":audio_processing_statistics",
"../..:webrtc_common",
"../../:typedefs",
"../../common_audio:common_audio",
"../../rtc_base:checks",
"../../rtc_base:rtc_base_approved",
@ -582,6 +587,7 @@ if (rtc_include_tests) {
":audioproc_test_utils",
"..:module_api",
"../..:webrtc_common",
"../../:typedefs",
"../../api:array_view",
"../../api:optional",
"../../common_audio:common_audio",
@ -768,6 +774,7 @@ if (rtc_include_tests) {
"../../rtc_base:protobuf_utils",
"../../rtc_base:rtc_base_approved",
"../../rtc_base:rtc_task_queue",
"../../rtc_base:stringutils",
"../../system_wrappers",
"../../system_wrappers:system_wrappers_default",
"../../test:test_support",
@ -819,6 +826,7 @@ if (rtc_include_tests) {
":audio_processing",
"..:module_api",
"../..:webrtc_common",
"../../:typedefs",
"../../common_audio:common_audio",
"../../rtc_base:rtc_base_approved",
"../../system_wrappers",
@ -838,6 +846,7 @@ if (rtc_include_tests) {
deps = [
":audio_processing",
"../..:webrtc_common",
"../../:typedefs",
"../../system_wrappers",
"../../system_wrappers:metrics_default",
]
@ -892,6 +901,7 @@ if (rtc_include_tests) {
deps = [
":audioproc_debug_proto",
"../..:webrtc_common",
"../../:typedefs",
"../../rtc_base:protobuf_utils",
"../../rtc_base:rtc_base_approved",
]

View File

@ -45,6 +45,7 @@ rtc_static_library("lib") {
]
deps = [
"../../../..:webrtc_common",
"../../../../:typedefs",
"../../../../api:array_view",
"../../../../common_audio",
"../../../../rtc_base:checks",
@ -65,6 +66,7 @@ rtc_source_set("unittest") {
deps = [
":lib",
"../../../..:webrtc_common",
"../../../../:typedefs",
"../../../../api:array_view",
"../../../../api:optional",
"../../../../common_audio",