BUILD.gn (2308B)
1 # Copyright(c) 2020 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 rtc_source_set("voip_api") { 12 visibility = [ "*" ] 13 sources = [ 14 "voip_base.h", 15 "voip_codec.h", 16 "voip_dtmf.h", 17 "voip_engine.h", 18 "voip_network.h", 19 "voip_statistics.h", 20 "voip_volume_control.h", 21 ] 22 deps = [ 23 "..:array_view", 24 "../audio_codecs:audio_codecs_api", 25 "../neteq:neteq_api", 26 "//third_party/abseil-cpp/absl/base:core_headers", 27 ] 28 } 29 30 rtc_library("voip_engine_factory") { 31 visibility = [ "*" ] 32 allow_poison = [ "environment_construction" ] 33 sources = [ 34 "voip_engine_factory.cc", 35 "voip_engine_factory.h", 36 ] 37 deps = [ 38 ":voip_api", 39 "..:scoped_refptr", 40 "../../audio/voip:voip_core", 41 "../../rtc_base:checks", 42 "../../rtc_base:logging", 43 "../audio:audio_device", 44 "../audio:audio_processing", 45 "../audio_codecs:audio_codecs_api", 46 "../environment", 47 "../environment:environment_factory", 48 "../task_queue", 49 ] 50 } 51 52 if (rtc_include_tests) { 53 rtc_source_set("mock_voip_engine") { 54 testonly = true 55 visibility = [ "*" ] 56 sources = [ "test/mock_voip_engine.h" ] 57 deps = [ 58 ":voip_api", 59 "..:array_view", 60 "../../test:test_support", 61 "../audio_codecs:audio_codecs_api", 62 ] 63 } 64 65 rtc_library("voip_engine_factory_unittests") { 66 testonly = true 67 sources = [ "test/voip_engine_factory_unittest.cc" ] 68 deps = [ 69 ":voip_engine_factory", 70 "..:field_trials", 71 "..:make_ref_counted", 72 "../../modules/audio_device:mock_audio_device", 73 "../../modules/audio_processing:mocks", 74 "../../test:audio_codec_mocks", 75 "../../test:create_test_field_trials", 76 "../../test:test_support", 77 "../environment:environment_factory", 78 ] 79 } 80 81 rtc_library("compile_all_headers") { 82 testonly = true 83 sources = [ "test/compile_all_headers.cc" ] 84 deps = [ 85 ":mock_voip_engine", 86 "../../test:test_support", 87 ] 88 } 89 }