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 = [ |
| 26 | "..:rtc_event_log", |
| 27 | "..:webrtc_common", |
kjellander | a69d973 | 2016-08-31 07:33:05 -0700 | [diff] [blame] | 28 | "../api:call_api", |
katrielc | 14897d0 | 2016-06-03 13:14:28 -0700 | [diff] [blame] | 29 | "../audio", |
perkj | 26091b1 | 2016-09-01 01:17:40 -0700 | [diff] [blame] | 30 | "../base:rtc_task_queue", |
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", |
| 46 | "ringbuffer_unittest.cc", |
| 47 | ] |
| 48 | deps = [ |
| 49 | ":call", |
| 50 | "//testing/gmock", |
| 51 | "//testing/gtest", |
| 52 | ] |
| 53 | if (is_clang) { |
| 54 | # Suppress warnings from the Chromium Clang plugin. |
| 55 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 56 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 57 | } |
| 58 | } |
skvlad | e9cac75 | 2016-09-19 14:42:02 -0700 | [diff] [blame] | 59 | rtc_source_set("rtc_event_log_tests") { |
| 60 | testonly = true |
| 61 | sources = [ |
| 62 | "rtc_event_log_unittest.cc", |
| 63 | "rtc_event_log_unittest_helper.cc", |
| 64 | ] |
| 65 | deps = [ |
| 66 | "..:rtc_event_log", |
| 67 | "..:rtc_event_log_parser", |
| 68 | "../modules/rtp_rtcp", |
| 69 | "../system_wrappers:metrics_default", |
| 70 | "//testing/gmock", |
| 71 | "//testing/gtest", |
| 72 | ] |
| 73 | if (is_clang) { |
| 74 | # Suppress warnings from the Chromium Clang plugin. |
| 75 | # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 76 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 77 | } |
| 78 | } |
Peter Boström | 0208322 | 2016-06-14 12:52:54 +0200 | [diff] [blame] | 79 | } |