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", |
Fredrik Solenberg | 4f4ec0a | 2015-10-22 10:49:27 +0200 | [diff] [blame] | 19 | "conversion.h", |
| 20 | "scoped_voe_interface.h", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 21 | ] |
| 22 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame^] | 23 | if (!build_with_chromium && is_clang) { |
| 24 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 25 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | deps = [ |
| 29 | "..:webrtc_common", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 30 | "../api:call_api", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 31 | "../system_wrappers", |
Tommi | f888bb5 | 2015-12-12 01:37:01 +0100 | [diff] [blame] | 32 | "../voice_engine", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 33 | ] |
| 34 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 35 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 36 | rtc_source_set("audio_tests") { |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 37 | testonly = true |
| 38 | sources = [ |
| 39 | "audio_receive_stream_unittest.cc", |
| 40 | "audio_send_stream_unittest.cc", |
| 41 | "audio_state_unittest.cc", |
| 42 | ] |
| 43 | deps = [ |
| 44 | ":audio", |
| 45 | "//testing/gmock", |
| 46 | "//testing/gtest", |
| 47 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame^] | 48 | if (!build_with_chromium && is_clang) { |
| 49 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 50 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 51 | } |
| 52 | } |
| 53 | } |