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