Extract fft to separate target to be able to move it to third_party
fft.c is third party library and have to be moved to proper third_party
directory. So this CL will extract it to separate gn target to be able
then to move it to proper location.
Bug: webrtc:8366
Change-Id: I228ebab3c821aa7095f7aa460c23c2ea0fb98f01
Reviewed-on: https://webrtc-review.googlesource.com/85640
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23753}
diff --git a/modules/audio_coding/BUILD.gn b/modules/audio_coding/BUILD.gn
index fa49549..578b442 100644
--- a/modules/audio_coding/BUILD.gn
+++ b/modules/audio_coding/BUILD.gn
@@ -592,8 +592,6 @@
"codecs/isac/main/source/encode_lpc_swb.h",
"codecs/isac/main/source/entropy_coding.c",
"codecs/isac/main/source/entropy_coding.h",
- "codecs/isac/main/source/fft.c",
- "codecs/isac/main/source/fft.h",
"codecs/isac/main/source/filterbanks.c",
"codecs/isac/main/source/intialize.c",
"codecs/isac/main/source/isac.c",
@@ -625,6 +623,7 @@
public_configs = [ ":isac_config" ]
deps = [
+ ":fft",
":isac_bwinfo",
":isac_vad",
"../..:typedefs",
@@ -637,6 +636,17 @@
]
}
+rtc_source_set("fft") {
+ poisonous = [ "audio_codecs" ]
+ sources = [
+ "codecs/isac/main/source/fft.c",
+ "codecs/isac/main/source/fft.h",
+ ]
+ deps = [
+ ":isac_vad",
+ ]
+}
+
config("isac_fix_config") {
include_dirs = [ "codecs/isac/fix/include" ]
}