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