blob: 4832751b5f3af7ca641c78883b37aaa9043b6041 [file] [log] [blame]
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +01001# Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("../../webrtc.gni")
10
Mirko Bonadei86d053c2019-10-17 21:32:04 +020011rtc_library("audio_frame_api") {
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010012 visibility = [ "*" ]
13 sources = [
14 "audio_frame.cc",
15 "audio_frame.h",
henrika2250b052019-07-04 11:27:52 +020016 "channel_layout.cc",
17 "channel_layout.h",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010018 ]
19
20 deps = [
Alessio Bazzica8f319a32019-07-24 16:47:02 +000021 "..:rtp_packet_info",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010022 "../../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +020023 "../../rtc_base:logging",
Florent Castelli4467ad72022-04-04 15:18:46 +020024 "../../rtc_base:macromagic",
Florent Castellidd837e22022-04-04 17:16:15 +020025 "../../rtc_base:timeutils",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010026 ]
27}
28
Olga Sharonova09ceed22020-09-30 18:27:39 +020029rtc_source_set("audio_frame_processor") {
30 visibility = [ "*" ]
31 sources = [ "audio_frame_processor.h" ]
32}
33
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010034rtc_source_set("audio_mixer_api") {
35 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010036 sources = [ "audio_mixer.h" ]
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010037
38 deps = [
39 ":audio_frame_api",
Niels Möller7c8c4db2022-06-13 10:36:38 +020040 "..:make_ref_counted",
Florent Castellif86f6f92022-04-05 02:54:12 +020041 "../../rtc_base:refcount",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010042 ]
43}
44
Mirko Bonadei86d053c2019-10-17 21:32:04 +020045rtc_library("aec3_config") {
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010046 visibility = [ "*" ]
47 sources = [
Per Åhgrenb6b00dc2018-02-20 22:18:27 +010048 "echo_canceller3_config.cc",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010049 "echo_canceller3_config.h",
50 ]
Sam Zackrissona4c85142018-10-10 10:44:43 +020051 deps = [
Yves Gerey988cc082018-10-23 12:03:01 +020052 "../../rtc_base:checks",
Sam Zackrissona4c85142018-10-10 10:44:43 +020053 "../../rtc_base:safe_minmax",
Mirko Bonadei3d255302018-10-11 10:50:45 +020054 "../../rtc_base/system:rtc_export",
Sam Zackrissona4c85142018-10-10 10:44:43 +020055 ]
56}
57
Mirko Bonadei86d053c2019-10-17 21:32:04 +020058rtc_library("aec3_config_json") {
Sam Zackrissona4c85142018-10-10 10:44:43 +020059 visibility = [ "*" ]
Sam Zackrisson492fdf42019-10-25 10:45:58 +020060 allow_poison = [ "rtc_json" ]
Sam Zackrissona4c85142018-10-10 10:44:43 +020061 sources = [
62 "echo_canceller3_config_json.cc",
63 "echo_canceller3_config_json.h",
64 ]
65 deps = [
66 ":aec3_config",
Yves Gerey3e707812018-11-28 16:47:49 +010067 "../../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 15:06:30 +020068 "../../rtc_base:logging",
Sam Zackrissona4c85142018-10-10 10:44:43 +020069 "../../rtc_base:rtc_json",
Florent Castelli57aa81b2022-04-04 17:14:02 +020070 "../../rtc_base:stringutils",
Mirko Bonadei3d255302018-10-11 10:50:45 +020071 "../../rtc_base/system:rtc_export",
Sam Zackrissona4c85142018-10-10 10:44:43 +020072 ]
Mirko Bonadei2dcf3482020-06-05 14:30:41 +020073 absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010074}
75
Mirko Bonadei86d053c2019-10-17 21:32:04 +020076rtc_library("aec3_factory") {
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010077 visibility = [ "*" ]
Gustaf Ullberg0efa9412018-02-27 13:58:45 +010078 configs += [ "../../modules/audio_processing:apm_debug_dump" ]
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010079 sources = [
80 "echo_canceller3_factory.cc",
81 "echo_canceller3_factory.h",
82 ]
83
84 deps = [
85 ":aec3_config",
86 ":echo_control",
Gustaf Ullbergf35c6662018-02-23 13:18:29 +010087 "../../modules/audio_processing/aec3",
Mirko Bonadei3d255302018-10-11 10:50:45 +020088 "../../rtc_base/system:rtc_export",
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010089 ]
90}
91
92rtc_source_set("echo_control") {
93 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 12:10:10 +010094 sources = [ "echo_control.h" ]
95 deps = [ "../../rtc_base:checks" ]
Gustaf Ullberg2ae140a2018-02-16 13:43:49 +010096}
Sam Zackrissonb0bd0702020-05-12 10:48:19 +020097
98rtc_source_set("echo_detector_creator") {
99 visibility = [ "*" ]
Sam Zackrisson03cb7e52021-12-06 15:40:04 +0100100 allow_poison = [ "default_echo_detector" ]
Sam Zackrissonb0bd0702020-05-12 10:48:19 +0200101 sources = [
102 "echo_detector_creator.cc",
103 "echo_detector_creator.h",
104 ]
105 deps = [
Niels Möller7c8c4db2022-06-13 10:36:38 +0200106 "..:make_ref_counted",
Sam Zackrissonb0bd0702020-05-12 10:48:19 +0200107 "../../api:scoped_refptr",
108 "../../modules/audio_processing:api",
Sam Zackrisson03cb7e52021-12-06 15:40:04 +0100109 "../../modules/audio_processing:residual_echo_detector",
Sam Zackrissonb0bd0702020-05-12 10:48:19 +0200110 ]
111}