Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: webrtc/p2p/BUILD.gn

Issue 2301053002: GN: Introduce templates. (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/video_processing/BUILD.gn ('k') | webrtc/pc/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 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 group("p2p") { 11 group("p2p") {
12 deps = [ 12 deps = [
13 ":rtc_p2p", 13 ":rtc_p2p",
14 ] 14 ]
15 } 15 }
16 16
17 config("rtc_p2p_inherited_config") { 17 config("rtc_p2p_inherited_config") {
18 defines = [ "FEATURE_ENABLE_VOICEMAIL" ] 18 defines = [ "FEATURE_ENABLE_VOICEMAIL" ]
19 } 19 }
20 20
21 source_set("rtc_p2p") { 21 rtc_source_set("rtc_p2p") {
22 sources = [ 22 sources = [
23 "base/asyncstuntcpsocket.cc", 23 "base/asyncstuntcpsocket.cc",
24 "base/asyncstuntcpsocket.h", 24 "base/asyncstuntcpsocket.h",
25 "base/basicpacketsocketfactory.cc", 25 "base/basicpacketsocketfactory.cc",
26 "base/basicpacketsocketfactory.h", 26 "base/basicpacketsocketfactory.h",
27 "base/candidate.h", 27 "base/candidate.h",
28 "base/common.h", 28 "base/common.h",
29 "base/dtlstransport.h", 29 "base/dtlstransport.h",
30 "base/dtlstransportchannel.cc", 30 "base/dtlstransportchannel.cc",
31 "base/dtlstransportchannel.h", 31 "base/dtlstransportchannel.h",
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 "base/turnserver.h", 115 "base/turnserver.h",
116 ] 116 ]
117 defines += [ 117 defines += [
118 "FEATURE_ENABLE_VOICEMAIL", 118 "FEATURE_ENABLE_VOICEMAIL",
119 "FEATURE_ENABLE_PSTN", 119 "FEATURE_ENABLE_PSTN",
120 ] 120 ]
121 121
122 if (is_clang) { 122 if (is_clang) {
123 # Suppress warnings from Chrome's Clang plugins. 123 # Suppress warnings from Chrome's Clang plugins.
124 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 124 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
125 configs -= [ "//build/config/clang:find_bad_constructs" ] 125 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
126 } 126 }
127 } 127 }
128 128
129 if (rtc_use_quic) { 129 if (rtc_use_quic) {
130 deps = [ 130 deps = [
131 "//third_party/libquic", 131 "//third_party/libquic",
132 ] 132 ]
133 sources += [ 133 sources += [
134 "quic/quicconnectionhelper.cc", 134 "quic/quicconnectionhelper.cc",
135 "quic/quicconnectionhelper.h", 135 "quic/quicconnectionhelper.h",
136 "quic/quicsession.cc", 136 "quic/quicsession.cc",
137 "quic/quicsession.h", 137 "quic/quicsession.h",
138 "quic/quictransport.cc", 138 "quic/quictransport.cc",
139 "quic/quictransport.h", 139 "quic/quictransport.h",
140 "quic/quictransportchannel.cc", 140 "quic/quictransportchannel.cc",
141 "quic/quictransportchannel.h", 141 "quic/quictransportchannel.h",
142 "quic/reliablequicstream.cc", 142 "quic/reliablequicstream.cc",
143 "quic/reliablequicstream.h", 143 "quic/reliablequicstream.h",
144 ] 144 ]
145 public_deps += [ "//third_party/libquic" ] 145 public_deps += [ "//third_party/libquic" ]
146 } 146 }
147 } 147 }
148 148
149 source_set("libstunprober") { 149 rtc_source_set("libstunprober") {
150 sources = [ 150 sources = [
151 "stunprober/stunprober.cc", 151 "stunprober/stunprober.cc",
152 ] 152 ]
153 153
154 if (!build_with_chromium && is_clang) { 154 if (!build_with_chromium && is_clang) {
155 # Suppress warnings from Chrome's Clang plugins. 155 # Suppress warnings from Chrome's Clang plugins.
156 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 156 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
157 configs -= [ "//build/config/clang:find_bad_constructs" ] 157 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
158 } 158 }
159 159
160 deps = [ 160 deps = [
161 "..:webrtc_common", 161 "..:webrtc_common",
162 "../base:rtc_base", 162 "../base:rtc_base",
163 ] 163 ]
164 } 164 }
165 165
166 if (!build_with_chromium) { 166 if (!build_with_chromium) {
167 # Doesn't build within Chrome on Win. 167 # Doesn't build within Chrome on Win.
168 168 rtc_executable("stun_prober") {
169 executable("stun_prober") {
170 sources = [ 169 sources = [
171 "stunprober/main.cc", 170 "stunprober/main.cc",
172 ] 171 ]
173 172
174 configs += [ "..:common_config" ] 173 configs += [ "..:common_config" ]
175 if (!build_with_chromium && is_clang) { 174 if (!build_with_chromium && is_clang) {
176 # Suppress warnings from Chrome's Clang plugins. 175 # Suppress warnings from Chrome's Clang plugins.
177 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 176 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
178 configs -= [ "//build/config/clang:find_bad_constructs" ] 177 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
179 } 178 }
180 179
181 deps = [ 180 deps = [
182 ":libstunprober", 181 ":libstunprober",
183 ":rtc_p2p", 182 ":rtc_p2p",
184 "../system_wrappers:field_trial_default", 183 "../system_wrappers:field_trial_default",
185 ] 184 ]
186 } 185 }
187 } 186 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_processing/BUILD.gn ('k') | webrtc/pc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698