Enable GN check for webrtc/common_audio

BUG=webrtc:6828
NOTRY=True

Review-Url: https://codereview.webrtc.org/2719743002
Cr-Commit-Position: refs/heads/master@{#16946}
This commit is contained in:
kjellander
2017-03-01 07:07:10 -08:00
committed by Commit bot
parent daa574d1db
commit 50550e1440
2 changed files with 49 additions and 1 deletions

1
.gn
View File

@ -26,6 +26,7 @@ check_targets = [
"//webrtc/audio/*",
"//webrtc/call/*",
"//webrtc/common_video/*",
"//webrtc/common_audio/*",
"//webrtc/modules/audio_coding/*",
"//webrtc/modules/audio_conference_mixer/*",
"//webrtc/modules/audio_device/*",

View File

@ -46,7 +46,6 @@ rtc_static_library("common_audio") {
"resampler/push_sinc_resampler.h",
"resampler/resampler.cc",
"resampler/sinc_resampler.cc",
"resampler/sinc_resampler.h",
"smoothing_filter.cc",
"smoothing_filter.h",
"sparse_fir_filter.cc",
@ -62,6 +61,10 @@ rtc_static_library("common_audio") {
]
deps = [
":sinc_resampler",
"..:webrtc_common",
"../base:gtest_prod",
"../base:rtc_base_approved",
"../system_wrappers",
]
public_deps = [
@ -199,10 +202,33 @@ rtc_source_set("common_audio_c") {
}
public_configs = [ ":common_audio_config" ]
deps = [
"..:webrtc_common",
"../base:rtc_base_approved",
"../system_wrappers:system_wrappers",
]
}
rtc_source_set("sinc_resampler") {
sources = [
"resampler/sinc_resampler.h",
]
deps = [
"..:webrtc_common",
"../base:gtest_prod",
"../base:rtc_base_approved",
"../system_wrappers",
]
}
if (current_cpu == "x86" || current_cpu == "x64") {
rtc_static_library("common_audio_sse2") {
# TODO(kjellander): Remove (bugs.webrtc.org/6828)
# Enabling GN check triggers dependency cycle:
# //webrtc/common_audio:common_audio ->
# //webrtc/common_audio:common_audio_sse2 ->
# //webrtc/common_audio:common_audio
check_includes = false
sources = [
"fir_filter_sse.cc",
"resampler/sinc_resampler_sse.cc",
@ -216,11 +242,20 @@ if (current_cpu == "x86" || current_cpu == "x64") {
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
}
deps = [
":sinc_resampler",
]
}
}
if (rtc_build_with_neon) {
rtc_static_library("common_audio_neon") {
# TODO(kjellander): Remove (bugs.webrtc.org/6828)
# Enabling GN check triggers dependency cycle:
# //webrtc/common_audio:common_audio ->
# //webrtc/common_audio:common_audio_neon ->
# //webrtc/common_audio:common_audio
check_includes = false
sources = [
"fir_filter_neon.cc",
"resampler/sinc_resampler_neon.cc",
@ -248,6 +283,10 @@ if (rtc_build_with_neon) {
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
}
deps = [
":sinc_resampler",
]
public_deps = [
":common_audio_neon_c",
]
@ -282,6 +321,10 @@ if (rtc_build_with_neon) {
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
}
deps = [
":common_audio_c",
"../base:rtc_base_approved",
]
}
}
@ -335,6 +378,10 @@ if (rtc_include_tests) {
deps = [
":common_audio",
":sinc_resampler",
"..:webrtc_common",
"../base:rtc_base_approved",
"../system_wrappers",
"../test:test_main",
"//testing/gmock",
"//testing/gtest",