blob: 32b7fa4c53eddd51d5b2ef75013f04f9cadeb82b [file] [log] [blame]
kjellanderc76dc952016-06-03 03:09:32 -07001# Copyright (c) 2016 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
11group("p2p") {
12 deps = [
13 ":rtc_p2p",
14 ]
15}
16
17config("rtc_p2p_inherited_config") {
18 defines = [ "FEATURE_ENABLE_VOICEMAIL" ]
19}
20
21source_set("rtc_p2p") {
22 sources = [
23 "base/asyncstuntcpsocket.cc",
24 "base/asyncstuntcpsocket.h",
25 "base/basicpacketsocketfactory.cc",
26 "base/basicpacketsocketfactory.h",
27 "base/candidate.h",
28 "base/common.h",
kjellander5023d412016-06-18 04:23:01 -070029 "base/dtlstransport.h",
kjellanderc76dc952016-06-03 03:09:32 -070030 "base/dtlstransportchannel.cc",
31 "base/dtlstransportchannel.h",
32 "base/p2pconstants.cc",
33 "base/p2pconstants.h",
34 "base/p2ptransport.cc",
35 "base/p2ptransport.h",
36 "base/p2ptransportchannel.cc",
37 "base/p2ptransportchannel.h",
38 "base/packetsocketfactory.h",
39 "base/port.cc",
40 "base/port.h",
41 "base/portallocator.cc",
42 "base/portallocator.h",
43 "base/portinterface.h",
44 "base/pseudotcp.cc",
45 "base/pseudotcp.h",
46 "base/relayport.cc",
47 "base/relayport.h",
kjellander5023d412016-06-18 04:23:01 -070048 "base/session.cc",
49 "base/session.h",
kjellanderc76dc952016-06-03 03:09:32 -070050 "base/sessiondescription.cc",
51 "base/sessiondescription.h",
52 "base/sessionid.h",
53 "base/stun.cc",
54 "base/stun.h",
55 "base/stunport.cc",
56 "base/stunport.h",
57 "base/stunrequest.cc",
58 "base/stunrequest.h",
kjellanderc76dc952016-06-03 03:09:32 -070059 "base/tcpport.cc",
60 "base/tcpport.h",
61 "base/transport.cc",
62 "base/transport.h",
63 "base/transportchannel.cc",
64 "base/transportchannel.h",
65 "base/transportchannelimpl.h",
66 "base/transportcontroller.cc",
67 "base/transportcontroller.h",
68 "base/transportdescription.cc",
69 "base/transportdescription.h",
70 "base/transportdescriptionfactory.cc",
71 "base/transportdescriptionfactory.h",
72 "base/transportinfo.h",
73 "base/turnport.cc",
74 "base/turnport.h",
kjellanderc76dc952016-06-03 03:09:32 -070075 "base/udpport.h",
76 "client/basicportallocator.cc",
77 "client/basicportallocator.h",
78 "client/httpportallocator.cc",
79 "client/httpportallocator.h",
80 "client/socketmonitor.cc",
81 "client/socketmonitor.h",
82 ]
83
84 defines = [ "FEATURE_ENABLE_SSL" ]
85
86 deps = [
87 "../base:rtc_base",
88 "../libjingle/xmllite",
89 ]
90
91 if (rtc_build_expat) {
92 deps += [ "//third_party/expat" ]
93 public_deps = [
94 "//third_party/expat",
95 ]
96 }
97
98 configs += [ "..:common_config" ]
99 public_configs = [
100 "..:common_inherited_config",
101 ":rtc_p2p_inherited_config",
102 ]
103
kjellander5023d412016-06-18 04:23:01 -0700104 if (build_with_chromium) {
105 if (is_nacl) {
106 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
107 }
108 } else {
109 sources += [
110 "base/relayserver.cc",
111 "base/relayserver.h",
112 "base/stunserver.cc",
113 "base/stunserver.h",
114 "base/turnserver.cc",
115 "base/turnserver.h",
116 ]
kjellanderc76dc952016-06-03 03:09:32 -0700117 defines += [
118 "FEATURE_ENABLE_VOICEMAIL",
119 "FEATURE_ENABLE_PSTN",
120 ]
121
122 if (is_clang) {
123 # Suppress warnings from Chrome's Clang plugins.
124 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
125 configs -= [ "//build/config/clang:find_bad_constructs" ]
126 }
127 }
128
129 if (rtc_use_quic) {
130 deps = [
131 "//third_party/libquic",
132 ]
133 sources += [
134 "quic/quicconnectionhelper.cc",
135 "quic/quicconnectionhelper.h",
136 "quic/quicsession.cc",
137 "quic/quicsession.h",
138 "quic/quictransport.cc",
139 "quic/quictransport.h",
140 "quic/quictransportchannel.cc",
141 "quic/quictransportchannel.h",
142 "quic/reliablequicstream.cc",
143 "quic/reliablequicstream.h",
144 ]
145 public_deps += [ "//third_party/libquic" ]
146 }
147}
148
149source_set("libstunprober") {
150 sources = [
151 "stunprober/stunprober.cc",
152 ]
153
154 if (!build_with_chromium && is_clang) {
155 # Suppress warnings from Chrome's Clang plugins.
156 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
157 configs -= [ "//build/config/clang:find_bad_constructs" ]
158 }
159
160 deps = [
161 "..:webrtc_common",
162 "../base:rtc_base",
163 ]
164}