blob: 0669c603c024256d5e6fcec9dbc251fad0d50da2 [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
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("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",
aleloidd310712016-11-17 06:28:59 -080019 "audio_transport_proxy.cc",
20 "audio_transport_proxy.h",
Fredrik Solenberg4f4ec0a2015-10-22 10:49:27 +020021 "conversion.h",
22 "scoped_voe_interface.h",
Peter Boström5c389d32015-09-25 13:58:30 +020023 ]
24
kjellandere40a7ee2016-10-16 23:56:12 -070025 if (!build_with_chromium && is_clang) {
26 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070027 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020028 }
29
30 deps = [
31 "..:webrtc_common",
aleloiaed581a2016-10-20 06:32:39 -070032 "../api:audio_mixer_api",
kjellander676e08f2016-12-07 08:23:27 -080033 "../api:call_api",
aleloidd310712016-11-17 06:28:59 -080034 "../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -080035 "../base:rtc_task_queue",
ossuf515ab82016-12-07 04:52:58 -080036 "../call:call_interfaces",
aleloi04c07222016-11-22 06:42:53 -080037 "../common_audio",
aleloidd310712016-11-17 06:28:59 -080038 "../modules/audio_device",
39 "../modules/audio_processing",
kjellander676e08f2016-12-07 08:23:27 -080040 "../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öm5c389d32015-09-25 13:58:30 +020044 "../system_wrappers",
Tommif888bb52015-12-12 01:37:01 +010045 "../voice_engine",
Peter Boström5c389d32015-09-25 13:58:30 +020046 ]
47}
Peter Boström02083222016-06-14 12:52:54 +020048if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070049 rtc_source_set("audio_tests") {
Peter Boström02083222016-06-14 12:52:54 +020050 testonly = true
kjellander676e08f2016-12-07 08:23:27 -080051
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öm02083222016-06-14 12:52:54 +020056 sources = [
57 "audio_receive_stream_unittest.cc",
58 "audio_send_stream_unittest.cc",
59 "audio_state_unittest.cc",
aleloi6321b492016-12-05 01:46:09 -080060 "utility/audio_frame_operations_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +020061 ]
62 deps = [
63 ":audio",
aleloi04c07222016-11-22 06:42:53 -080064 "../api:mock_audio_mixer",
aleloi10111bc2016-11-17 06:48:48 -080065 "../base:rtc_base_approved",
kjellander676e08f2016-12-07 08:23:27 -080066 "../base:rtc_task_queue",
aleloidd310712016-11-17 06:28:59 -080067 "../modules/audio_device:mock_audio_device",
aleloi04c07222016-11-22 06:42:53 -080068 "../modules/audio_mixer:audio_mixer_impl",
kjellander676e08f2016-12-07 08:23:27 -080069 "../modules/congestion_controller:congestion_controller",
70 "../modules/pacing:pacing",
aleloi10111bc2016-11-17 06:48:48 -080071 "../test:test_common",
aleloi6321b492016-12-05 01:46:09 -080072 "../test:test_support",
73 "utility:audio_frame_operations",
Peter Boström02083222016-06-14 12:52:54 +020074 "//testing/gmock",
75 "//testing/gtest",
76 ]
kjellandere40a7ee2016-10-16 23:56:12 -070077 if (!build_with_chromium && is_clang) {
78 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070079 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020080 }
81 }
82}