blob: ee708c5707a7d2b499f6d57bc27c473bbe4bd7c5 [file] [log] [blame]
Peter Boström5c389d32015-09-25 13:58:30 +02001# Copyright (c) 2015 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("../build/webrtc.gni")
10
ehmaldonado38a21322016-09-02 04:10:34 -070011rtc_source_set("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020012 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080013 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020014 "call.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020015 "transport_adapter.cc",
16 "transport_adapter.h",
17 ]
18
19 configs += [ "..:common_config" ]
20 public_configs = [ "..:common_inherited_config" ]
21
22 if (is_clang) {
23 # Suppress warnings from Chrome's Clang plugins.
24 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -070025 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020026 }
27
28 deps = [
29 "..:rtc_event_log",
30 "..:webrtc_common",
kjellandera69d9732016-08-31 07:33:05 -070031 "../api:call_api",
katrielc14897d02016-06-03 13:14:28 -070032 "../audio",
perkj26091b12016-09-01 01:17:40 -070033 "../base:rtc_task_queue",
Stefan Holmer80e12072016-02-23 13:30:42 +010034 "../modules/congestion_controller",
Peter Boström5c389d32015-09-25 13:58:30 +020035 "../modules/rtp_rtcp",
36 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070037 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020038 ]
39}
Peter Boström02083222016-06-14 12:52:54 +020040
41if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070042 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020043 testonly = true
44 sources = [
45 "bitrate_allocator_unittest.cc",
46 "bitrate_estimator_tests.cc",
47 "call_unittest.cc",
48 "packet_injection_tests.cc",
49 "ringbuffer_unittest.cc",
50 ]
51 deps = [
52 ":call",
53 "//testing/gmock",
54 "//testing/gtest",
55 ]
perkj26091b12016-09-01 01:17:40 -070056 configs += [ "..:common_config" ]
Peter Boström02083222016-06-14 12:52:54 +020057 if (is_clang) {
58 # Suppress warnings from the Chromium Clang plugin.
59 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -070060 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020061 }
62 }
63}