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

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

Issue 2714263004: Enable GN check for webrtc/{ortc,p2p} (Closed)
Patch Set: Rebased and removed duplicated headers Created 3 years, 9 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/ortc/BUILD.gn ('k') | no next file » | 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("../webrtc.gni") 9 import("../webrtc.gni")
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 "base/udptransport.h", 76 "base/udptransport.h",
77 "client/basicportallocator.cc", 77 "client/basicportallocator.cc",
78 "client/basicportallocator.h", 78 "client/basicportallocator.h",
79 "client/socketmonitor.cc", 79 "client/socketmonitor.cc",
80 "client/socketmonitor.h", 80 "client/socketmonitor.h",
81 ] 81 ]
82 82
83 defines = [] 83 defines = []
84 84
85 deps = [ 85 deps = [
86 "../api:libjingle_peerconnection_api",
87 "../api:ortc_api",
86 "../base:rtc_base", 88 "../base:rtc_base",
89 "../system_wrappers",
87 ] 90 ]
88 91
89 if (rtc_build_expat) { 92 if (rtc_build_expat) {
90 deps += [ "//third_party/expat" ] 93 deps += [ "//third_party/expat" ]
91 public_deps = [ 94 public_deps = [
92 "//third_party/expat", 95 "//third_party/expat",
93 ] 96 ]
94 } 97 }
95 98
96 public_configs = [ ":rtc_p2p_inherited_config" ] 99 public_configs = [ ":rtc_p2p_inherited_config" ]
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 public_deps += [ "//third_party/libquic" ] 141 public_deps += [ "//third_party/libquic" ]
139 } 142 }
140 } 143 }
141 144
142 if (rtc_include_tests) { 145 if (rtc_include_tests) {
143 rtc_source_set("rtc_p2p_unittests") { 146 rtc_source_set("rtc_p2p_unittests") {
144 testonly = true 147 testonly = true
145 sources = [ 148 sources = [
146 "base/asyncstuntcpsocket_unittest.cc", 149 "base/asyncstuntcpsocket_unittest.cc",
147 "base/dtlstransportchannel_unittest.cc", 150 "base/dtlstransportchannel_unittest.cc",
148 "base/fakedtlstransport.h",
149 "base/fakeicetransport.h",
150 "base/fakepackettransport.h",
151 "base/fakeportallocator.h",
152 "base/faketransportcontroller.h",
153 "base/jseptransport_unittest.cc", 151 "base/jseptransport_unittest.cc",
154 "base/mockicetransport.h",
155 "base/p2ptransportchannel_unittest.cc", 152 "base/p2ptransportchannel_unittest.cc",
156 "base/port_unittest.cc", 153 "base/port_unittest.cc",
157 "base/portallocator_unittest.cc", 154 "base/portallocator_unittest.cc",
158 "base/pseudotcp_unittest.cc", 155 "base/pseudotcp_unittest.cc",
159 "base/relayport_unittest.cc", 156 "base/relayport_unittest.cc",
160 "base/relayserver_unittest.cc", 157 "base/relayserver_unittest.cc",
161 "base/stun_unittest.cc", 158 "base/stun_unittest.cc",
162 "base/stunport_unittest.cc", 159 "base/stunport_unittest.cc",
163 "base/stunrequest_unittest.cc", 160 "base/stunrequest_unittest.cc",
164 "base/stunserver_unittest.cc", 161 "base/stunserver_unittest.cc",
165 "base/tcpport_unittest.cc", 162 "base/tcpport_unittest.cc",
166 "base/testrelayserver.h",
167 "base/teststunserver.h",
168 "base/testturnserver.h",
169 "base/transportcontroller_unittest.cc", 163 "base/transportcontroller_unittest.cc",
170 "base/transportdescriptionfactory_unittest.cc", 164 "base/transportdescriptionfactory_unittest.cc",
171 "base/turnport_unittest.cc", 165 "base/turnport_unittest.cc",
172 "base/turnserver_unittest.cc", 166 "base/turnserver_unittest.cc",
173 "base/udptransport_unittest.cc", 167 "base/udptransport_unittest.cc",
174 "client/basicportallocator_unittest.cc", 168 "client/basicportallocator_unittest.cc",
175 ] 169 ]
176 if (rtc_use_quic) { 170 if (rtc_use_quic) {
177 sources += [ 171 sources += [
178 "quic/quicconnectionhelper_unittest.cc", 172 "quic/quicconnectionhelper_unittest.cc",
179 "quic/quicsession_unittest.cc", 173 "quic/quicsession_unittest.cc",
180 "quic/quictransport_unittest.cc", 174 "quic/quictransport_unittest.cc",
181 "quic/quictransportchannel_unittest.cc", 175 "quic/quictransportchannel_unittest.cc",
182 "quic/reliablequicstream_unittest.cc", 176 "quic/reliablequicstream_unittest.cc",
183 ] 177 ]
184 } 178 }
185 deps = [ 179 deps = [
186 ":rtc_p2p", 180 ":rtc_p2p",
181 ":rtc_p2p_test_utils",
187 "../api:fakemetricsobserver", 182 "../api:fakemetricsobserver",
183 "../api:ortc_api",
184 "../base:rtc_base",
185 "../base:rtc_base_approved",
186 "../base:rtc_base_tests_utils",
187 "../test:test_support",
188 "//testing/gmock", 188 "//testing/gmock",
189 "//testing/gtest", 189 "//testing/gtest",
190 ] 190 ]
191 if (!build_with_chromium && is_clang) { 191 if (!build_with_chromium && is_clang) {
192 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 192 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
193 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 193 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
194 } 194 }
195 defines = [ "GTEST_RELATIVE_PATH" ] 195 defines = [ "GTEST_RELATIVE_PATH" ]
196 } 196 }
197
198 rtc_source_set("rtc_p2p_test_utils") {
199 testonly = true
200 sources = [
201 "base/fakecandidatepair.h",
202 "base/fakedtlstransport.h",
203 "base/fakeicetransport.h",
204 "base/fakepackettransport.h",
205 "base/fakeportallocator.h",
206 "base/faketransportcontroller.h",
207 "base/mockicetransport.h",
208 "base/testrelayserver.h",
209 "base/teststunserver.h",
210 "base/testturnserver.h",
211 ]
212 deps = [
213 ":rtc_p2p",
214 "../api:ortc_api",
215 "../base:rtc_base",
216 "../base:rtc_base_approved",
217 "../base:rtc_base_tests_utils",
218 "../test:test_support",
219 ]
220 }
197 } 221 }
198 222
199 rtc_static_library("libstunprober") { 223 rtc_static_library("libstunprober") {
200 sources = [ 224 sources = [
201 "stunprober/stunprober.cc", 225 "stunprober/stunprober.cc",
202 ] 226 ]
203 227
204 if (!build_with_chromium && is_clang) { 228 if (!build_with_chromium && is_clang) {
205 # Suppress warnings from Chrome's Clang plugins. 229 # Suppress warnings from Chrome's Clang plugins.
206 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 230 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
207 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 231 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
208 } 232 }
209 233
210 deps = [ 234 deps = [
235 ":rtc_p2p",
211 "..:webrtc_common", 236 "..:webrtc_common",
212 "../base:rtc_base", 237 "../base:rtc_base",
213 ] 238 ]
214 } 239 }
215 240
216 if (rtc_include_tests) { 241 if (rtc_include_tests) {
217 rtc_source_set("libstunprober_unittests") { 242 rtc_source_set("libstunprober_unittests") {
218 testonly = true 243 testonly = true
219 sources = [ 244 sources = [
220 "stunprober/stunprober_unittest.cc", 245 "stunprober/stunprober_unittest.cc",
221 ] 246 ]
222 deps = [ 247 deps = [
223 ":libstunprober", 248 ":libstunprober",
249 ":rtc_p2p",
250 ":rtc_p2p_test_utils",
251 "../base:rtc_base",
252 "../base:rtc_base_tests_utils",
224 "//testing/gmock", 253 "//testing/gmock",
225 "//testing/gtest", 254 "//testing/gtest",
226 ] 255 ]
227 if (!build_with_chromium && is_clang) { 256 if (!build_with_chromium && is_clang) {
228 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 257 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
229 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 258 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
230 } 259 }
231 defines = [ "GTEST_RELATIVE_PATH" ] 260 defines = [ "GTEST_RELATIVE_PATH" ]
232 } 261 }
233 } 262 }
OLDNEW
« no previous file with comments | « webrtc/ortc/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698