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", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 15 | "transport_adapter.cc", |
| 16 | "transport_adapter.h", |
| 17 | ] |
| 18 | |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 19 | if (is_clang) { |
| 20 | # Suppress warnings from Chrome's Clang plugins. |
| 21 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 22 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | deps = [ |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 26 | "..:webrtc_common", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 27 | "../api:call_api", |
katrielc | 14897d0 | 2016-06-03 13:14:28 -0700 | [diff] [blame] | 28 | "../audio", |
perkj | 26091b1 | 2016-09-01 01:17:40 -0700 | [diff] [blame] | 29 | "../base:rtc_task_queue", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame^] | 30 | "../logging:rtc_event_log_impl", |
Stefan Holmer | 80e1207 | 2016-02-23 13:30:42 +0100 | [diff] [blame] | 31 | "../modules/congestion_controller", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 32 | "../modules/rtp_rtcp", |
| 33 | "../system_wrappers", |
katrielc | 14897d0 | 2016-06-03 13:14:28 -0700 | [diff] [blame] | 34 | "../video", |
Peter Boström | 5c389d3 | 2015-09-25 13:58:30 +0200 | [diff] [blame] | 35 | ] |
| 36 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 37 | |
| 38 | if (rtc_include_tests) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 39 | rtc_source_set("call_tests") { |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 40 | testonly = true |
| 41 | sources = [ |
| 42 | "bitrate_allocator_unittest.cc", |
| 43 | "bitrate_estimator_tests.cc", |
| 44 | "call_unittest.cc", |
| 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 | ] |
| 52 | if (is_clang) { |
| 53 | # Suppress warnings from the Chromium Clang plugin. |
| 54 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 55 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 56 | } |
| 57 | } |
| 58 | } |