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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../../webrtc.gni") |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 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", |
aleloi | 24899e5 | 2017-02-21 05:06:29 -0800 | [diff] [blame] | 24 | "frame_combiner.cc", |
| 25 | "frame_combiner.h", |
aleloi | 623427c | 2016-12-08 02:37:58 -0800 | [diff] [blame] | 26 | "output_rate_calculator.h", |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 27 | ] |
| 28 | |
aleloi | 4496809 | 2016-08-08 10:18:58 -0700 | [diff] [blame] | 29 | public = [ |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 30 | "audio_mixer_impl.h", |
aleloi | 24899e5 | 2017-02-21 05:06:29 -0800 | [diff] [blame] | 31 | "default_output_rate_calculator.h", # For creating a mixer with limiter disabled. |
| 32 | "frame_combiner.h", |
aleloi | 4496809 | 2016-08-08 10:18:58 -0700 | [diff] [blame] | 33 | ] |
| 34 | |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 35 | public_deps = [ |
| 36 | "../../api:audio_mixer_api", |
| 37 | ] |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 38 | |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 39 | deps = [ |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 40 | ":audio_frame_manipulator", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame^] | 41 | "..:module_api", |
aleloi | 70f866c | 2016-08-16 02:15:49 -0700 | [diff] [blame] | 42 | "../..:webrtc_common", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 43 | "../../audio/utility:audio_frame_operations", |
aleloi | 8b2233f | 2016-07-28 06:24:14 -0700 | [diff] [blame] | 44 | "../../base:rtc_base_approved", |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 45 | "../../system_wrappers", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 46 | "../audio_processing", |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 47 | ] |
| 48 | } |
| 49 | |
| 50 | rtc_static_library("audio_frame_manipulator") { |
| 51 | visibility = [ |
| 52 | ":*", |
| 53 | "../../modules:*", |
| 54 | ] |
| 55 | |
| 56 | sources = [ |
| 57 | "audio_frame_manipulator.cc", |
| 58 | "audio_frame_manipulator.h", |
| 59 | ] |
| 60 | |
| 61 | deps = [ |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame^] | 62 | "..:module_api", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 63 | "../../audio/utility", |
aleloi | 201dfe9 | 2016-10-20 05:06:39 -0700 | [diff] [blame] | 64 | "../../base:rtc_base_approved", |
aleloi | 77ad394 | 2016-07-04 06:33:02 -0700 | [diff] [blame] | 65 | ] |
| 66 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 67 | |
| 68 | if (rtc_include_tests) { |
| 69 | rtc_source_set("audio_mixer_unittests") { |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 70 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 71 | |
| 72 | # Skip restricting visibility on mobile platforms since the tests on those |
| 73 | # gets additional generated targets which would require many lines here to |
| 74 | # cover (which would be confusing to read and hard to maintain). |
| 75 | if (!is_android && !is_ios) { |
| 76 | visibility = [ "//webrtc/modules:modules_unittests" ] |
| 77 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 78 | sources = [ |
| 79 | "audio_frame_manipulator_unittest.cc", |
| 80 | "audio_mixer_impl_unittest.cc", |
aleloi | 24899e5 | 2017-02-21 05:06:29 -0800 | [diff] [blame] | 81 | "frame_combiner_unittest.cc", |
aleloi | 2c9306e | 2017-03-29 04:25:16 -0700 | [diff] [blame] | 82 | "gain_change_calculator.cc", |
| 83 | "gain_change_calculator.h", |
| 84 | "sine_wave_generator.cc", |
| 85 | "sine_wave_generator.h", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 86 | ] |
| 87 | deps = [ |
| 88 | ":audio_frame_manipulator", |
| 89 | ":audio_mixer_impl", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame^] | 90 | "..:module_api", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 91 | "../../api:audio_mixer_api", |
aleloi | 2c9306e | 2017-03-29 04:25:16 -0700 | [diff] [blame] | 92 | "../../audio/utility:audio_frame_operations", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 93 | "../../base:rtc_base", |
| 94 | "../../base:rtc_base_approved", |
| 95 | "../../test:test_support", |
| 96 | "//testing/gmock", |
| 97 | ] |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 98 | } |
| 99 | } |