Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 1 | # Copyright (c) 2015 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") |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 10 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 11 | rtc_static_library("audio") { |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 12 | sources = [ |
| 13 | "audio_receive_stream.cc", |
| 14 | "audio_receive_stream.h", |
solenberg | c7a8b08 | 2015-10-16 14:35:07 -0700 | [diff] [blame] | 15 | "audio_send_stream.cc", |
| 16 | "audio_send_stream.h", |
solenberg | 566ef24 | 2015-11-06 15:34:49 -0800 | [diff] [blame] | 17 | "audio_state.cc", |
| 18 | "audio_state.h", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 19 | "audio_transport_proxy.cc", |
| 20 | "audio_transport_proxy.h", |
Fredrik Solenberg | 4f4ec0a | 2015-10-22 10:49:27 +0200 | [diff] [blame] | 21 | "conversion.h", |
| 22 | "scoped_voe_interface.h", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 23 | ] |
| 24 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 25 | if (!build_with_chromium && is_clang) { |
| 26 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 27 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | deps = [ |
| 31 | "..:webrtc_common", |
aleloi | aed581a | 2016-10-20 06:32:39 -0700 | [diff] [blame] | 32 | "../api:audio_mixer_api", |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 33 | "../api:call_api", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 34 | "../base:rtc_base_approved", |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 35 | "../base:rtc_task_queue", |
ossu | f515ab8 | 2016-12-07 04:52:58 -0800 | [diff] [blame] | 36 | "../call:call_interfaces", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 37 | "../common_audio", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 38 | "../modules/audio_device", |
| 39 | "../modules/audio_processing", |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 40 | "../modules/congestion_controller:congestion_controller", |
| 41 | "../modules/pacing:pacing", |
| 42 | "../modules/remote_bitrate_estimator:remote_bitrate_estimator", |
| 43 | "../modules/rtp_rtcp:rtp_rtcp", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 44 | "../system_wrappers", |
Tommi | f888bb5 | 2015-12-12 01:37:01 +0100 | [diff] [blame] | 45 | "../voice_engine", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 46 | ] |
| 47 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 48 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 49 | rtc_source_set("audio_tests") { |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 50 | testonly = true |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 51 | |
| 52 | # TODO(kjellander): Remove (bugs.webrtc.org/6828) |
| 53 | # This needs remote_bitrate_estimator to be moved to webrtc/api first. |
| 54 | check_includes = false |
| 55 | |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 56 | sources = [ |
| 57 | "audio_receive_stream_unittest.cc", |
| 58 | "audio_send_stream_unittest.cc", |
| 59 | "audio_state_unittest.cc", |
| 60 | ] |
| 61 | deps = [ |
| 62 | ":audio", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 63 | "../api:mock_audio_mixer", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 64 | "../base:rtc_base_approved", |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 65 | "../base:rtc_task_queue", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 66 | "../modules/audio_device:mock_audio_device", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 67 | "../modules/audio_mixer:audio_mixer_impl", |
kjellander | 676e08f | 2016-12-07 08:23:27 -0800 | [diff] [blame] | 68 | "../modules/congestion_controller:congestion_controller", |
| 69 | "../modules/pacing:pacing", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 70 | "../test:test_common", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 71 | "../test:test_support", |
ehmaldonado | 894c2bb | 2017-01-05 06:03:24 -0800 | [diff] [blame] | 72 | "utility:utility_tests", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 73 | "//testing/gmock", |
| 74 | "//testing/gtest", |
| 75 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 76 | if (!build_with_chromium && is_clang) { |
| 77 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 78 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 79 | } |
| 80 | } |
| 81 | } |