OLD | NEW |
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
10 | 10 |
11 rtc_static_library("call") { | 11 rtc_static_library("call") { |
12 sources = [ | 12 sources = [ |
13 "bitrate_allocator.cc", | 13 "bitrate_allocator.cc", |
14 "call.cc", | 14 "call.cc", |
15 "flexfec_receive_stream.cc", | 15 "flexfec_receive_stream.cc", |
16 "flexfec_receive_stream.h", | 16 "flexfec_receive_stream.h", |
17 ] | 17 ] |
18 | 18 |
19 if (!build_with_chromium && is_clang) { | 19 if (!build_with_chromium && is_clang) { |
20 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 20 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
21 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 21 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
22 } | 22 } |
23 | 23 |
| 24 public_deps = [ |
| 25 "../api:call_api", |
| 26 ] |
| 27 |
24 deps = [ | 28 deps = [ |
25 "..:webrtc_common", | 29 "..:webrtc_common", |
26 "../api:call_api", | |
27 "../audio", | 30 "../audio", |
28 "../base:rtc_task_queue", | 31 "../base:rtc_task_queue", |
29 "../logging:rtc_event_log_impl", | 32 "../logging:rtc_event_log_impl", |
30 "../modules/congestion_controller", | 33 "../modules/congestion_controller", |
31 "../modules/rtp_rtcp", | 34 "../modules/rtp_rtcp", |
32 "../system_wrappers", | 35 "../system_wrappers", |
33 "../video", | 36 "../video", |
34 ] | 37 ] |
35 } | 38 } |
36 | 39 |
37 if (rtc_include_tests) { | 40 if (rtc_include_tests) { |
38 rtc_source_set("call_tests") { | 41 rtc_source_set("call_tests") { |
39 testonly = true | 42 testonly = true |
40 sources = [ | 43 sources = [ |
41 "bitrate_allocator_unittest.cc", | 44 "bitrate_allocator_unittest.cc", |
42 "bitrate_estimator_tests.cc", | 45 "bitrate_estimator_tests.cc", |
43 "call_unittest.cc", | 46 "call_unittest.cc", |
44 "flexfec_receive_stream_unittest.cc", | 47 "flexfec_receive_stream_unittest.cc", |
45 "packet_injection_tests.cc", | 48 "packet_injection_tests.cc", |
46 ] | 49 ] |
47 deps = [ | 50 deps = [ |
48 ":call", | 51 ":call", |
49 "//testing/gmock", | 52 "//testing/gmock", |
50 "//testing/gtest", | 53 "//testing/gtest", |
51 ] | 54 ] |
52 if (!build_with_chromium && is_clang) { | 55 if (!build_with_chromium && is_clang) { |
53 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 56 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
54 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 57 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
55 } | 58 } |
| 59 if (is_win) { |
| 60 cflags = [ |
| 61 # TODO(phoglund): get rid of 4373 supression when |
| 62 # http://code.google.com/p/webrtc/issues/detail?id=261 is solved. |
| 63 # legacy warning for ignoring const / volatile in signatures. |
| 64 "/wd4373", |
| 65 ] |
| 66 } |
56 } | 67 } |
57 } | 68 } |
OLD | NEW |