1# Copyright (c) 2017 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("../../../../webrtc.gni") 10 11group("conversational_speech") { 12 testonly = true 13 deps = [ ":conversational_speech_generator" ] 14} 15 16rtc_executable("conversational_speech_generator") { 17 testonly = true 18 sources = [ "generator.cc" ] 19 deps = [ 20 ":lib", 21 "../../../../test:fileutils", 22 "../../../../test:test_support", 23 "//third_party/abseil-cpp/absl/flags:flag", 24 "//third_party/abseil-cpp/absl/flags:parse", 25 ] 26} 27 28rtc_library("lib") { 29 testonly = true 30 sources = [ 31 "config.cc", 32 "config.h", 33 "multiend_call.cc", 34 "multiend_call.h", 35 "simulator.cc", 36 "simulator.h", 37 "timing.cc", 38 "timing.h", 39 "wavreader_abstract_factory.h", 40 "wavreader_factory.cc", 41 "wavreader_factory.h", 42 "wavreader_interface.h", 43 ] 44 deps = [ 45 "../../../../api:array_view", 46 "../../../../common_audio", 47 "../../../../rtc_base:checks", 48 "../../../../rtc_base:rtc_base_approved", 49 "../../../../test:fileutils", 50 ] 51 visibility = [ ":*" ] # Only targets in this file can depend on this. 52} 53 54rtc_library("unittest") { 55 testonly = true 56 sources = [ 57 "generator_unittest.cc", 58 "mock_wavreader.cc", 59 "mock_wavreader.h", 60 "mock_wavreader_factory.cc", 61 "mock_wavreader_factory.h", 62 ] 63 deps = [ 64 ":lib", 65 "../../../../api:array_view", 66 "../../../../common_audio", 67 "../../../../rtc_base:rtc_base_approved", 68 "../../../../test:fileutils", 69 "../../../../test:test_support", 70 "//testing/gtest", 71 ] 72 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] 73} 74