blob: 8ea5d0512e05d1cf4eb4b9845ea72d1f5e7f3fd2 [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
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("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",
brandtr76648da2016-10-20 04:54:48 -070015 "flexfec_receive_stream.cc",
16 "flexfec_receive_stream.h",
Peter Boström5c389d32015-09-25 13:58:30 +020017 "transport_adapter.cc",
18 "transport_adapter.h",
19 ]
20
kjellandere40a7ee2016-10-16 23:56:12 -070021 if (!build_with_chromium && is_clang) {
22 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070023 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020024 }
25
26 deps = [
Peter Boström5c389d32015-09-25 13:58:30 +020027 "..:webrtc_common",
kjellandera69d9732016-08-31 07:33:05 -070028 "../api:call_api",
katrielc14897d02016-06-03 13:14:28 -070029 "../audio",
perkj26091b12016-09-01 01:17:40 -070030 "../base:rtc_task_queue",
skvladcc91d282016-10-03 18:31:22 -070031 "../logging:rtc_event_log_impl",
Stefan Holmer80e12072016-02-23 13:30:42 +010032 "../modules/congestion_controller",
Peter Boström5c389d32015-09-25 13:58:30 +020033 "../modules/rtp_rtcp",
34 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070035 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020036 ]
37}
Peter Boström02083222016-06-14 12:52:54 +020038
39if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070040 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020041 testonly = true
42 sources = [
43 "bitrate_allocator_unittest.cc",
44 "bitrate_estimator_tests.cc",
45 "call_unittest.cc",
brandtr76648da2016-10-20 04:54:48 -070046 "flexfec_receive_stream_unittest.cc",
Peter Boström02083222016-06-14 12:52:54 +020047 "packet_injection_tests.cc",
Peter Boström02083222016-06-14 12:52:54 +020048 ]
49 deps = [
50 ":call",
51 "//testing/gmock",
52 "//testing/gtest",
53 ]
kjellandere40a7ee2016-10-16 23:56:12 -070054 if (!build_with_chromium && is_clang) {
55 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070056 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020057 }
58 }
59}