blob: ead25f8e3bc175fc95d5fdbe0a60bfcbd8cf8c12 [file] [log] [blame]
Peter Boström5c389d32015-09-25 13:58:30 +02001# 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
9import("../build/webrtc.gni")
10
ehmaldonado38a21322016-09-02 04:10:34 -070011rtc_source_set("audio") {
Peter Boström5c389d32015-09-25 13:58:30 +020012 sources = [
13 "audio_receive_stream.cc",
14 "audio_receive_stream.h",
solenbergc7a8b082015-10-16 14:35:07 -070015 "audio_send_stream.cc",
16 "audio_send_stream.h",
solenberg566ef242015-11-06 15:34:49 -080017 "audio_state.cc",
18 "audio_state.h",
Fredrik Solenberg4f4ec0a2015-10-22 10:49:27 +020019 "conversion.h",
20 "scoped_voe_interface.h",
Peter Boström5c389d32015-09-25 13:58:30 +020021 ]
22
23 configs += [ "..:common_config" ]
24 public_configs = [ "..:common_inherited_config" ]
25
26 if (is_clang) {
27 # Suppress warnings from Chrome's Clang plugins.
28 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -070029 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020030 }
31
32 deps = [
33 "..:webrtc_common",
kjellandera69d9732016-08-31 07:33:05 -070034 "../api:call_api",
Peter Boström5c389d32015-09-25 13:58:30 +020035 "../system_wrappers",
Tommif888bb52015-12-12 01:37:01 +010036 "../voice_engine",
Peter Boström5c389d32015-09-25 13:58:30 +020037 ]
38}
Peter Boström02083222016-06-14 12:52:54 +020039if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070040 rtc_source_set("audio_tests") {
Peter Boström02083222016-06-14 12:52:54 +020041 testonly = true
42 sources = [
43 "audio_receive_stream_unittest.cc",
44 "audio_send_stream_unittest.cc",
45 "audio_state_unittest.cc",
46 ]
47 deps = [
48 ":audio",
49 "//testing/gmock",
50 "//testing/gtest",
51 ]
52 if (is_clang) {
53 # Suppress warnings from the Chromium Clang plugin.
54 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -070055 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020056 }
57 }
58}