OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 import("//third_party/protobuf/proto_library.gni") | 10 import("//third_party/protobuf/proto_library.gni") |
11 import("../../build/webrtc.gni") | 11 import("../../build/webrtc.gni") |
12 | 12 |
13 declare_args() { | 13 declare_args() { |
14 # Outputs some low-level debug files. | |
15 aec_debug_dump = false | |
16 | |
17 # Disables the usual mode where we trust the reported system delay | 14 # Disables the usual mode where we trust the reported system delay |
18 # values the AEC receives. The corresponding define is set appropriately | 15 # values the AEC receives. The corresponding define is set appropriately |
19 # in the code, but it can be force-enabled here for testing. | 16 # in the code, but it can be force-enabled here for testing. |
20 aec_untrusted_delay_for_testing = false | 17 aec_untrusted_delay_for_testing = false |
21 } | 18 } |
22 | 19 |
23 source_set("audio_processing") { | 20 source_set("audio_processing") { |
24 sources = [ | 21 sources = [ |
25 "aec/aec_core.cc", | 22 "aec/aec_core.cc", |
26 "aec/aec_core.h", | 23 "aec/aec_core.h", |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 153 |
157 configs += [ "../..:common_config" ] | 154 configs += [ "../..:common_config" ] |
158 public_configs = [ "../..:common_inherited_config" ] | 155 public_configs = [ "../..:common_inherited_config" ] |
159 | 156 |
160 defines = [] | 157 defines = [] |
161 deps = [ | 158 deps = [ |
162 "../..:webrtc_common", | 159 "../..:webrtc_common", |
163 "../audio_coding:isac", | 160 "../audio_coding:isac", |
164 ] | 161 ] |
165 | 162 |
166 if (aec_debug_dump) { | 163 if (apm_debug_dump) { |
167 defines += [ "WEBRTC_AEC_DEBUG_DUMP=1" ] | 164 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
168 } else { | 165 } else { |
169 defines += [ "WEBRTC_AEC_DEBUG_DUMP=0" ] | 166 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
170 } | 167 } |
171 | 168 |
172 if (aec_untrusted_delay_for_testing) { | 169 if (aec_untrusted_delay_for_testing) { |
173 defines += [ "WEBRTC_UNTRUSTED_DELAY" ] | 170 defines += [ "WEBRTC_UNTRUSTED_DELAY" ] |
174 } | 171 } |
175 | 172 |
176 if (rtc_enable_protobuf) { | 173 if (rtc_enable_protobuf) { |
177 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] | 174 defines += [ "WEBRTC_AUDIOPROC_DEBUG_DUMP" ] |
178 deps += [ ":audioproc_debug_proto" ] | 175 deps += [ ":audioproc_debug_proto" ] |
179 } | 176 } |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 "aec/aec_rdft_sse2.cc", | 260 "aec/aec_rdft_sse2.cc", |
264 ] | 261 ] |
265 | 262 |
266 if (is_posix) { | 263 if (is_posix) { |
267 cflags = [ "-msse2" ] | 264 cflags = [ "-msse2" ] |
268 } | 265 } |
269 | 266 |
270 configs += [ "../..:common_config" ] | 267 configs += [ "../..:common_config" ] |
271 public_configs = [ "../..:common_inherited_config" ] | 268 public_configs = [ "../..:common_inherited_config" ] |
272 | 269 |
273 if (aec_debug_dump) { | 270 if (apm_debug_dump) { |
274 defines = [ "WEBRTC_AEC_DEBUG_DUMP=1" ] | 271 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
275 } else { | 272 } else { |
276 defines = [ "WEBRTC_AEC_DEBUG_DUMP=0" ] | 273 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
277 } | 274 } |
278 } | 275 } |
279 } | 276 } |
280 | 277 |
281 if (rtc_build_with_neon) { | 278 if (rtc_build_with_neon) { |
282 source_set("audio_processing_neon") { | 279 source_set("audio_processing_neon") { |
283 sources = [ | 280 sources = [ |
284 "aec/aec_core_neon.cc", | 281 "aec/aec_core_neon.cc", |
285 "aec/aec_rdft_neon.cc", | 282 "aec/aec_rdft_neon.cc", |
286 "aecm/aecm_core_neon.cc", | 283 "aecm/aecm_core_neon.cc", |
(...skipping 17 matching lines...) Expand all Loading... |
304 ] | 301 ] |
305 } | 302 } |
306 | 303 |
307 configs += [ "../..:common_config" ] | 304 configs += [ "../..:common_config" ] |
308 public_configs = [ "../..:common_inherited_config" ] | 305 public_configs = [ "../..:common_inherited_config" ] |
309 | 306 |
310 deps = [ | 307 deps = [ |
311 "../../common_audio", | 308 "../../common_audio", |
312 ] | 309 ] |
313 | 310 |
314 if (aec_debug_dump) { | 311 if (apm_debug_dump) { |
315 defines = [ "WEBRTC_AEC_DEBUG_DUMP=1" ] | 312 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
316 } else { | 313 } else { |
317 defines = [ "WEBRTC_AEC_DEBUG_DUMP=0" ] | 314 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
318 } | 315 } |
319 } | 316 } |
320 } | 317 } |
321 | 318 |
322 if (rtc_include_tests) { | 319 if (rtc_include_tests) { |
323 executable("audioproc") { | 320 executable("audioproc") { |
324 testonly = true | 321 testonly = true |
325 sources = [ | 322 sources = [ |
326 "test/process_test.cc", | 323 "test/process_test.cc", |
327 ] | 324 ] |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 "test/protobuf_utils.cc", | 480 "test/protobuf_utils.cc", |
484 "test/protobuf_utils.h", | 481 "test/protobuf_utils.h", |
485 ] | 482 ] |
486 | 483 |
487 deps = [ | 484 deps = [ |
488 ":audioproc_debug_proto", | 485 ":audioproc_debug_proto", |
489 ] | 486 ] |
490 } | 487 } |
491 } | 488 } |
492 } | 489 } |
OLD | NEW |