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") |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 "vad/vad_audio_proc_internal.h", | 144 "vad/vad_audio_proc_internal.h", |
145 "vad/vad_circular_buffer.cc", | 145 "vad/vad_circular_buffer.cc", |
146 "vad/vad_circular_buffer.h", | 146 "vad/vad_circular_buffer.h", |
147 "vad/voice_activity_detector.cc", | 147 "vad/voice_activity_detector.cc", |
148 "vad/voice_activity_detector.h", | 148 "vad/voice_activity_detector.h", |
149 "vad/voice_gmm_tables.h", | 149 "vad/voice_gmm_tables.h", |
150 "voice_detection_impl.cc", | 150 "voice_detection_impl.cc", |
151 "voice_detection_impl.h", | 151 "voice_detection_impl.h", |
152 ] | 152 ] |
153 | 153 |
154 public_configs = [ "../..:common_inherited_config" ] | |
155 | |
156 defines = [] | 154 defines = [] |
157 deps = [ | 155 deps = [ |
158 "../..:webrtc_common", | 156 "../..:webrtc_common", |
159 "../audio_coding:isac", | 157 "../audio_coding:isac", |
160 ] | 158 ] |
161 | 159 |
162 if (apm_debug_dump) { | 160 if (apm_debug_dump) { |
163 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] | 161 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
164 } else { | 162 } else { |
165 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] | 163 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 rtc_source_set("audio_processing_sse2") { | 254 rtc_source_set("audio_processing_sse2") { |
257 sources = [ | 255 sources = [ |
258 "aec/aec_core_sse2.cc", | 256 "aec/aec_core_sse2.cc", |
259 "aec/aec_rdft_sse2.cc", | 257 "aec/aec_rdft_sse2.cc", |
260 ] | 258 ] |
261 | 259 |
262 if (is_posix) { | 260 if (is_posix) { |
263 cflags = [ "-msse2" ] | 261 cflags = [ "-msse2" ] |
264 } | 262 } |
265 | 263 |
266 public_configs = [ "../..:common_inherited_config" ] | |
267 | |
268 if (apm_debug_dump) { | 264 if (apm_debug_dump) { |
269 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] | 265 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
270 } else { | 266 } else { |
271 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] | 267 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
272 } | 268 } |
273 } | 269 } |
274 } | 270 } |
275 | 271 |
276 if (rtc_build_with_neon) { | 272 if (rtc_build_with_neon) { |
277 rtc_source_set("audio_processing_neon") { | 273 rtc_source_set("audio_processing_neon") { |
(...skipping 14 matching lines...) Expand all Loading... |
292 | 288 |
293 # Disable LTO on NEON targets due to compiler bug. | 289 # Disable LTO on NEON targets due to compiler bug. |
294 # TODO(fdegans): Enable this. See crbug.com/408997. | 290 # TODO(fdegans): Enable this. See crbug.com/408997. |
295 if (rtc_use_lto) { | 291 if (rtc_use_lto) { |
296 cflags -= [ | 292 cflags -= [ |
297 "-flto", | 293 "-flto", |
298 "-ffat-lto-objects", | 294 "-ffat-lto-objects", |
299 ] | 295 ] |
300 } | 296 } |
301 | 297 |
302 public_configs = [ "../..:common_inherited_config" ] | |
303 | |
304 deps = [ | 298 deps = [ |
305 "../../common_audio", | 299 "../../common_audio", |
306 ] | 300 ] |
307 | 301 |
308 if (apm_debug_dump) { | 302 if (apm_debug_dump) { |
309 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] | 303 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] |
310 } else { | 304 } else { |
311 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] | 305 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] |
312 } | 306 } |
313 } | 307 } |
314 } | 308 } |
315 | 309 |
316 if (rtc_include_tests) { | 310 if (rtc_include_tests) { |
317 rtc_executable("audioproc") { | 311 rtc_executable("audioproc") { |
318 testonly = true | 312 testonly = true |
319 sources = [ | 313 sources = [ |
320 "test/process_test.cc", | 314 "test/process_test.cc", |
321 ] | 315 ] |
322 | 316 |
323 public_configs = [ "../..:common_inherited_config" ] | |
324 | |
325 deps = [ | 317 deps = [ |
326 ":audio_processing", | 318 ":audio_processing", |
327 ":audioproc_debug_proto", | 319 ":audioproc_debug_proto", |
328 ":audioproc_protobuf_utils", | 320 ":audioproc_protobuf_utils", |
329 ":audioproc_test_utils", | 321 ":audioproc_test_utils", |
330 "../../system_wrappers", | 322 "../../system_wrappers", |
331 "../../system_wrappers:system_wrappers_default", | 323 "../../system_wrappers:system_wrappers_default", |
332 "../../test:test_support", | 324 "../../test:test_support", |
333 "//testing/gtest", | 325 "//testing/gtest", |
334 "//third_party/gflags:gflags", | 326 "//third_party/gflags:gflags", |
335 ] | 327 ] |
336 } # audioproc | 328 } # audioproc |
337 | 329 |
338 rtc_executable("unpack_aecdump") { | 330 rtc_executable("unpack_aecdump") { |
339 testonly = true | 331 testonly = true |
340 sources = [ | 332 sources = [ |
341 "test/unpack.cc", | 333 "test/unpack.cc", |
342 ] | 334 ] |
343 | 335 |
344 public_configs = [ "../..:common_inherited_config" ] | |
345 | |
346 deps = [ | 336 deps = [ |
347 ":audio_processing", | 337 ":audio_processing", |
348 ":audioproc_debug_proto", | 338 ":audioproc_debug_proto", |
349 ":audioproc_protobuf_utils", | 339 ":audioproc_protobuf_utils", |
350 ":audioproc_test_utils", | 340 ":audioproc_test_utils", |
351 "../../common_audio", | 341 "../../common_audio", |
352 "../../system_wrappers:system_wrappers_default", | 342 "../../system_wrappers:system_wrappers_default", |
353 "//third_party/gflags:gflags", | 343 "//third_party/gflags:gflags", |
354 ] | 344 ] |
355 } # unpack_aecdump | 345 } # unpack_aecdump |
356 | 346 |
357 rtc_executable("audioproc_f") { | 347 rtc_executable("audioproc_f") { |
358 testonly = true | 348 testonly = true |
359 sources = [ | 349 sources = [ |
360 "test/aec_dump_based_simulator.cc", | 350 "test/aec_dump_based_simulator.cc", |
361 "test/aec_dump_based_simulator.h", | 351 "test/aec_dump_based_simulator.h", |
362 "test/audio_processing_simulator.cc", | 352 "test/audio_processing_simulator.cc", |
363 "test/audio_processing_simulator.h", | 353 "test/audio_processing_simulator.h", |
364 "test/audioproc_float.cc", | 354 "test/audioproc_float.cc", |
365 "test/wav_based_simulator.cc", | 355 "test/wav_based_simulator.cc", |
366 "test/wav_based_simulator.h", | 356 "test/wav_based_simulator.h", |
367 ] | 357 ] |
368 | 358 |
369 public_configs = [ "../..:common_inherited_config" ] | |
370 | |
371 deps = [ | 359 deps = [ |
372 ":audio_processing", | 360 ":audio_processing", |
373 ":audioproc_debug_proto", | 361 ":audioproc_debug_proto", |
374 ":audioproc_protobuf_utils", | 362 ":audioproc_protobuf_utils", |
375 ":audioproc_test_utils", | 363 ":audioproc_test_utils", |
376 "../../system_wrappers", | 364 "../../system_wrappers", |
377 "../../system_wrappers:system_wrappers_default", | 365 "../../system_wrappers:system_wrappers_default", |
378 "../../test:test_support", | 366 "../../test:test_support", |
379 "//testing/gtest", | 367 "//testing/gtest", |
380 "//third_party/gflags:gflags", | 368 "//third_party/gflags:gflags", |
381 ] | 369 ] |
382 } # audioproc_f | 370 } # audioproc_f |
383 | 371 |
384 rtc_source_set("audioproc_test_utils") { | 372 rtc_source_set("audioproc_test_utils") { |
385 testonly = true | 373 testonly = true |
386 sources = [ | 374 sources = [ |
387 "test/audio_buffer_tools.cc", | 375 "test/audio_buffer_tools.cc", |
388 "test/audio_buffer_tools.h", | 376 "test/audio_buffer_tools.h", |
389 "test/test_utils.cc", | 377 "test/test_utils.cc", |
390 "test/test_utils.h", | 378 "test/test_utils.h", |
391 ] | 379 ] |
392 | 380 |
393 public_configs = [ "../..:common_inherited_config" ] | |
394 | |
395 deps = [ | 381 deps = [ |
396 "../../base:rtc_base_approved", | 382 "../../base:rtc_base_approved", |
397 "../../common_audio", | 383 "../../common_audio", |
398 ] | 384 ] |
399 } | 385 } |
400 | 386 |
401 rtc_executable("transient_suppression_test") { | 387 rtc_executable("transient_suppression_test") { |
402 testonly = true | 388 testonly = true |
403 sources = [ | 389 sources = [ |
404 "transient/file_utils.cc", | 390 "transient/file_utils.cc", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 "test/protobuf_utils.cc", | 456 "test/protobuf_utils.cc", |
471 "test/protobuf_utils.h", | 457 "test/protobuf_utils.h", |
472 ] | 458 ] |
473 | 459 |
474 deps = [ | 460 deps = [ |
475 ":audioproc_debug_proto", | 461 ":audioproc_debug_proto", |
476 ] | 462 ] |
477 } | 463 } |
478 } | 464 } |
479 } | 465 } |
OLD | NEW |