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 "transport_adapter.cc", | 15 "transport_adapter.cc", |
16 "transport_adapter.h", | 16 "transport_adapter.h", |
17 ] | 17 ] |
18 | 18 |
19 if (is_clang) { | 19 if (is_clang) { |
20 # Suppress warnings from Chrome's Clang plugins. | 20 # Suppress warnings from Chrome's Clang plugins. |
21 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 21 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
22 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 22 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
23 } | 23 } |
24 | 24 |
25 deps = [ | 25 deps = [ |
26 "..:rtc_event_log", | 26 ":rtc_event_log", |
27 "..:webrtc_common", | 27 "..:webrtc_common", |
28 "../api:call_api", | 28 "../api:call_api", |
29 "../audio", | 29 "../audio", |
30 "../base:rtc_task_queue", | 30 "../base:rtc_task_queue", |
31 "../modules/congestion_controller", | 31 "../modules/congestion_controller", |
32 "../modules/rtp_rtcp", | 32 "../modules/rtp_rtcp", |
33 "../system_wrappers", | 33 "../system_wrappers", |
34 "../video", | 34 "../video", |
35 ] | 35 ] |
36 } | 36 } |
37 | 37 |
| 38 rtc_static_library("rtc_event_log") { |
| 39 sources = [ |
| 40 "rtc_event_log.cc", |
| 41 "rtc_event_log.h", |
| 42 "rtc_event_log_helper_thread.cc", |
| 43 "rtc_event_log_helper_thread.h", |
| 44 ] |
| 45 |
| 46 defines = [] |
| 47 |
| 48 deps = [ |
| 49 "..:webrtc_common", |
| 50 "../modules/rtp_rtcp", |
| 51 ] |
| 52 |
| 53 if (rtc_enable_protobuf) { |
| 54 defines += [ "ENABLE_RTC_EVENT_LOG" ] |
| 55 deps += [ "..:rtc_event_log_proto" ] |
| 56 } |
| 57 if (is_clang && !is_nacl) { |
| 58 # Suppress warnings from Chrome's Clang plugins. |
| 59 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 60 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 61 } |
| 62 } |
| 63 |
38 if (rtc_include_tests) { | 64 if (rtc_include_tests) { |
39 rtc_source_set("call_tests") { | 65 rtc_source_set("call_tests") { |
40 testonly = true | 66 testonly = true |
41 sources = [ | 67 sources = [ |
42 "bitrate_allocator_unittest.cc", | 68 "bitrate_allocator_unittest.cc", |
43 "bitrate_estimator_tests.cc", | 69 "bitrate_estimator_tests.cc", |
44 "call_unittest.cc", | 70 "call_unittest.cc", |
45 "packet_injection_tests.cc", | 71 "packet_injection_tests.cc", |
46 "ringbuffer_unittest.cc", | 72 "ringbuffer_unittest.cc", |
47 ] | 73 ] |
48 deps = [ | 74 deps = [ |
49 ":call", | 75 ":call", |
50 "//testing/gmock", | 76 "//testing/gmock", |
51 "//testing/gtest", | 77 "//testing/gtest", |
52 ] | 78 ] |
53 if (is_clang) { | 79 if (is_clang) { |
54 # Suppress warnings from the Chromium Clang plugin. | 80 # Suppress warnings from the Chromium Clang plugin. |
55 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 81 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
56 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 82 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
57 } | 83 } |
58 } | 84 } |
59 rtc_source_set("rtc_event_log_tests") { | 85 rtc_source_set("rtc_event_log_tests") { |
60 testonly = true | 86 testonly = true |
61 sources = [ | 87 sources = [ |
62 "rtc_event_log_unittest.cc", | 88 "rtc_event_log_unittest.cc", |
63 "rtc_event_log_unittest_helper.cc", | 89 "rtc_event_log_unittest_helper.cc", |
64 ] | 90 ] |
65 deps = [ | 91 deps = [ |
66 "..:rtc_event_log", | 92 ":rtc_event_log", |
67 "..:rtc_event_log_parser", | 93 "..:rtc_event_log_parser", |
68 "../modules/rtp_rtcp", | 94 "../modules/rtp_rtcp", |
69 "../system_wrappers:metrics_default", | 95 "../system_wrappers:metrics_default", |
70 "//testing/gmock", | 96 "//testing/gmock", |
71 "//testing/gtest", | 97 "//testing/gtest", |
72 ] | 98 ] |
73 if (is_clang) { | 99 if (is_clang) { |
74 # Suppress warnings from the Chromium Clang plugin. | 100 # Suppress warnings from the Chromium Clang plugin. |
75 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 101 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
76 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 102 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
77 } | 103 } |
78 } | 104 } |
79 } | 105 } |
OLD | NEW |