aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 1 | # Copyright (c) 2014 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 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 9 | import("../../build/webrtc.gni") |
| 10 | |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 11 | group("audio_mixer") { |
| 12 | public_deps = [ |
| 13 | ":audio_frame_manipulator", |
| 14 | ":audio_mixer_impl", |
| 15 | ] |
| 16 | } |
| 17 | |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 18 | rtc_static_library("audio_mixer_impl") { |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 19 | sources = [ |
aleloi | 5d167d6 | 2016-08-24 02:20:54 -0700 | [diff] [blame] | 20 | "audio_mixer_impl.cc", |
| 21 | "audio_mixer_impl.h", |
aleloi | 623427c | 2016-12-08 02:37:58 -0800 | [diff] [blame] | 22 | "default_output_rate_calculator.cc", |
| 23 | "default_output_rate_calculator.h", |
| 24 | "output_rate_calculator.h", |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 25 | ] |
| 26 | |
aleloi | 4496809 | 2016-08-08 10:18:58 -0700 | [diff] [blame] | 27 | public = [ |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 28 | "audio_mixer_impl.h", |
aleloi | 4496809 | 2016-08-08 10:18:58 -0700 | [diff] [blame] | 29 | ] |
| 30 | |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 31 | public_deps = [ |
| 32 | "../../api:audio_mixer_api", |
| 33 | ] |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 34 | |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 35 | deps = [ |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 36 | ":audio_frame_manipulator", |
aleloi | 70f866c | 2016-08-16 02:15:49 -0700 | [diff] [blame] | 37 | "../..:webrtc_common", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 38 | "../../audio/utility:audio_frame_operations", |
aleloi | 8b2233f | 2016-07-28 06:24:14 -0700 | [diff] [blame] | 39 | "../../base:rtc_base_approved", |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 40 | "../../system_wrappers", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 41 | "../audio_processing", |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 42 | ] |
| 43 | } |
| 44 | |
| 45 | rtc_static_library("audio_frame_manipulator") { |
| 46 | visibility = [ |
| 47 | ":*", |
| 48 | "../../modules:*", |
| 49 | ] |
| 50 | |
| 51 | sources = [ |
| 52 | "audio_frame_manipulator.cc", |
| 53 | "audio_frame_manipulator.h", |
| 54 | ] |
| 55 | |
| 56 | deps = [ |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 57 | "../../audio/utility", |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 58 | "../../base:rtc_base_approved", |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 59 | ] |
| 60 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame^] | 61 | |
| 62 | if (rtc_include_tests) { |
| 63 | rtc_source_set("audio_mixer_unittests") { |
| 64 | # When enabled, fails with error audio_mixer_impl_unittest.cc includes a |
| 65 | # private header. Fie default_output_rate_calculator.h is private to the |
| 66 | # target :audio_mixer_impl |
| 67 | check_includes = false |
| 68 | testonly = true |
| 69 | sources = [ |
| 70 | "audio_frame_manipulator_unittest.cc", |
| 71 | "audio_mixer_impl_unittest.cc", |
| 72 | ] |
| 73 | deps = [ |
| 74 | ":audio_frame_manipulator", |
| 75 | ":audio_mixer_impl", |
| 76 | "../../api:audio_mixer_api", |
| 77 | "../../base:rtc_base", |
| 78 | "../../base:rtc_base_approved", |
| 79 | "../../test:test_support", |
| 80 | "//testing/gmock", |
| 81 | ] |
| 82 | |
| 83 | # TODO(jschuh): bugs.webrtc.org/1348: fix this warning. |
| 84 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 85 | if (!build_with_chromium && is_clang) { |
| 86 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 87 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 88 | } |
| 89 | } |
| 90 | } |