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