2015-09-25 13:58:30 +02:00
|
|
|
# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../build/webrtc.gni")
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("audio") {
|
2015-09-25 13:58:30 +02:00
|
|
|
sources = [
|
|
|
|
|
"audio_receive_stream.cc",
|
|
|
|
|
"audio_receive_stream.h",
|
2015-10-16 14:35:07 -07:00
|
|
|
"audio_send_stream.cc",
|
|
|
|
|
"audio_send_stream.h",
|
2015-11-06 15:34:49 -08:00
|
|
|
"audio_state.cc",
|
|
|
|
|
"audio_state.h",
|
2015-10-22 10:49:27 +02:00
|
|
|
"conversion.h",
|
|
|
|
|
"scoped_voe_interface.h",
|
2015-09-25 13:58:30 +02:00
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2015-09-25 13:58:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
2016-10-20 06:32:39 -07:00
|
|
|
"../api:audio_mixer_api",
|
2016-08-31 07:33:05 -07:00
|
|
|
"../api:call_api",
|
2015-09-25 13:58:30 +02:00
|
|
|
"../system_wrappers",
|
2015-12-12 01:37:01 +01:00
|
|
|
"../voice_engine",
|
2015-09-25 13:58:30 +02:00
|
|
|
]
|
|
|
|
|
}
|
2016-06-14 12:52:54 +02:00
|
|
|
if (rtc_include_tests) {
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("audio_tests") {
|
2016-06-14 12:52:54 +02:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"audio_receive_stream_unittest.cc",
|
|
|
|
|
"audio_send_stream_unittest.cc",
|
|
|
|
|
"audio_state_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":audio",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
2016-06-14 12:52:54 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|