This Cl is the first step of a 3-step process to trick the build system of a webrtc dependency into not failing. The second step will be to register this folder in the dependency build system. It cannot be done first, because there must be a GN dependency from some existing target to a target in the new folder. The third step is to land https://codereview.webrtc.org/2424173003, in which the webrtc/audio/utility is used. When a new folder with a publicly visible header is added, the build files of said build system must be manually updated to register the new folder. BUG=webrtc:6548 Review-Url: https://codereview.webrtc.org/2532403003 Cr-Commit-Position: refs/heads/master@{#15299}
71 lines
2.2 KiB
Plaintext
71 lines
2.2 KiB
Plaintext
# 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")
|
|
|
|
rtc_static_library("audio") {
|
|
sources = [
|
|
"audio_receive_stream.cc",
|
|
"audio_receive_stream.h",
|
|
"audio_send_stream.cc",
|
|
"audio_send_stream.h",
|
|
"audio_state.cc",
|
|
"audio_state.h",
|
|
"audio_transport_proxy.cc",
|
|
"audio_transport_proxy.h",
|
|
"conversion.h",
|
|
"scoped_voe_interface.h",
|
|
]
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
}
|
|
|
|
deps = [
|
|
"..:webrtc_common",
|
|
"../api:audio_mixer_api",
|
|
"../api:call_api",
|
|
"../base:rtc_base_approved",
|
|
"../common_audio",
|
|
"../modules/audio_device",
|
|
"../modules/audio_processing",
|
|
"../system_wrappers",
|
|
"../voice_engine",
|
|
"utility", # Bogus dep, needed for landing
|
|
# codereview.webrtc.org/2424173003 without breaking
|
|
# internal projects. See
|
|
# bugs.webrtc.org/6548. TODO(aleloi): remove dependency
|
|
# when codereview.webrtc.org/2424173003 has landed.
|
|
]
|
|
}
|
|
if (rtc_include_tests) {
|
|
rtc_source_set("audio_tests") {
|
|
testonly = true
|
|
sources = [
|
|
"audio_receive_stream_unittest.cc",
|
|
"audio_send_stream_unittest.cc",
|
|
"audio_state_unittest.cc",
|
|
]
|
|
deps = [
|
|
":audio",
|
|
"../api:mock_audio_mixer",
|
|
"../base:rtc_base_approved",
|
|
"../modules/audio_device:mock_audio_device",
|
|
"../modules/audio_mixer:audio_mixer_impl",
|
|
"../test:test_common",
|
|
"//testing/gmock",
|
|
"//testing/gtest",
|
|
]
|
|
if (!build_with_chromium && is_clang) {
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
}
|
|
}
|
|
}
|