Merge cpu_features build targets into //system_wrappers.

Before this CL, functions declared in cpu_features_wrapper.h where
not defined in the same build target, causing brittle builds that
might fail at link time if the binary was not depending on
//system_wrappers (the target with the definitions), violating [1].

This CL moves everything into //system_wrappers and also moves
cpu_features_wrapper.h definitions from C to C++ (in order to be able
to add the definitions to a C++ build target like //system_wrappers).

[1] - https://webrtc.googlesource.com/src/+/refs/heads/master/style-guide.md#h-cc-pairs

Bug: None
Change-Id: I5a0009cddb17206b19f2a71eeba722faacc4bcae
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/183380
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32039}
This commit is contained in:
Mirko Bonadei
2020-09-05 21:55:35 +02:00
committed by Commit Bot
parent 7f557b46c4
commit 2b242d8fba
16 changed files with 24 additions and 58 deletions

View File

@ -189,7 +189,7 @@ rtc_library("audio_processing") {
"../../rtc_base:sanitizer",
"../../rtc_base/synchronization:mutex",
"../../rtc_base/system:rtc_export",
"../../system_wrappers:cpu_features_api",
"../../system_wrappers",
"../../system_wrappers:field_trial",
"../../system_wrappers:metrics",
"aec3",
@ -375,7 +375,6 @@ if (rtc_include_tests) {
"../../rtc_base/system:arch",
"../../rtc_base/system:file_wrapper",
"../../system_wrappers",
"../../system_wrappers:cpu_features_api",
"../../test:fileutils",
"../../test:rtc_expect_death",
"../../test:test_support",

View File

@ -142,7 +142,7 @@ rtc_library("aec3") {
"../../../rtc_base:safe_minmax",
"../../../rtc_base/experiments:field_trial_parser",
"../../../rtc_base/system:arch",
"../../../system_wrappers:cpu_features_api",
"../../../system_wrappers",
"../../../system_wrappers:field_trial",
"../../../system_wrappers:metrics",
"../utility:cascaded_biquad_filter",
@ -308,7 +308,7 @@ if (rtc_include_tests) {
"../../../rtc_base:rtc_base_approved",
"../../../rtc_base:safe_minmax",
"../../../rtc_base/system:arch",
"../../../system_wrappers:cpu_features_api",
"../../../system_wrappers",
"../../../test:field_trial",
"../../../test:test_support",
"../utility:cascaded_biquad_filter",

View File

@ -21,7 +21,7 @@ rtc_library("aecm_core") {
"../../../rtc_base:checks",
"../../../rtc_base:rtc_base_approved",
"../../../rtc_base:sanitizer",
"../../../system_wrappers:cpu_features_api",
"../../../system_wrappers",
"../utility:legacy_delay_estimator",
]
cflags = []

View File

@ -78,7 +78,7 @@ rtc_library("legacy_agc") {
"../../../common_audio/third_party/ooura:fft_size_256",
"../../../rtc_base:checks",
"../../../rtc_base:rtc_base_approved",
"../../../system_wrappers:cpu_features_api",
"../../../system_wrappers",
]
if (rtc_build_with_neon) {

View File

@ -153,7 +153,7 @@ rtc_library("noise_level_estimator") {
"../../../common_audio/third_party/ooura:fft_size_128",
"../../../rtc_base:checks",
"../../../rtc_base:macromagic",
"../../../system_wrappers:cpu_features_api",
"../../../system_wrappers",
]
configs += [ "..:apm_debug_dump" ]

View File

@ -48,7 +48,7 @@ rtc_library("rnn_vad") {
"../../../../rtc_base:checks",
"../../../../rtc_base:rtc_base_approved",
"../../../../rtc_base/system:arch",
"../../../../system_wrappers:cpu_features_api",
"../../../../system_wrappers",
"../../utility:pffft_wrapper",
"//third_party/rnnoise:rnn_vad",
]
@ -67,7 +67,7 @@ if (rtc_include_tests) {
"../../../../api:scoped_refptr",
"../../../../rtc_base:checks",
"../../../../rtc_base/system:arch",
"../../../../system_wrappers:cpu_features_api",
"../../../../system_wrappers",
"../../../../test:fileutils",
"../../../../test:test_support",
]

View File

@ -60,7 +60,7 @@ rtc_static_library("ns") {
"../../../rtc_base:rtc_base_approved",
"../../../rtc_base:safe_minmax",
"../../../rtc_base/system:arch",
"../../../system_wrappers:cpu_features_api",
"../../../system_wrappers",
"../../../system_wrappers:field_trial",
"../../../system_wrappers:metrics",
"../utility:cascaded_biquad_filter",
@ -87,7 +87,7 @@ if (rtc_include_tests) {
"../../../rtc_base:rtc_base_approved",
"../../../rtc_base:safe_minmax",
"../../../rtc_base/system:arch",
"../../../system_wrappers:cpu_features_api",
"../../../system_wrappers",
"../../../test:test_support",
"../utility:cascaded_biquad_filter",
]