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

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

Issue 2550563003: Split targets mixing .c and .cc sources. (Closed)
Patch Set: Rebased 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 | « webrtc/common_audio/BUILD.gn ('k') | webrtc/modules/audio_device/BUILD.gn » ('j') | 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/webrtc.gni") 9 import("../../build/webrtc.gni")
10 import("audio_coding.gni") 10 import("audio_coding.gni")
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 "codecs/g711/include", 218 "codecs/g711/include",
219 ] 219 ]
220 } 220 }
221 221
222 rtc_static_library("g711") { 222 rtc_static_library("g711") {
223 sources = [ 223 sources = [
224 "codecs/g711/audio_decoder_pcm.cc", 224 "codecs/g711/audio_decoder_pcm.cc",
225 "codecs/g711/audio_decoder_pcm.h", 225 "codecs/g711/audio_decoder_pcm.h",
226 "codecs/g711/audio_encoder_pcm.cc", 226 "codecs/g711/audio_encoder_pcm.cc",
227 "codecs/g711/audio_encoder_pcm.h", 227 "codecs/g711/audio_encoder_pcm.h",
228 "codecs/g711/g711.c",
229 "codecs/g711/g711.h",
230 "codecs/g711/g711_interface.c",
231 "codecs/g711/g711_interface.h",
232 ] 228 ]
233 229
234 public_configs = [ ":g711_config" ] 230 public_configs = [ ":g711_config" ]
235 231
236 deps = [ 232 deps = [
237 ":audio_decoder_interface", 233 ":audio_decoder_interface",
238 ":audio_encoder_interface", 234 ":audio_encoder_interface",
239 ] 235 ]
236 public_deps = [
237 ":g711_c",
238 ]
239 }
240
241 rtc_source_set("g711_c") {
242 visibility = [ ":*" ] # Only targets in this file can depend on this.
243 sources = [
244 "codecs/g711/g711.c",
245 "codecs/g711/g711.h",
246 "codecs/g711/g711_interface.c",
247 "codecs/g711/g711_interface.h",
248 ]
240 } 249 }
241 250
242 config("g722_config") { 251 config("g722_config") {
243 include_dirs = [ 252 include_dirs = [
244 "../../..", 253 "../../..",
245 "codecs/g722/include", 254 "codecs/g722/include",
246 ] 255 ]
247 } 256 }
248 257
249 rtc_static_library("g722") { 258 rtc_static_library("g722") {
250 sources = [ 259 sources = [
251 "codecs/g722/audio_decoder_g722.cc", 260 "codecs/g722/audio_decoder_g722.cc",
252 "codecs/g722/audio_decoder_g722.h", 261 "codecs/g722/audio_decoder_g722.h",
253 "codecs/g722/audio_encoder_g722.cc", 262 "codecs/g722/audio_encoder_g722.cc",
254 "codecs/g722/audio_encoder_g722.h", 263 "codecs/g722/audio_encoder_g722.h",
255 "codecs/g722/g722_decode.c",
256 "codecs/g722/g722_enc_dec.h",
257 "codecs/g722/g722_encode.c",
258 "codecs/g722/g722_interface.c",
259 "codecs/g722/g722_interface.h",
260 ] 264 ]
261 265
262 public_configs = [ ":g722_config" ] 266 public_configs = [ ":g722_config" ]
263 267
264 deps = [ 268 deps = [
265 ":audio_decoder_interface", 269 ":audio_decoder_interface",
266 ":audio_encoder_interface", 270 ":audio_encoder_interface",
267 ] 271 ]
272 public_deps = [
273 ":g722_c",
274 ]
275 }
276
277 rtc_source_set("g722_c") {
278 visibility = [ ":*" ] # Only targets in this file can depend on this.
279 sources = [
280 "codecs/g722/g722_decode.c",
281 "codecs/g722/g722_enc_dec.h",
282 "codecs/g722/g722_encode.c",
283 "codecs/g722/g722_interface.c",
284 "codecs/g722/g722_interface.h",
285 ]
268 } 286 }
269 287
270 config("ilbc_config") { 288 config("ilbc_config") {
271 include_dirs = [ 289 include_dirs = [
272 "../../..", 290 "../../..",
273 "codecs/ilbc/include", 291 "codecs/ilbc/include",
274 ] 292 ]
275 } 293 }
276 294
277 rtc_static_library("ilbc") { 295 rtc_static_library("ilbc") {
278 sources = [ 296 sources = [
297 "codecs/ilbc/audio_decoder_ilbc.cc",
298 "codecs/ilbc/audio_decoder_ilbc.h",
299 "codecs/ilbc/audio_encoder_ilbc.cc",
300 "codecs/ilbc/audio_encoder_ilbc.h",
301 ]
302
303 public_configs = [ ":ilbc_config" ]
304
305 deps = [
306 ":audio_decoder_interface",
307 ":audio_encoder_interface",
308 "../../base:rtc_base_approved",
309 "../../common_audio",
310 ]
311 public_deps = [
312 ":ilbc_c",
313 ]
314 }
315
316 rtc_source_set("ilbc_c") {
317 visibility = [ ":*" ] # Only targets in this file can depend on this.
318 sources = [
279 "codecs/ilbc/abs_quant.c", 319 "codecs/ilbc/abs_quant.c",
280 "codecs/ilbc/abs_quant.h", 320 "codecs/ilbc/abs_quant.h",
281 "codecs/ilbc/abs_quant_loop.c", 321 "codecs/ilbc/abs_quant_loop.c",
282 "codecs/ilbc/abs_quant_loop.h", 322 "codecs/ilbc/abs_quant_loop.h",
283 "codecs/ilbc/audio_decoder_ilbc.cc",
284 "codecs/ilbc/audio_decoder_ilbc.h",
285 "codecs/ilbc/audio_encoder_ilbc.cc",
286 "codecs/ilbc/audio_encoder_ilbc.h",
287 "codecs/ilbc/augmented_cb_corr.c", 323 "codecs/ilbc/augmented_cb_corr.c",
288 "codecs/ilbc/augmented_cb_corr.h", 324 "codecs/ilbc/augmented_cb_corr.h",
289 "codecs/ilbc/bw_expand.c", 325 "codecs/ilbc/bw_expand.c",
290 "codecs/ilbc/bw_expand.h", 326 "codecs/ilbc/bw_expand.h",
291 "codecs/ilbc/cb_construct.c", 327 "codecs/ilbc/cb_construct.c",
292 "codecs/ilbc/cb_construct.h", 328 "codecs/ilbc/cb_construct.h",
293 "codecs/ilbc/cb_mem_energy.c", 329 "codecs/ilbc/cb_mem_energy.c",
294 "codecs/ilbc/cb_mem_energy.h", 330 "codecs/ilbc/cb_mem_energy.h",
295 "codecs/ilbc/cb_mem_energy_augmentation.c", 331 "codecs/ilbc/cb_mem_energy_augmentation.c",
296 "codecs/ilbc/cb_mem_energy_augmentation.h", 332 "codecs/ilbc/cb_mem_energy_augmentation.h",
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 "codecs/ilbc/vq4.h", 453 "codecs/ilbc/vq4.h",
418 "codecs/ilbc/window32_w32.c", 454 "codecs/ilbc/window32_w32.c",
419 "codecs/ilbc/window32_w32.h", 455 "codecs/ilbc/window32_w32.h",
420 "codecs/ilbc/xcorr_coef.c", 456 "codecs/ilbc/xcorr_coef.c",
421 "codecs/ilbc/xcorr_coef.h", 457 "codecs/ilbc/xcorr_coef.h",
422 ] 458 ]
423 459
424 public_configs = [ ":ilbc_config" ] 460 public_configs = [ ":ilbc_config" ]
425 461
426 deps = [ 462 deps = [
427 ":audio_decoder_interface",
428 ":audio_encoder_interface",
429 "../../base:rtc_base_approved",
430 "../../common_audio", 463 "../../common_audio",
431 ] 464 ]
432 } 465 }
433 466
434 rtc_static_library("isac_common") { 467 rtc_static_library("isac_common") {
435 sources = [ 468 sources = [
436 "codecs/isac/audio_encoder_isac_t.h", 469 "codecs/isac/audio_encoder_isac_t.h",
437 "codecs/isac/audio_encoder_isac_t_impl.h", 470 "codecs/isac/audio_encoder_isac_t_impl.h",
438 "codecs/isac/locked_bandwidth_info.cc", 471 "codecs/isac/locked_bandwidth_info.cc",
439 "codecs/isac/locked_bandwidth_info.h", 472 "codecs/isac/locked_bandwidth_info.h",
440 ] 473 ]
441 } 474 }
442 475
443 config("isac_config") { 476 config("isac_config") {
444 include_dirs = [ 477 include_dirs = [
445 "../../..", 478 "../../..",
446 "codecs/isac/main/include", 479 "codecs/isac/main/include",
447 ] 480 ]
448 } 481 }
449 482
450 rtc_static_library("isac") { 483 rtc_static_library("isac") {
451 sources = [ 484 sources = [
485 "codecs/isac/main/source/audio_decoder_isac.cc",
486 "codecs/isac/main/source/audio_encoder_isac.cc",
487 ]
488
489 deps = [
490 ":audio_decoder_interface",
491 ":audio_encoder_interface",
492 ":isac_common",
493 ]
494 public_deps = [
495 ":isac_c",
496 ]
497 }
498
499 rtc_static_library("isac_c") {
500 visibility = [ ":*" ] # Only targets in this file can depend on this.
501 sources = [
452 "codecs/isac/main/include/audio_decoder_isac.h", 502 "codecs/isac/main/include/audio_decoder_isac.h",
453 "codecs/isac/main/include/audio_encoder_isac.h", 503 "codecs/isac/main/include/audio_encoder_isac.h",
454 "codecs/isac/main/include/isac.h", 504 "codecs/isac/main/include/isac.h",
455 "codecs/isac/main/source/arith_routines.c", 505 "codecs/isac/main/source/arith_routines.c",
456 "codecs/isac/main/source/arith_routines.h", 506 "codecs/isac/main/source/arith_routines.h",
457 "codecs/isac/main/source/arith_routines_hist.c", 507 "codecs/isac/main/source/arith_routines_hist.c",
458 "codecs/isac/main/source/arith_routines_logist.c", 508 "codecs/isac/main/source/arith_routines_logist.c",
459 "codecs/isac/main/source/audio_decoder_isac.cc",
460 "codecs/isac/main/source/audio_encoder_isac.cc",
461 "codecs/isac/main/source/bandwidth_estimator.c", 509 "codecs/isac/main/source/bandwidth_estimator.c",
462 "codecs/isac/main/source/bandwidth_estimator.h", 510 "codecs/isac/main/source/bandwidth_estimator.h",
463 "codecs/isac/main/source/codec.h", 511 "codecs/isac/main/source/codec.h",
464 "codecs/isac/main/source/crc.c", 512 "codecs/isac/main/source/crc.c",
465 "codecs/isac/main/source/crc.h", 513 "codecs/isac/main/source/crc.h",
466 "codecs/isac/main/source/decode.c", 514 "codecs/isac/main/source/decode.c",
467 "codecs/isac/main/source/decode_bwe.c", 515 "codecs/isac/main/source/decode_bwe.c",
468 "codecs/isac/main/source/encode.c", 516 "codecs/isac/main/source/encode.c",
469 "codecs/isac/main/source/encode_lpc_swb.c", 517 "codecs/isac/main/source/encode_lpc_swb.c",
470 "codecs/isac/main/source/encode_lpc_swb.h", 518 "codecs/isac/main/source/encode_lpc_swb.h",
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 "codecs/isac/main/source/transform.c", 553 "codecs/isac/main/source/transform.c",
506 ] 554 ]
507 555
508 if (is_linux) { 556 if (is_linux) {
509 libs = [ "m" ] 557 libs = [ "m" ]
510 } 558 }
511 559
512 public_configs = [ ":isac_config" ] 560 public_configs = [ ":isac_config" ]
513 561
514 deps = [ 562 deps = [
515 ":audio_decoder_interface",
516 ":audio_encoder_interface",
517 ":isac_common",
518 "../..:webrtc_common", 563 "../..:webrtc_common",
519 "../../base:rtc_base_approved", 564 "../../base:rtc_base_approved",
520 "../../common_audio", 565 "../../common_audio",
521 ] 566 ]
522 } 567 }
523 568
524 config("isac_fix_config") { 569 config("isac_fix_config") {
525 include_dirs = [ 570 include_dirs = [
526 "../../..", 571 "../../..",
527 "codecs/isac/fix/include", 572 "codecs/isac/fix/include",
528 ] 573 ]
529 } 574 }
530 575
531 rtc_static_library("isac_fix") { 576 rtc_static_library("isac_fix") {
532 sources = [ 577 sources = [
578 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
579 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
580 ]
581
582 public_configs = [ ":isac_fix_config" ]
583
584 deps = [
585 ":audio_decoder_interface",
586 ":audio_encoder_interface",
587 ":isac_common",
588 "../../common_audio",
589 "../../system_wrappers",
590 ]
591 public_deps = [
592 ":isac_fix_c",
593 ]
594
595 if (rtc_build_with_neon) {
596 deps += [ ":isac_neon" ]
597 }
598 }
599
600 rtc_source_set("isac_fix_c") {
601 visibility = [ ":*" ] # Only targets in this file can depend on this.
602 sources = [
533 "codecs/isac/fix/include/audio_decoder_isacfix.h", 603 "codecs/isac/fix/include/audio_decoder_isacfix.h",
534 "codecs/isac/fix/include/audio_encoder_isacfix.h", 604 "codecs/isac/fix/include/audio_encoder_isacfix.h",
535 "codecs/isac/fix/include/isacfix.h", 605 "codecs/isac/fix/include/isacfix.h",
536 "codecs/isac/fix/source/arith_routines.c", 606 "codecs/isac/fix/source/arith_routines.c",
537 "codecs/isac/fix/source/arith_routines_hist.c", 607 "codecs/isac/fix/source/arith_routines_hist.c",
538 "codecs/isac/fix/source/arith_routines_logist.c", 608 "codecs/isac/fix/source/arith_routines_logist.c",
539 "codecs/isac/fix/source/arith_routins.h", 609 "codecs/isac/fix/source/arith_routins.h",
540 "codecs/isac/fix/source/audio_decoder_isacfix.cc",
541 "codecs/isac/fix/source/audio_encoder_isacfix.cc",
542 "codecs/isac/fix/source/bandwidth_estimator.c", 610 "codecs/isac/fix/source/bandwidth_estimator.c",
543 "codecs/isac/fix/source/bandwidth_estimator.h", 611 "codecs/isac/fix/source/bandwidth_estimator.h",
544 "codecs/isac/fix/source/codec.h", 612 "codecs/isac/fix/source/codec.h",
545 "codecs/isac/fix/source/decode.c", 613 "codecs/isac/fix/source/decode.c",
546 "codecs/isac/fix/source/decode_bwe.c", 614 "codecs/isac/fix/source/decode_bwe.c",
547 "codecs/isac/fix/source/decode_plc.c", 615 "codecs/isac/fix/source/decode_plc.c",
548 "codecs/isac/fix/source/encode.c", 616 "codecs/isac/fix/source/encode.c",
549 "codecs/isac/fix/source/entropy_coding.c", 617 "codecs/isac/fix/source/entropy_coding.c",
550 "codecs/isac/fix/source/entropy_coding.h", 618 "codecs/isac/fix/source/entropy_coding.h",
551 "codecs/isac/fix/source/fft.c", 619 "codecs/isac/fix/source/fft.c",
(...skipping 23 matching lines...) Expand all
575 "codecs/isac/fix/source/settings.h", 643 "codecs/isac/fix/source/settings.h",
576 "codecs/isac/fix/source/spectrum_ar_model_tables.c", 644 "codecs/isac/fix/source/spectrum_ar_model_tables.c",
577 "codecs/isac/fix/source/spectrum_ar_model_tables.h", 645 "codecs/isac/fix/source/spectrum_ar_model_tables.h",
578 "codecs/isac/fix/source/structs.h", 646 "codecs/isac/fix/source/structs.h",
579 "codecs/isac/fix/source/transform.c", 647 "codecs/isac/fix/source/transform.c",
580 "codecs/isac/fix/source/transform_tables.c", 648 "codecs/isac/fix/source/transform_tables.c",
581 ] 649 ]
582 650
583 public_configs = [ ":isac_fix_config" ] 651 public_configs = [ ":isac_fix_config" ]
584 652
585 deps = [
586 ":audio_decoder_interface",
587 ":audio_encoder_interface",
588 ":isac_common",
589 "../../common_audio",
590 "../../system_wrappers",
591 ]
592
593 if (rtc_build_with_neon) {
594 deps += [ ":isac_neon" ]
595 }
596
597 if (current_cpu == "arm" && arm_version >= 7) { 653 if (current_cpu == "arm" && arm_version >= 7) {
598 sources += [ 654 sources += [
599 "codecs/isac/fix/source/lattice_armv7.S", 655 "codecs/isac/fix/source/lattice_armv7.S",
600 "codecs/isac/fix/source/pitch_filter_armv6.S", 656 "codecs/isac/fix/source/pitch_filter_armv6.S",
601 ] 657 ]
602 sources -= [ 658 sources -= [
603 "codecs/isac/fix/source/lattice_c.c", 659 "codecs/isac/fix/source/lattice_c.c",
604 "codecs/isac/fix/source/pitch_filter_c.c", 660 "codecs/isac/fix/source/pitch_filter_c.c",
605 ] 661 ]
606 } 662 }
(...skipping 14 matching lines...) Expand all
621 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ] 677 sources += [ "codecs/isac/fix/source/filterbanks_mips.c" ]
622 } 678 }
623 if (mips_dsp_rev > 1) { 679 if (mips_dsp_rev > 1) {
624 sources += [ 680 sources += [
625 "codecs/isac/fix/source/lpc_masking_model_mips.c", 681 "codecs/isac/fix/source/lpc_masking_model_mips.c",
626 "codecs/isac/fix/source/pitch_filter_mips.c", 682 "codecs/isac/fix/source/pitch_filter_mips.c",
627 ] 683 ]
628 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ] 684 sources -= [ "codecs/isac/fix/source/pitch_filter_c.c" ]
629 } 685 }
630 } 686 }
687
688 deps = [
689 "../../common_audio",
690 ]
631 } 691 }
632 692
633 if (rtc_build_with_neon) { 693 if (rtc_build_with_neon) {
634 rtc_static_library("isac_neon") { 694 rtc_static_library("isac_neon") {
635 sources = [ 695 sources = [
636 "codecs/isac/fix/source/entropy_coding_neon.c", 696 "codecs/isac/fix/source/entropy_coding_neon.c",
637 "codecs/isac/fix/source/filterbanks_neon.c", 697 "codecs/isac/fix/source/filterbanks_neon.c",
638 "codecs/isac/fix/source/filters_neon.c", 698 "codecs/isac/fix/source/filters_neon.c",
639 "codecs/isac/fix/source/lattice_neon.c", 699 "codecs/isac/fix/source/lattice_neon.c",
640 "codecs/isac/fix/source/transform_neon.c", 700 "codecs/isac/fix/source/transform_neon.c",
(...skipping 28 matching lines...) Expand all
669 "codecs/pcm16b/include", 729 "codecs/pcm16b/include",
670 ] 730 ]
671 } 731 }
672 732
673 rtc_static_library("pcm16b") { 733 rtc_static_library("pcm16b") {
674 sources = [ 734 sources = [
675 "codecs/pcm16b/audio_decoder_pcm16b.cc", 735 "codecs/pcm16b/audio_decoder_pcm16b.cc",
676 "codecs/pcm16b/audio_decoder_pcm16b.h", 736 "codecs/pcm16b/audio_decoder_pcm16b.h",
677 "codecs/pcm16b/audio_encoder_pcm16b.cc", 737 "codecs/pcm16b/audio_encoder_pcm16b.cc",
678 "codecs/pcm16b/audio_encoder_pcm16b.h", 738 "codecs/pcm16b/audio_encoder_pcm16b.h",
679 "codecs/pcm16b/pcm16b.c",
680 "codecs/pcm16b/pcm16b.h",
681 ] 739 ]
682 740
683 deps = [ 741 deps = [
684 ":audio_decoder_interface", 742 ":audio_decoder_interface",
685 ":audio_encoder_interface", 743 ":audio_encoder_interface",
686 ":g711", 744 ":g711",
687 ] 745 ]
746 public_deps = [
747 ":pcm16b_c",
748 ]
749 public_configs = [ ":pcm16b_config" ]
750 }
751
752 rtc_source_set("pcm16b_c") {
753 visibility = [ ":*" ] # Only targets in this file can depend on this.
754 sources = [
755 "codecs/pcm16b/pcm16b.c",
756 "codecs/pcm16b/pcm16b.h",
757 ]
688 758
689 public_configs = [ ":pcm16b_config" ] 759 public_configs = [ ":pcm16b_config" ]
690 } 760 }
691 761
692 config("opus_config") { 762 config("opus_config") {
693 include_dirs = [ "../../.." ] 763 include_dirs = [ "../../.." ]
694 } 764 }
695 765
696 rtc_static_library("webrtc_opus") { 766 rtc_static_library("webrtc_opus") {
697 sources = [ 767 sources = [
698 "codecs/opus/audio_decoder_opus.cc", 768 "codecs/opus/audio_decoder_opus.cc",
699 "codecs/opus/audio_decoder_opus.h", 769 "codecs/opus/audio_decoder_opus.h",
700 "codecs/opus/audio_encoder_opus.cc", 770 "codecs/opus/audio_encoder_opus.cc",
701 "codecs/opus/audio_encoder_opus.h", 771 "codecs/opus/audio_encoder_opus.h",
702 "codecs/opus/opus_inst.h",
703 "codecs/opus/opus_interface.c",
704 "codecs/opus/opus_interface.h",
705 ] 772 ]
706 773
707 deps = [ 774 deps = [
708 ":audio_decoder_interface", 775 ":audio_decoder_interface",
709 ":audio_encoder_interface", 776 ":audio_encoder_interface",
710 ":audio_network_adaptor", 777 ":audio_network_adaptor",
711 "../../base:rtc_analytics", 778 "../../base:rtc_analytics",
712 "../../base:rtc_base_approved", 779 "../../base:rtc_base_approved",
713 ] 780 ]
781 public_deps = [
782 ":webrtc_opus_c",
783 ]
714 784
715 defines = [] 785 defines = []
716 if (rtc_opus_variable_complexity) { 786 if (rtc_opus_variable_complexity) {
717 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ] 787 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=1" ]
718 } else { 788 } else {
719 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ] 789 defines += [ "WEBRTC_OPUS_VARIABLE_COMPLEXITY=0" ]
720 } 790 }
721 791
722 if (rtc_build_opus) { 792 if (rtc_build_opus) {
793 public_deps += [ rtc_opus_dir ]
794 } else if (build_with_mozilla) {
795 include_dirs = [ getenv("DIST") + "/include/opus" ]
796 }
797 }
798
799 rtc_source_set("webrtc_opus_c") {
800 visibility = [ ":*" ] # Only targets in this file can depend on this.
801 sources = [
802 "codecs/opus/opus_inst.h",
803 "codecs/opus/opus_interface.c",
804 "codecs/opus/opus_interface.h",
805 ]
806
807 if (rtc_build_opus) {
723 public_deps = [ 808 public_deps = [
724 rtc_opus_dir, 809 rtc_opus_dir,
725 ] 810 ]
726 } else if (build_with_mozilla) { 811 } else if (build_with_mozilla) {
727 include_dirs = [ getenv("DIST") + "/include/opus" ] 812 include_dirs = [ getenv("DIST") + "/include/opus" ]
728 } 813 }
814
815 deps = [
816 "../../base:rtc_base_approved",
817 ]
729 } 818 }
730 819
731 if (rtc_enable_protobuf) { 820 if (rtc_enable_protobuf) {
732 proto_library("ana_debug_dump_proto") { 821 proto_library("ana_debug_dump_proto") {
733 sources = [ 822 sources = [
734 "audio_network_adaptor/debug_dump.proto", 823 "audio_network_adaptor/debug_dump.proto",
735 ] 824 ]
736 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor" 825 proto_out_dir = "webrtc/modules/audio_coding/audio_network_adaptor"
737 } 826 }
738 proto_library("ana_config_proto") { 827 proto_library("ana_config_proto") {
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 config("isac_test_warnings_config") { 1650 config("isac_test_warnings_config") {
1562 if (is_win && is_clang) { 1651 if (is_win && is_clang) {
1563 cflags = [ 1652 cflags = [
1564 # Disable warnings failing when compiling with Clang on Windows. 1653 # Disable warnings failing when compiling with Clang on Windows.
1565 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 1654 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
1566 "-Wno-format", 1655 "-Wno-format",
1567 ] 1656 ]
1568 } 1657 }
1569 } 1658 }
1570 1659
1660 rtc_source_set("isac_test_util") {
1661 testonly = true
1662 sources = [
1663 "codecs/isac/main/util/utility.c",
1664 ]
1665 }
1666
1571 rtc_executable("isac_test") { 1667 rtc_executable("isac_test") {
1572 testonly = true 1668 testonly = true
1573 1669
1574 sources = [ 1670 sources = [
1575 "codecs/isac/main/test/simpleKenny.c", 1671 "codecs/isac/main/test/simpleKenny.c",
1576 "codecs/isac/main/util/utility.c",
1577 ] 1672 ]
1578 1673
1579 include_dirs = [ 1674 include_dirs = [
1580 "codecs/isac/main/include", 1675 "codecs/isac/main/include",
1581 "codecs/isac/main/test", 1676 "codecs/isac/main/test",
1582 "codecs/isac/main/util", 1677 "codecs/isac/main/util",
1583 ] 1678 ]
1584 1679
1585 deps = [ 1680 deps = [
1586 ":isac", 1681 ":isac",
1682 ":isac_test_util",
1587 "../../base:rtc_base_approved", 1683 "../../base:rtc_base_approved",
1588 ] 1684 ]
1589 1685
1590 configs += [ ":isac_test_warnings_config" ] 1686 configs += [ ":isac_test_warnings_config" ]
1591 } 1687 }
1592 1688
1593 rtc_executable("g711_test") { 1689 rtc_executable("g711_test") {
1594 testonly = true 1690 testonly = true
1595 1691
1596 sources = [ 1692 sources = [
(...skipping 16 matching lines...) Expand all
1613 ":g722", 1709 ":g722",
1614 "../..:webrtc_common", 1710 "../..:webrtc_common",
1615 ] 1711 ]
1616 } 1712 }
1617 1713
1618 rtc_executable("isac_api_test") { 1714 rtc_executable("isac_api_test") {
1619 testonly = true 1715 testonly = true
1620 1716
1621 sources = [ 1717 sources = [
1622 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc", 1718 "codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc",
1623 "codecs/isac/main/util/utility.c",
1624 ] 1719 ]
1625 1720
1626 deps = [ 1721 deps = [
1627 ":isac", 1722 ":isac",
1723 ":isac_test_util",
1628 "../../base:rtc_base_approved", 1724 "../../base:rtc_base_approved",
1629 ] 1725 ]
1630 1726
1631 include_dirs = [ 1727 include_dirs = [
1632 "codecs/isac/main/include", 1728 "codecs/isac/main/include",
1633 "codecs/isac/main/test", 1729 "codecs/isac/main/test",
1634 "codecs/isac/main/util", 1730 "codecs/isac/main/util",
1635 ] 1731 ]
1636 } 1732 }
1637 1733
1638 rtc_executable("isac_switch_samprate_test") { 1734 rtc_executable("isac_switch_samprate_test") {
1639 testonly = true 1735 testonly = true
1640 1736
1641 sources = [ 1737 sources = [
1642 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc", 1738 "codecs/isac/main/test/SwitchingSampRate/SwitchingSampRate.cc",
1643 "codecs/isac/main/util/utility.c",
1644 ] 1739 ]
1645 1740
1646 deps = [ 1741 deps = [
1647 ":isac", 1742 ":isac",
1743 ":isac_test_util",
1648 ] 1744 ]
1649 1745
1650 include_dirs = [ 1746 include_dirs = [
1651 "codecs/isac/main/include", 1747 "codecs/isac/main/include",
1652 "codecs/isac/main/test", 1748 "codecs/isac/main/test",
1653 "codecs/isac/main/util", 1749 "codecs/isac/main/util",
1654 "../../common_audio/signal_processing/include", 1750 "../../common_audio/signal_processing/include",
1655 ] 1751 ]
1656 } 1752 }
1657 1753
(...skipping 24 matching lines...) Expand all
1682 "../../test:test_support", 1778 "../../test:test_support",
1683 "//testing/gtest", 1779 "//testing/gtest",
1684 ] 1780 ]
1685 1781
1686 if (!build_with_chromium && is_clang) { 1782 if (!build_with_chromium && is_clang) {
1687 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 1783 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
1688 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 1784 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
1689 } 1785 }
1690 } 1786 }
1691 } 1787 }
OLDNEW
« no previous file with comments | « webrtc/common_audio/BUILD.gn ('k') | webrtc/modules/audio_device/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698