Skip to content

Commit

Permalink
Extract fft4g into separate build target
Browse files Browse the repository at this point in the history
common_audio/fft4g.c is third party codem that have to be moved into
third_party folder, so to be able to do it at first we have to extract
it into separate target. It is extracted with corresponding header file
and will be moved in futher CL.

Bug: webrtc:8366
Change-Id: I586ca94d4e9242c23163b987fa334dfa705020ed
Reviewed-on: https://webrtc-review.googlesource.com/85372
Reviewed-by: Mirko Bonadei <[email protected]>
Commit-Queue: Artem Titov <[email protected]>
Cr-Commit-Position: refs/heads/master@{#23742}
  • Loading branch information
Artem Titov authored and Commit Bot committed Jun 26, 2018
1 parent 58cd385 commit df3bcdb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions common_audio/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ rtc_static_library("common_audio") {

deps = [
":common_audio_c",
":fft4g",
":sinc_resampler",
"..:webrtc_common",
"../:typedefs",
Expand Down Expand Up @@ -130,8 +131,6 @@ rtc_source_set("common_audio_c_arm_asm") {
rtc_source_set("common_audio_c") {
visibility += webrtc_default_visibility
sources = [
"fft4g.c",
"fft4g.h",
"ring_buffer.c",
"ring_buffer.h",
"signal_processing/auto_corr_to_refl_coef.c",
Expand Down Expand Up @@ -216,6 +215,7 @@ rtc_source_set("common_audio_c") {
deps = [
":common_audio_c_arm_asm",
":common_audio_cc",
":fft4g",
"..:webrtc_common",
"../:typedefs",
"../rtc_base:checks",
Expand All @@ -227,6 +227,14 @@ rtc_source_set("common_audio_c") {
]
}

rtc_source_set("fft4g") {
visibility += webrtc_default_visibility
sources = [
"fft4g.c",
"fft4g.h",
]
}

rtc_source_set("common_audio_cc") {
sources = [
"signal_processing/dot_product_with_scale.cc",
Expand Down
2 changes: 2 additions & 0 deletions modules/audio_processing/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ rtc_static_library("audio_processing") {
"../../api/audio:echo_control",
"../../audio/utility:audio_frame_operations",
"../../common_audio:common_audio_c",
"../../common_audio:fft4g",
"../../rtc_base:checks",
"../../rtc_base:deprecation",
"../../rtc_base:gtest_prod",
Expand Down Expand Up @@ -268,6 +269,7 @@ rtc_source_set("audio_processing_c") {
"../..:webrtc_common",
"../../common_audio",
"../../common_audio:common_audio_c",
"../../common_audio:fft4g",
"../../rtc_base:checks",
"../../rtc_base:rtc_base_approved",
"../../system_wrappers:cpu_features_api",
Expand Down
1 change: 1 addition & 0 deletions modules/audio_processing/vad/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ rtc_static_library("vad") {
"../../../audio/utility:audio_frame_operations",
"../../../common_audio",
"../../../common_audio:common_audio_c",
"../../../common_audio:fft4g",
"../../../rtc_base:checks",
"../../audio_coding:isac_vad",
]
Expand Down

0 comments on commit df3bcdb

Please sign in to comment.