blob: 648bc85e0fc130a88fdd144cca54a1f35ccdccf2 [file] [log] [blame]
Peter Boström5c389d32015-09-25 13:58:30 +02001# 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
9import("../build/webrtc.gni")
10
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("call") {
Peter Boström5c389d32015-09-25 13:58:30 +020012 sources = [
mflodman0e7e2592015-11-12 21:02:42 -080013 "bitrate_allocator.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020014 "call.cc",
Peter Boström5c389d32015-09-25 13:58:30 +020015 "transport_adapter.cc",
16 "transport_adapter.h",
17 ]
18
Peter Boström5c389d32015-09-25 13:58:30 +020019 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.
ehmaldonado38a21322016-09-02 04:10:34 -070022 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström5c389d32015-09-25 13:58:30 +020023 }
24
25 deps = [
charujain89a3a1a2016-09-28 00:48:57 -070026 ":rtc_event_log",
Peter Boström5c389d32015-09-25 13:58:30 +020027 "..:webrtc_common",
kjellandera69d9732016-08-31 07:33:05 -070028 "../api:call_api",
katrielc14897d02016-06-03 13:14:28 -070029 "../audio",
perkj26091b12016-09-01 01:17:40 -070030 "../base:rtc_task_queue",
Stefan Holmer80e12072016-02-23 13:30:42 +010031 "../modules/congestion_controller",
Peter Boström5c389d32015-09-25 13:58:30 +020032 "../modules/rtp_rtcp",
33 "../system_wrappers",
katrielc14897d02016-06-03 13:14:28 -070034 "../video",
Peter Boström5c389d32015-09-25 13:58:30 +020035 ]
36}
Peter Boström02083222016-06-14 12:52:54 +020037
charujain89a3a1a2016-09-28 00:48:57 -070038rtc_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
Peter Boström02083222016-06-14 12:52:54 +020064if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070065 rtc_source_set("call_tests") {
Peter Boström02083222016-06-14 12:52:54 +020066 testonly = true
67 sources = [
68 "bitrate_allocator_unittest.cc",
69 "bitrate_estimator_tests.cc",
70 "call_unittest.cc",
71 "packet_injection_tests.cc",
72 "ringbuffer_unittest.cc",
73 ]
74 deps = [
75 ":call",
76 "//testing/gmock",
77 "//testing/gtest",
78 ]
79 if (is_clang) {
80 # Suppress warnings from the Chromium Clang plugin.
81 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
ehmaldonado38a21322016-09-02 04:10:34 -070082 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
Peter Boström02083222016-06-14 12:52:54 +020083 }
84 }
skvlade9cac752016-09-19 14:42:02 -070085 rtc_source_set("rtc_event_log_tests") {
86 testonly = true
87 sources = [
88 "rtc_event_log_unittest.cc",
89 "rtc_event_log_unittest_helper.cc",
90 ]
91 deps = [
charujain89a3a1a2016-09-28 00:48:57 -070092 ":rtc_event_log",
skvlade9cac752016-09-19 14:42:02 -070093 "..:rtc_event_log_parser",
94 "../modules/rtp_rtcp",
95 "../system_wrappers:metrics_default",
96 "//testing/gmock",
97 "//testing/gtest",
98 ]
99 if (is_clang) {
100 # Suppress warnings from the Chromium Clang plugin.
101 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
102 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
103 }
104 }
Peter Boström02083222016-06-14 12:52:54 +0200105}