OLD | NEW |
| (Empty) |
1 # 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 | |
9 import("../build/webrtc.gni") | |
10 | |
11 group("p2p") { | |
12 deps = [ | |
13 ":rtc_p2p", | |
14 ] | |
15 } | |
16 | |
17 config("rtc_p2p_inherited_config") { | |
18 defines = [ "FEATURE_ENABLE_VOICEMAIL" ] | |
19 } | |
20 | |
21 source_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", | |
29 "base/dtlstransportchannel.cc", | |
30 "base/dtlstransportchannel.h", | |
31 "base/p2pconstants.cc", | |
32 "base/p2pconstants.h", | |
33 "base/p2ptransport.cc", | |
34 "base/p2ptransport.h", | |
35 "base/p2ptransportchannel.cc", | |
36 "base/p2ptransportchannel.h", | |
37 "base/packetsocketfactory.h", | |
38 "base/port.cc", | |
39 "base/port.h", | |
40 "base/portallocator.cc", | |
41 "base/portallocator.h", | |
42 "base/portinterface.h", | |
43 "base/pseudotcp.cc", | |
44 "base/pseudotcp.h", | |
45 "base/relayport.cc", | |
46 "base/relayport.h", | |
47 "base/relayserver.cc", | |
48 "base/relayserver.h", | |
49 "base/sessiondescription.cc", | |
50 "base/sessiondescription.h", | |
51 "base/sessionid.h", | |
52 "base/stun.cc", | |
53 "base/stun.h", | |
54 "base/stunport.cc", | |
55 "base/stunport.h", | |
56 "base/stunrequest.cc", | |
57 "base/stunrequest.h", | |
58 "base/stunserver.cc", | |
59 "base/stunserver.h", | |
60 "base/tcpport.cc", | |
61 "base/tcpport.h", | |
62 "base/transport.cc", | |
63 "base/transport.h", | |
64 "base/transportchannel.cc", | |
65 "base/transportchannel.h", | |
66 "base/transportchannelimpl.h", | |
67 "base/transportcontroller.cc", | |
68 "base/transportcontroller.h", | |
69 "base/transportdescription.cc", | |
70 "base/transportdescription.h", | |
71 "base/transportdescriptionfactory.cc", | |
72 "base/transportdescriptionfactory.h", | |
73 "base/transportinfo.h", | |
74 "base/turnport.cc", | |
75 "base/turnport.h", | |
76 "base/turnserver.cc", | |
77 "base/turnserver.h", | |
78 "base/udpport.h", | |
79 "client/basicportallocator.cc", | |
80 "client/basicportallocator.h", | |
81 "client/httpportallocator.cc", | |
82 "client/httpportallocator.h", | |
83 "client/socketmonitor.cc", | |
84 "client/socketmonitor.h", | |
85 ] | |
86 | |
87 defines = [ "FEATURE_ENABLE_SSL" ] | |
88 | |
89 deps = [ | |
90 "../base:rtc_base", | |
91 "../libjingle/xmllite", | |
92 ] | |
93 | |
94 if (rtc_build_expat) { | |
95 deps += [ "//third_party/expat" ] | |
96 public_deps = [ | |
97 "//third_party/expat", | |
98 ] | |
99 } | |
100 | |
101 configs += [ "..:common_config" ] | |
102 public_configs = [ | |
103 "..:common_inherited_config", | |
104 ":rtc_p2p_inherited_config", | |
105 ] | |
106 | |
107 if (!build_with_chromium) { | |
108 defines += [ | |
109 "FEATURE_ENABLE_VOICEMAIL", | |
110 "FEATURE_ENABLE_PSTN", | |
111 ] | |
112 } | |
113 | |
114 if (rtc_use_quic) { | |
115 deps = [ | |
116 "//third_party/libquic", | |
117 ] | |
118 sources += [ | |
119 "quic/quicconnectionhelper.cc", | |
120 "quic/quicconnectionhelper.h", | |
121 "quic/quicsession.cc", | |
122 "quic/quicsession.h", | |
123 "quic/quictransport.cc", | |
124 "quic/quictransport.h", | |
125 "quic/quictransportchannel.cc", | |
126 "quic/quictransportchannel.h", | |
127 "quic/reliablequicstream.cc", | |
128 "quic/reliablequicstream.h", | |
129 ] | |
130 public_deps += [ "//third_party/libquic" ] | |
131 } | |
132 | |
133 if (is_clang) { | |
134 # Suppress warnings from Chrome's Clang plugins. | |
135 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | |
136 configs -= [ "//build/config/clang:find_bad_constructs" ] | |
137 } | |
138 } | |
OLD | NEW |