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 | |
| 9 | import("../build/webrtc.gni") |
| 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", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 33 | "../base:rtc_base_approved", |
ossu | f515ab8 | 2016-12-07 04:52:58 -0800 | [diff] [blame^] | 34 | "../call:call_interfaces", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 35 | "../common_audio", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 36 | "../modules/audio_device", |
| 37 | "../modules/audio_processing", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 38 | "../system_wrappers", |
Tommi | f888bb5 | 2015-12-12 01:37:01 +0100 | [diff] [blame] | 39 | "../voice_engine", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 40 | ] |
| 41 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 42 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 43 | rtc_source_set("audio_tests") { |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 44 | testonly = true |
| 45 | sources = [ |
| 46 | "audio_receive_stream_unittest.cc", |
| 47 | "audio_send_stream_unittest.cc", |
| 48 | "audio_state_unittest.cc", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 49 | "utility/audio_frame_operations_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 50 | ] |
| 51 | deps = [ |
| 52 | ":audio", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 53 | "../api:mock_audio_mixer", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 54 | "../base:rtc_base_approved", |
aleloi | dd31071 | 2016-11-17 06:28:59 -0800 | [diff] [blame] | 55 | "../modules/audio_device:mock_audio_device", |
aleloi | 04c0722 | 2016-11-22 06:42:53 -0800 | [diff] [blame] | 56 | "../modules/audio_mixer:audio_mixer_impl", |
aleloi | 10111bc | 2016-11-17 06:48:48 -0800 | [diff] [blame] | 57 | "../test:test_common", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 58 | "../test:test_support", |
| 59 | "utility:audio_frame_operations", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 60 | "//testing/gmock", |
| 61 | "//testing/gtest", |
| 62 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 63 | if (!build_with_chromium && is_clang) { |
| 64 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 65 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 66 | } |
| 67 | } |
| 68 | } |