Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 1 | # 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 | |
| 9 | import("../build/webrtc.gni") |
| 10 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 11 | rtc_static_library("call") { |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 12 | sources = [ |
mflodman | 0e7e259 | 2015-11-12 21:02:42 -0800 | [diff] [blame] | 13 | "bitrate_allocator.cc", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 14 | "call.cc", |
brandtr | 76648da | 2016-10-20 04:54:48 -0700 | [diff] [blame] | 15 | "flexfec_receive_stream.cc", |
| 16 | "flexfec_receive_stream.h", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 17 | ] |
| 18 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 19 | if (!build_with_chromium && is_clang) { |
| 20 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 21 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | deps = [ |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 25 | "..:webrtc_common", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 26 | "../api:call_api", |
katrielc | 14897d0 | 2016-06-03 13:14:28 -0700 | [diff] [blame] | 27 | "../audio", |
perkj | 26091b1 | 2016-09-01 01:17:40 -0700 | [diff] [blame] | 28 | "../base:rtc_task_queue", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 29 | "../logging:rtc_event_log_impl", |
Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 30 | "../modules/congestion_controller", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 31 | "../modules/rtp_rtcp", |
| 32 | "../system_wrappers", |
katrielc | 14897d0 | 2016-06-03 13:14:28 -0700 | [diff] [blame] | 33 | "../video", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 34 | ] |
| 35 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 36 | |
| 37 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 38 | rtc_source_set("call_tests") { |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 39 | testonly = true |
| 40 | sources = [ |
| 41 | "bitrate_allocator_unittest.cc", |
| 42 | "bitrate_estimator_tests.cc", |
| 43 | "call_unittest.cc", |
brandtr | 76648da | 2016-10-20 04:54:48 -0700 | [diff] [blame] | 44 | "flexfec_receive_stream_unittest.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 45 | "packet_injection_tests.cc", |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 46 | ] |
| 47 | deps = [ |
| 48 | ":call", |
| 49 | "//testing/gmock", |
| 50 | "//testing/gtest", |
| 51 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 52 | if (!build_with_chromium && is_clang) { |
| 53 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 54 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 55 | } |
| 56 | } |
| 57 | } |