Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: webrtc/modules/audio_processing/BUILD.gn

Issue 2558813003: Refactor webrtc/modules/audio_processing for GN check (Closed)
Patch Set: Fixed android errors. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 "vad/voice_activity_detector.h", 154 "vad/voice_activity_detector.h",
155 "vad/voice_gmm_tables.h", 155 "vad/voice_gmm_tables.h",
156 "voice_detection_impl.cc", 156 "voice_detection_impl.cc",
157 "voice_detection_impl.h", 157 "voice_detection_impl.h",
158 ] 158 ]
159 159
160 defines = [] 160 defines = []
161 deps = [ 161 deps = [
162 "../..:webrtc_common", 162 "../..:webrtc_common",
163 "../../audio/utility:audio_frame_operations", 163 "../../audio/utility:audio_frame_operations",
164 "../../base:gtest_prod",
164 "../audio_coding:isac", 165 "../audio_coding:isac",
165 ] 166 ]
166 public_deps = [ 167 public_deps = [
167 ":audio_processing_c", 168 ":audio_processing_c",
168 ] 169 ]
169 170
170 if (apm_debug_dump) { 171 if (apm_debug_dump) {
171 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ] 172 defines += [ "WEBRTC_APM_DEBUG_DUMP=1" ]
172 } else { 173 } else {
173 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ] 174 defines += [ "WEBRTC_APM_DEBUG_DUMP=0" ]
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 "ns/defines.h", 259 "ns/defines.h",
259 "ns/noise_suppression.c", 260 "ns/noise_suppression.c",
260 "ns/noise_suppression.h", 261 "ns/noise_suppression.h",
261 "ns/ns_core.c", 262 "ns/ns_core.c",
262 "ns/ns_core.h", 263 "ns/ns_core.h",
263 "ns/windows_private.h", 264 "ns/windows_private.h",
264 ] 265 ]
265 } 266 }
266 267
267 deps = [ 268 deps = [
269 "../..:webrtc_common",
268 "../../base:rtc_base_approved", 270 "../../base:rtc_base_approved",
269 "../../common_audio", 271 "../../common_audio",
270 "../../system_wrappers", 272 "../../system_wrappers",
271 ] 273 ]
272 } 274 }
273 275
274 if (rtc_enable_protobuf) { 276 if (rtc_enable_protobuf) {
275 proto_library("audioproc_debug_proto") { 277 proto_library("audioproc_debug_proto") {
276 sources = [ 278 sources = [
277 "debug.proto", 279 "debug.proto",
278 ] 280 ]
279 281
280 proto_out_dir = "webrtc/modules/audio_processing" 282 proto_out_dir = "webrtc/modules/audio_processing"
281 } 283 }
282 } 284 }
283 285
284 if (current_cpu == "x86" || current_cpu == "x64") { 286 if (current_cpu == "x86" || current_cpu == "x64") {
285 rtc_static_library("audio_processing_sse2") { 287 rtc_static_library("audio_processing_sse2") {
288 # TODO(ehmaldonado): Remove (bugs.webrtc.org/6828)
289 # Errors on cyclic dependency with :audio_processing if enabled.
290 check_includes = false
291
286 sources = [ 292 sources = [
287 "aec/aec_core_sse2.cc", 293 "aec/aec_core_sse2.cc",
288 "utility/ooura_fft_sse2.cc", 294 "utility/ooura_fft_sse2.cc",
289 "utility/ooura_fft_tables_neon_sse2.h", 295 "utility/ooura_fft_tables_neon_sse2.h",
290 ] 296 ]
291 297
292 if (is_posix) { 298 if (is_posix) {
293 cflags = [ "-msse2" ] 299 cflags = [ "-msse2" ]
294 } 300 }
295 301
296 if (apm_debug_dump) { 302 if (apm_debug_dump) {
297 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] 303 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
298 } else { 304 } else {
299 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] 305 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
300 } 306 }
301 } 307 }
302 } 308 }
303 309
304 if (rtc_build_with_neon) { 310 if (rtc_build_with_neon) {
305 rtc_static_library("audio_processing_neon") { 311 rtc_static_library("audio_processing_neon") {
312 # TODO(ehmaldonado): Remove (bugs.webrtc.org/6828)
313 # Errors on cyclic dependency with :audio_processing if enabled.
314 check_includes = false
315
306 sources = [ 316 sources = [
307 "aec/aec_core_neon.cc", 317 "aec/aec_core_neon.cc",
308 "aecm/aecm_core_neon.cc", 318 "aecm/aecm_core_neon.cc",
309 "utility/ooura_fft_neon.cc", 319 "utility/ooura_fft_neon.cc",
310 "utility/ooura_fft_tables_neon_sse2.h", 320 "utility/ooura_fft_tables_neon_sse2.h",
311 ] 321 ]
312 322
313 if (current_cpu != "arm64") { 323 if (current_cpu != "arm64") {
314 # Enable compilation for the NEON instruction set. This is needed 324 # Enable compilation for the NEON instruction set. This is needed
315 # since //build/config/arm.gni only enables NEON for iOS, not Android. 325 # since //build/config/arm.gni only enables NEON for iOS, not Android.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 } 365 }
356 366
357 # Disable LTO on NEON targets due to compiler bug. 367 # Disable LTO on NEON targets due to compiler bug.
358 # TODO(fdegans): Enable this. See crbug.com/408997. 368 # TODO(fdegans): Enable this. See crbug.com/408997.
359 if (rtc_use_lto) { 369 if (rtc_use_lto) {
360 cflags -= [ 370 cflags -= [
361 "-flto", 371 "-flto",
362 "-ffat-lto-objects", 372 "-ffat-lto-objects",
363 ] 373 ]
364 } 374 }
375 deps = [
376 ":audio_processing_c",
377 "../../base:rtc_base_approved",
378 ]
365 } 379 }
366 } 380 }
367 381
368 if (rtc_include_tests) { 382 if (rtc_include_tests) {
369 group("audio_processing_tests") { 383 group("audio_processing_tests") {
370 testonly = true 384 testonly = true
371 public_deps = [ 385 public_deps = [
372 ":audioproc_f", 386 ":audioproc_f",
373 ":audioproc_test_utils", 387 ":audioproc_test_utils",
374 ":click_annotate", 388 ":click_annotate",
(...skipping 15 matching lines...) Expand all
390 testonly = true 404 testonly = true
391 sources = [ 405 sources = [
392 "test/unpack.cc", 406 "test/unpack.cc",
393 ] 407 ]
394 408
395 deps = [ 409 deps = [
396 ":audio_processing", 410 ":audio_processing",
397 ":audioproc_debug_proto", 411 ":audioproc_debug_proto",
398 ":audioproc_protobuf_utils", 412 ":audioproc_protobuf_utils",
399 ":audioproc_test_utils", 413 ":audioproc_test_utils",
414 "../..:webrtc_common",
415 "../../base:rtc_base_approved",
400 "../../common_audio", 416 "../../common_audio",
401 "../../system_wrappers:system_wrappers_default", 417 "../../system_wrappers:system_wrappers_default",
402 "//third_party/gflags:gflags", 418 "//third_party/gflags:gflags",
403 ] 419 ]
404 } # unpack_aecdump 420 } # unpack_aecdump
405 421
406 rtc_executable("audioproc_f") { 422 rtc_executable("audioproc_f") {
407 testonly = true 423 testonly = true
408 sources = [ 424 sources = [
409 "test/aec_dump_based_simulator.cc", 425 "test/aec_dump_based_simulator.cc",
410 "test/aec_dump_based_simulator.h", 426 "test/aec_dump_based_simulator.h",
411 "test/audio_processing_simulator.cc", 427 "test/audio_processing_simulator.cc",
412 "test/audio_processing_simulator.h", 428 "test/audio_processing_simulator.h",
413 "test/audioproc_float.cc", 429 "test/audioproc_float.cc",
414 "test/wav_based_simulator.cc", 430 "test/wav_based_simulator.cc",
415 "test/wav_based_simulator.h", 431 "test/wav_based_simulator.h",
416 ] 432 ]
417 433
418 deps = [ 434 deps = [
419 ":audio_processing", 435 ":audio_processing",
420 ":audioproc_debug_proto", 436 ":audioproc_debug_proto",
421 ":audioproc_protobuf_utils", 437 ":audioproc_protobuf_utils",
422 ":audioproc_test_utils", 438 ":audioproc_test_utils",
439 "../../base:rtc_base_approved",
440 "../../common_audio:common_audio",
423 "../../system_wrappers", 441 "../../system_wrappers",
424 "../../system_wrappers:system_wrappers_default", 442 "../../system_wrappers:system_wrappers_default",
425 "../../test:test_support", 443 "../../test:test_support",
426 "//testing/gtest", 444 "//testing/gtest",
427 "//third_party/gflags:gflags", 445 "//third_party/gflags:gflags",
428 ] 446 ]
429 } # audioproc_f 447 } # audioproc_f
430 448
431 rtc_source_set("audioproc_test_utils") { 449 rtc_source_set("audioproc_test_utils") {
432 testonly = true 450 testonly = true
433 sources = [ 451 sources = [
434 "test/audio_buffer_tools.cc", 452 "test/audio_buffer_tools.cc",
435 "test/audio_buffer_tools.h", 453 "test/audio_buffer_tools.h",
436 "test/performance_timer.cc", 454 "test/performance_timer.cc",
437 "test/performance_timer.h", 455 "test/performance_timer.h",
438 "test/simulator_buffers.cc", 456 "test/simulator_buffers.cc",
439 "test/simulator_buffers.h", 457 "test/simulator_buffers.h",
440 "test/test_utils.cc", 458 "test/test_utils.cc",
441 "test/test_utils.h", 459 "test/test_utils.h",
442 ] 460 ]
443 461
444 deps = [ 462 deps = [
463 ":audio_processing",
445 "../../base:rtc_base_approved", 464 "../../base:rtc_base_approved",
446 "../../common_audio", 465 "../../common_audio",
466 "../../system_wrappers:system_wrappers",
447 ] 467 ]
448 } 468 }
449 469
450 rtc_executable("transient_suppression_test") { 470 rtc_executable("transient_suppression_test") {
451 testonly = true 471 testonly = true
452 sources = [ 472 sources = [
453 "transient/file_utils.cc", 473 "transient/file_utils.cc",
454 "transient/file_utils.h", 474 "transient/file_utils.h",
455 "transient/transient_suppression_test.cc", 475 "transient/transient_suppression_test.cc",
456 ] 476 ]
457 deps = [ 477 deps = [
458 ":audio_processing", 478 ":audio_processing",
479 "../..:webrtc_common",
480 "../../common_audio:common_audio",
459 "../../system_wrappers:metrics_default", 481 "../../system_wrappers:metrics_default",
482 "../../system_wrappers:system_wrappers",
460 "../../test:test_support", 483 "../../test:test_support",
461 "//testing/gtest", 484 "//testing/gtest",
462 "//third_party/gflags", 485 "//third_party/gflags",
463 ] 486 ]
464 } 487 }
465 488
466 rtc_executable("click_annotate") { 489 rtc_executable("click_annotate") {
467 testonly = true 490 testonly = true
468 sources = [ 491 sources = [
469 "transient/click_annotate.cc", 492 "transient/click_annotate.cc",
470 "transient/file_utils.cc", 493 "transient/file_utils.cc",
471 "transient/file_utils.h", 494 "transient/file_utils.h",
472 ] 495 ]
473 deps = [ 496 deps = [
474 ":audio_processing", 497 ":audio_processing",
498 "../..:webrtc_common",
475 "../../system_wrappers:metrics_default", 499 "../../system_wrappers:metrics_default",
500 "../../system_wrappers:system_wrappers",
476 ] 501 ]
477 } 502 }
478 503
479 rtc_executable("nonlinear_beamformer_test") { 504 rtc_executable("nonlinear_beamformer_test") {
480 testonly = true 505 testonly = true
481 sources = [ 506 sources = [
482 "beamformer/nonlinear_beamformer_test.cc", 507 "beamformer/nonlinear_beamformer_test.cc",
483 ] 508 ]
484 deps = [ 509 deps = [
485 ":audio_processing", 510 ":audio_processing",
486 ":audioproc_test_utils", 511 ":audioproc_test_utils",
512 "../../base:rtc_base_approved",
513 "../../common_audio:common_audio",
487 "../../system_wrappers:metrics_default", 514 "../../system_wrappers:metrics_default",
488 "//third_party/gflags", 515 "//third_party/gflags",
489 ] 516 ]
490 } 517 }
491 518
492 if (rtc_enable_intelligibility_enhancer) { 519 if (rtc_enable_intelligibility_enhancer) {
493 rtc_executable("intelligibility_proc") { 520 rtc_executable("intelligibility_proc") {
494 testonly = true 521 testonly = true
495 sources = [ 522 sources = [
496 "intelligibility/test/intelligibility_proc.cc", 523 "intelligibility/test/intelligibility_proc.cc",
(...skipping 18 matching lines...) Expand all
515 } 542 }
516 543
517 rtc_static_library("audioproc_protobuf_utils") { 544 rtc_static_library("audioproc_protobuf_utils") {
518 sources = [ 545 sources = [
519 "test/protobuf_utils.cc", 546 "test/protobuf_utils.cc",
520 "test/protobuf_utils.h", 547 "test/protobuf_utils.h",
521 ] 548 ]
522 549
523 deps = [ 550 deps = [
524 ":audioproc_debug_proto", 551 ":audioproc_debug_proto",
552 "../..:webrtc_common",
553 "../../base:rtc_base_approved",
525 ] 554 ]
526 } 555 }
527 } 556 }
528 } 557 }
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698