[Cronet] Delay StartNetLog and StopNetLog until native request context is initialized
[chromium-blink-merge.git] / third_party / libjingle / BUILD.gn
blob35ae8ac15ba66524f91ee9229376b883f4733767
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
8 # From third_party/libjingle/libjingle.gyp's target_defaults.
9 config("jingle_unexported_configs") {
10   defines = [
11     "EXPAT_RELATIVE_PATH",
12     "FEATURE_ENABLE_SSL",
13     "GTEST_RELATIVE_PATH",
14     "HAVE_SRTP",
15     "HAVE_WEBRTC_VIDEO",
16     "HAVE_WEBRTC_VOICE",
17     "LOGGING_INSIDE_WEBRTC",
18     "NO_MAIN_THREAD_WRAPPING",
19     "NO_SOUND_SYSTEM",
20     "SRTP_RELATIVE_PATH",
21     "USE_WEBRTC_DEV_BRANCH",
22     "ENABLE_EXTERNAL_AUTH",
23     "WEBRTC_CHROMIUM_BUILD",
24   ]
26   include_dirs = [
27     "overrides",
28     "../../third_party/webrtc/overrides",
29     "source",
30     "../../testing/gtest/include",
31     "../../third_party",
32     "../../third_party/libyuv/include",
33     "../../third_party/usrsctp",
34   ]
36   # Assumes libpeer is linked statically.
37   defines += [ "LIBPEERCONNECTION_LIB=1" ]
39   if (is_win && current_cpu == "x86") {
40     defines += [ "_USE_32BIT_TIME_T" ]
41   }
43   if (use_openssl) {
44     defines += [
45       "SSL_USE_OPENSSL",
46       "HAVE_OPENSSL_SSL_H",
47     ]
48   } else {
49     defines += [
50       "SSL_USE_NSS",
51       "HAVE_NSS_SSL_H",
52       "SSL_USE_NSS_RNG",
53     ]
54   }
57 # From third_party/libjingle/libjingle.gyp's target_defaults.
58 config("jingle_direct_dependent_configs") {
59   include_dirs = [
60     "../../third_party/webrtc/overrides",
61     "overrides",
62     "source",
63     "../../testing/gtest/include",
64     "../../third_party",
65   ]
66   defines = [
67     "FEATURE_ENABLE_SSL",
68     "FEATURE_ENABLE_VOICEMAIL",
69     "EXPAT_RELATIVE_PATH",
70     "GTEST_RELATIVE_PATH",
71     "NO_MAIN_THREAD_WRAPPING",
72     "NO_SOUND_SYSTEM",
73   ]
75   # TODO(GYP): Port is_win blocks.
76   if (is_linux) {
77     defines += [
78       "LINUX",
79       "WEBRTC_LINUX",
80     ]
81   }
82   if (is_mac) {
83     defines += [
84       "OSX",
85       "WEBRTC_MAC",
86     ]
87   }
88   if (is_ios) {
89     defines += [
90       "IOS",
91       "WEBRTC_MAC",
92       "WEBRTC_IOS",
93     ]
94   }
95   if (is_win) {
96     defines += [ "WEBRTC_WIN" ]
97   }
98   if (is_android) {
99     defines += [ "ANDROID" ]
100   }
101   if (is_posix) {
102     defines += [
103       "POSIX",
104       "WEBRTC_POSIX",
105     ]
106   }
108   # TODO(GYP): Support these in GN.
109   # if (is_bsd) {
110   #   defines += [ "BSD" ]
111   # }
112   # if (is_openbsd) {
113   #   defines += [ "OPENBSD" ]
114   # }
115   # if (is_freebsd) {
116   #   defines += [ "FREEBSD" ]
117   # }
118   if (is_chromeos) {
119     defines += [ "CHROMEOS" ]
120   }
123 # From third_party/libjingle/libjingle.gyp's target_defaults.
124 config("jingle_all_dependent_configs") {
125   if (is_debug) {
126     # TODO(sergeyu): Fix libjingle to use NDEBUG instead of
127     # _DEBUG and remove this define. See GYP file as well.
128     defines = [ "_DEBUG" ]
129   }
132 # From third_party/libjingle/libjingle.gyp's target_defaults.
133 group("jingle_deps") {
134   public_deps = [
135     "//third_party/expat",
136   ]
137   deps = [
138     "//base",
139     "//net",
140     "//crypto:platform",
141   ]
144 # GYP version: third_party/libjingle.gyp:libjingle
145 static_library("libjingle") {
146   p2p_dir = "../webrtc/p2p"
147   xmllite_dir = "../webrtc/libjingle/xmllite"
148   xmpp_dir = "../webrtc/libjingle/xmpp"
149   sources = [
150     # List from third_party/libjingle/libjingle_common.gypi
151     "$p2p_dir/base/asyncstuntcpsocket.cc",
152     "$p2p_dir/base/asyncstuntcpsocket.h",
153     "$p2p_dir/base/basicpacketsocketfactory.cc",
154     "$p2p_dir/base/basicpacketsocketfactory.h",
155     "$p2p_dir/base/candidate.h",
156     "$p2p_dir/base/common.h",
157     "$p2p_dir/base/constants.cc",
158     "$p2p_dir/base/constants.h",
159     "$p2p_dir/base/dtlstransport.h",
160     "$p2p_dir/base/dtlstransportchannel.cc",
161     "$p2p_dir/base/dtlstransportchannel.h",
162     "$p2p_dir/base/p2ptransport.cc",
163     "$p2p_dir/base/p2ptransport.h",
164     "$p2p_dir/base/p2ptransportchannel.cc",
165     "$p2p_dir/base/p2ptransportchannel.h",
166     "$p2p_dir/base/port.cc",
167     "$p2p_dir/base/port.h",
168     "$p2p_dir/base/portallocator.cc",
169     "$p2p_dir/base/portallocator.h",
170     "$p2p_dir/base/portallocatorsessionproxy.cc",
171     "$p2p_dir/base/portallocatorsessionproxy.h",
172     "$p2p_dir/base/portproxy.cc",
173     "$p2p_dir/base/portproxy.h",
174     "$p2p_dir/base/pseudotcp.cc",
175     "$p2p_dir/base/pseudotcp.h",
176     "$p2p_dir/base/rawtransport.cc",
177     "$p2p_dir/base/rawtransport.h",
178     "$p2p_dir/base/rawtransportchannel.cc",
179     "$p2p_dir/base/rawtransportchannel.h",
180     "$p2p_dir/base/relayport.cc",
181     "$p2p_dir/base/relayport.h",
182     "$p2p_dir/base/session.cc",
183     "$p2p_dir/base/session.h",
184     "$p2p_dir/base/sessiondescription.cc",
185     "$p2p_dir/base/sessiondescription.h",
186     "$p2p_dir/base/sessionid.h",
187     "$p2p_dir/base/stun.cc",
188     "$p2p_dir/base/stun.h",
189     "$p2p_dir/base/stunport.cc",
190     "$p2p_dir/base/stunport.h",
191     "$p2p_dir/base/stunrequest.cc",
192     "$p2p_dir/base/stunrequest.h",
193     "$p2p_dir/base/tcpport.cc",
194     "$p2p_dir/base/tcpport.h",
195     "$p2p_dir/base/transport.cc",
196     "$p2p_dir/base/transport.h",
197     "$p2p_dir/base/transportchannel.cc",
198     "$p2p_dir/base/transportchannel.h",
199     "$p2p_dir/base/transportchannelimpl.h",
200     "$p2p_dir/base/transportchannelproxy.cc",
201     "$p2p_dir/base/transportchannelproxy.h",
202     "$p2p_dir/base/transportdescription.cc",
203     "$p2p_dir/base/transportdescription.h",
204     "$p2p_dir/base/transportdescriptionfactory.cc",
205     "$p2p_dir/base/transportdescriptionfactory.h",
206     "$p2p_dir/base/turnport.cc",
207     "$p2p_dir/base/turnport.h",
208     "$p2p_dir/client/basicportallocator.cc",
209     "$p2p_dir/client/basicportallocator.h",
210     "$p2p_dir/client/httpportallocator.cc",
211     "$p2p_dir/client/httpportallocator.h",
212     "$p2p_dir/client/socketmonitor.cc",
213     "$p2p_dir/client/socketmonitor.h",
214     "$xmllite_dir/qname.cc",
215     "$xmllite_dir/qname.h",
216     "$xmllite_dir/xmlbuilder.cc",
217     "$xmllite_dir/xmlbuilder.h",
218     "$xmllite_dir/xmlconstants.cc",
219     "$xmllite_dir/xmlconstants.h",
220     "$xmllite_dir/xmlelement.cc",
221     "$xmllite_dir/xmlelement.h",
222     "$xmllite_dir/xmlnsstack.cc",
223     "$xmllite_dir/xmlnsstack.h",
224     "$xmllite_dir/xmlparser.cc",
225     "$xmllite_dir/xmlparser.h",
226     "$xmllite_dir/xmlprinter.cc",
227     "$xmllite_dir/xmlprinter.h",
228     "$xmpp_dir/asyncsocket.h",
229     "$xmpp_dir/constants.cc",
230     "$xmpp_dir/constants.h",
231     "$xmpp_dir/jid.cc",
232     "$xmpp_dir/jid.h",
233     "$xmpp_dir/plainsaslhandler.h",
234     "$xmpp_dir/prexmppauth.h",
235     "$xmpp_dir/saslcookiemechanism.h",
236     "$xmpp_dir/saslhandler.h",
237     "$xmpp_dir/saslmechanism.cc",
238     "$xmpp_dir/saslmechanism.h",
239     "$xmpp_dir/saslplainmechanism.h",
240     "$xmpp_dir/xmppclient.cc",
241     "$xmpp_dir/xmppclient.h",
242     "$xmpp_dir/xmppclientsettings.h",
243     "$xmpp_dir/xmppengine.h",
244     "$xmpp_dir/xmppengineimpl.cc",
245     "$xmpp_dir/xmppengineimpl.h",
246     "$xmpp_dir/xmppengineimpl_iq.cc",
247     "$xmpp_dir/xmpplogintask.cc",
248     "$xmpp_dir/xmpplogintask.h",
249     "$xmpp_dir/xmppstanzaparser.cc",
250     "$xmpp_dir/xmppstanzaparser.h",
251     "$xmpp_dir/xmpptask.cc",
252     "$xmpp_dir/xmpptask.h",
253   ]
254   sources -= [
255     # Compiled as part of libjingle_p2p_constants.
256     "$p2p_dir/base/constants.cc",
257     "$p2p_dir/base/constants.h",
258   ]
260   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
261   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
263   public_deps = [
264     ":jingle_deps",
265   ]
266   deps = [
267     "//third_party/webrtc/base:rtc_base",
268     ":libjingle_p2p_constants",
269   ]
271   # From libjingle_common.gypi's conditions list.
272   if (is_win) {
273     cflags = [ "/wd4005" ]
274   }
276   configs += [ ":jingle_unexported_configs" ]
277   public_configs = [ ":jingle_direct_dependent_configs" ]
278   all_dependent_configs = [ ":jingle_all_dependent_configs" ]
281 # This has to be is a separate project due to a bug in MSVS 2008 and the
282 # current toolset on android.  The problem is that we have two files named
283 # "constants.cc" and MSVS/android doesn't handle this properly.
284 # GYP currently has guards to catch this, so if you want to remove it,
285 # run GYP and if GYP has removed the validation check, then we can assume
286 # that the toolchains have been fixed (we currently use VS2010 and later,
287 # so VS2008 isn't a concern anymore).
289 # GYP version: third_party/libjingle.gyp:libjingle_p2p_constants
290 static_library("libjingle_p2p_constants") {
291   p2p_dir = "../webrtc/p2p"
292   sources = [
293     "$p2p_dir/base/constants.cc",
294     "$p2p_dir/base/constants.h",
295   ]
296   public_deps = [
297     ":jingle_deps",
298   ]
299   configs += [ ":jingle_unexported_configs" ]
300   public_configs = [ ":jingle_direct_dependent_configs" ]
301   all_dependent_configs = [ ":jingle_all_dependent_configs" ]
304 # GYP version: third_party/libjingle.gyp:peerconnnection_server
305 #TODO(GYP): Switch to executable when WebRTC dependency is resolved.
306 source_set("peerconnnection_server") {
307   sources = [
308     "source/talk/examples/peerconnection/server/data_socket.cc",
309     "source/talk/examples/peerconnection/server/data_socket.h",
310     "source/talk/examples/peerconnection/server/main.cc",
311     "source/talk/examples/peerconnection/server/peer_channel.cc",
312     "source/talk/examples/peerconnection/server/peer_channel.h",
313     "source/talk/examples/peerconnection/server/utils.cc",
314     "source/talk/examples/peerconnection/server/utils.h",
315   ]
316   include_dirs = [ "source" ]
317   public_deps = [
318     ":jingle_deps",
319   ]
320   deps = [
321     ":libjingle",
322     ":jingle_deps",
323   ]
324   configs += [ ":jingle_unexported_configs" ]
325   public_configs = [ ":jingle_direct_dependent_configs" ]
326   all_dependent_configs = [ ":jingle_all_dependent_configs" ]
327   if (is_win) {
328     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
329     cflags = [ "/wd4309" ]
330   }
333 if (enable_webrtc) {
334   source_set("libjingle_webrtc") {
335     sources = [
336       "overrides/init_webrtc.cc",
337       "overrides/init_webrtc.h",
338     ]
339     configs += [ ":jingle_unexported_configs" ]
340     public_configs = [ ":jingle_direct_dependent_configs" ]
341     deps = [
342       ":libjingle_webrtc_common",
343     ]
344   }
346   # Note: this does not support the shared library build of libpeerconnection
347   # as is supported in the GYP build. It's not clear what this is used for.
348   source_set("libjingle_webrtc_common") {
349     sources = [
350       "overrides/talk/media/webrtc/webrtcexport.h",
351       "source/talk/app/webrtc/audiotrack.cc",
352       "source/talk/app/webrtc/audiotrack.h",
353       "source/talk/app/webrtc/audiotrackrenderer.cc",
354       "source/talk/app/webrtc/audiotrackrenderer.h",
355       "source/talk/app/webrtc/datachannel.cc",
356       "source/talk/app/webrtc/datachannel.h",
357       "source/talk/app/webrtc/dtlsidentityservice.cc",
358       "source/talk/app/webrtc/dtlsidentityservice.h",
359       "source/talk/app/webrtc/dtlsidentitystore.cc",
360       "source/talk/app/webrtc/dtlsidentitystore.h",
361       "source/talk/app/webrtc/dtmfsender.cc",
362       "source/talk/app/webrtc/dtmfsender.h",
363       "source/talk/app/webrtc/jsep.h",
364       "source/talk/app/webrtc/jsepicecandidate.cc",
365       "source/talk/app/webrtc/jsepicecandidate.h",
366       "source/talk/app/webrtc/jsepsessiondescription.cc",
367       "source/talk/app/webrtc/jsepsessiondescription.h",
368       "source/talk/app/webrtc/localaudiosource.cc",
369       "source/talk/app/webrtc/localaudiosource.h",
370       "source/talk/app/webrtc/mediaconstraintsinterface.cc",
371       "source/talk/app/webrtc/mediaconstraintsinterface.h",
372       "source/talk/app/webrtc/mediastream.cc",
373       "source/talk/app/webrtc/mediastream.h",
374       "source/talk/app/webrtc/mediastreamhandler.cc",
375       "source/talk/app/webrtc/mediastreamhandler.h",
376       "source/talk/app/webrtc/mediastreaminterface.h",
377       "source/talk/app/webrtc/mediastreamprovider.h",
378       "source/talk/app/webrtc/mediastreamproxy.h",
379       "source/talk/app/webrtc/mediastreamsignaling.cc",
380       "source/talk/app/webrtc/mediastreamsignaling.h",
381       "source/talk/app/webrtc/mediastreamtrack.h",
382       "source/talk/app/webrtc/mediastreamtrackproxy.h",
383       "source/talk/app/webrtc/notifier.h",
384       "source/talk/app/webrtc/peerconnection.cc",
385       "source/talk/app/webrtc/peerconnection.h",
386       "source/talk/app/webrtc/peerconnectionfactory.cc",
387       "source/talk/app/webrtc/peerconnectionfactory.h",
388       "source/talk/app/webrtc/peerconnectioninterface.h",
389       "source/talk/app/webrtc/portallocatorfactory.cc",
390       "source/talk/app/webrtc/portallocatorfactory.h",
391       "source/talk/app/webrtc/remoteaudiosource.cc",
392       "source/talk/app/webrtc/remoteaudiosource.h",
393       "source/talk/app/webrtc/remotevideocapturer.cc",
394       "source/talk/app/webrtc/remotevideocapturer.h",
395       "source/talk/app/webrtc/sctputils.cc",
396       "source/talk/app/webrtc/sctputils.h",
397       "source/talk/app/webrtc/statscollector.cc",
398       "source/talk/app/webrtc/statscollector.h",
399       "source/talk/app/webrtc/statstypes.cc",
400       "source/talk/app/webrtc/statstypes.h",
401       "source/talk/app/webrtc/streamcollection.h",
402       "source/talk/app/webrtc/umametrics.h",
403       "source/talk/app/webrtc/videosource.cc",
404       "source/talk/app/webrtc/videosource.h",
405       "source/talk/app/webrtc/videosourceinterface.h",
406       "source/talk/app/webrtc/videosourceproxy.h",
407       "source/talk/app/webrtc/videotrack.cc",
408       "source/talk/app/webrtc/videotrack.h",
409       "source/talk/app/webrtc/videotrackrenderers.cc",
410       "source/talk/app/webrtc/videotrackrenderers.h",
411       "source/talk/app/webrtc/webrtcsdp.cc",
412       "source/talk/app/webrtc/webrtcsdp.h",
413       "source/talk/app/webrtc/webrtcsession.cc",
414       "source/talk/app/webrtc/webrtcsession.h",
415       "source/talk/app/webrtc/webrtcsessiondescriptionfactory.cc",
416       "source/talk/app/webrtc/webrtcsessiondescriptionfactory.h",
417       "source/talk/media/base/audiorenderer.h",
418       "source/talk/media/base/capturemanager.cc",
419       "source/talk/media/base/capturemanager.h",
420       "source/talk/media/base/capturerenderadapter.cc",
421       "source/talk/media/base/capturerenderadapter.h",
422       "source/talk/media/base/codec.cc",
423       "source/talk/media/base/codec.h",
424       "source/talk/media/base/constants.cc",
425       "source/talk/media/base/constants.h",
426       "source/talk/media/base/cryptoparams.h",
427       "source/talk/media/base/filemediaengine.cc",
428       "source/talk/media/base/filemediaengine.h",
429       "source/talk/media/base/hybriddataengine.h",
430       "source/talk/media/base/mediachannel.h",
431       "source/talk/media/base/mediaengine.cc",
432       "source/talk/media/base/mediaengine.h",
433       "source/talk/media/base/rtpdataengine.cc",
434       "source/talk/media/base/rtpdataengine.h",
435       "source/talk/media/base/rtpdump.cc",
436       "source/talk/media/base/rtpdump.h",
437       "source/talk/media/base/rtputils.cc",
438       "source/talk/media/base/rtputils.h",
439       "source/talk/media/base/streamparams.cc",
440       "source/talk/media/base/streamparams.h",
441       "source/talk/media/base/videoadapter.cc",
442       "source/talk/media/base/videoadapter.h",
443       "source/talk/media/base/videocapturer.cc",
444       "source/talk/media/base/videocapturer.h",
445       "source/talk/media/base/videocommon.cc",
446       "source/talk/media/base/videocommon.h",
447       "source/talk/media/base/videoframe.cc",
448       "source/talk/media/base/videoframe.h",
449       "source/talk/media/base/videoframefactory.cc",
450       "source/talk/media/base/videoframefactory.h",
451       "source/talk/media/devices/dummydevicemanager.cc",
452       "source/talk/media/devices/dummydevicemanager.h",
453       "source/talk/media/devices/filevideocapturer.cc",
454       "source/talk/media/devices/filevideocapturer.h",
455       "source/talk/media/webrtc/webrtccommon.h",
456       "source/talk/media/webrtc/webrtcpassthroughrender.cc",
457       "source/talk/media/webrtc/webrtcpassthroughrender.h",
458       "source/talk/media/webrtc/webrtcvideocapturer.cc",
459       "source/talk/media/webrtc/webrtcvideocapturer.h",
460       "source/talk/media/webrtc/webrtcvideoframe.cc",
461       "source/talk/media/webrtc/webrtcvideoframe.h",
462       "source/talk/media/webrtc/webrtcvideoframefactory.cc",
463       "source/talk/media/webrtc/webrtcvideoframefactory.h",
464       "source/talk/media/webrtc/webrtcvie.h",
465       "source/talk/media/webrtc/webrtcvoe.h",
466       "source/talk/session/media/audiomonitor.cc",
467       "source/talk/session/media/audiomonitor.h",
468       "source/talk/session/media/bundlefilter.cc",
469       "source/talk/session/media/bundlefilter.h",
470       "source/talk/session/media/channel.cc",
471       "source/talk/session/media/channel.h",
472       "source/talk/session/media/channelmanager.cc",
473       "source/talk/session/media/channelmanager.h",
474       "source/talk/session/media/currentspeakermonitor.cc",
475       "source/talk/session/media/currentspeakermonitor.h",
476       "source/talk/session/media/externalhmac.cc",
477       "source/talk/session/media/externalhmac.h",
478       "source/talk/session/media/mediamonitor.cc",
479       "source/talk/session/media/mediamonitor.h",
480       "source/talk/session/media/mediasession.cc",
481       "source/talk/session/media/mediasession.h",
482       "source/talk/session/media/mediasink.h",
483       "source/talk/session/media/rtcpmuxfilter.cc",
484       "source/talk/session/media/rtcpmuxfilter.h",
485       "source/talk/session/media/soundclip.cc",
486       "source/talk/session/media/soundclip.h",
487       "source/talk/session/media/srtpfilter.cc",
488       "source/talk/session/media/srtpfilter.h",
489       "source/talk/session/media/typingmonitor.cc",
490       "source/talk/session/media/typingmonitor.h",
491       "source/talk/session/media/voicechannel.h",
492     ]
494     configs -= [ "//build/config/compiler:chromium_code" ]
495     configs += [ "//build/config/compiler:no_chromium_code" ]
497     configs += [ ":jingle_unexported_configs" ]
498     public_configs = [ ":jingle_direct_dependent_configs" ]
500     deps = [
501       "//third_party/libsrtp",
502       "//third_party/webrtc/modules/media_file",
503       "//third_party/webrtc/modules/video_capture",
504       "//third_party/webrtc/modules/video_render",
505     ]
507     if (!is_ios) {
508       # TODO(mallinath) - Enable SCTP for iOS.
509       sources += [
510         "source/talk/media/sctp/sctpdataengine.cc",
511         "source/talk/media/sctp/sctpdataengine.h",
512       ]
513       defines = [ "HAVE_SCTP" ]
514       deps += [ "//third_party/usrsctp" ]
515     }
516   }
518   # Note: this does not support the shared library build of libpeerconnection
519   # as is supported in the GYP build. It's not clear what this is used for.
520   source_set("libpeerconnection") {
521     sources = [
522       "source/talk/media/webrtc/simulcast.cc",
523       "source/talk/media/webrtc/simulcast.h",
524       "source/talk/media/webrtc/webrtcmediaengine.cc",
525       "source/talk/media/webrtc/webrtcmediaengine.h",
526       "source/talk/media/webrtc/webrtcvideoengine.cc",
527       "source/talk/media/webrtc/webrtcvideoengine.h",
528       "source/talk/media/webrtc/webrtcvideoengine2.cc",
529       "source/talk/media/webrtc/webrtcvideoengine2.h",
530       "source/talk/media/webrtc/webrtcvoiceengine.cc",
531       "source/talk/media/webrtc/webrtcvoiceengine.h",
532     ]
534     configs += [ ":jingle_unexported_configs" ]
535     public_configs = [ ":jingle_direct_dependent_configs" ]
536     configs -= [ "//build/config/compiler:chromium_code" ]
537     configs += [ "//build/config/compiler:no_chromium_code" ]
539     deps = [
540       ":libjingle_webrtc_common",
541       "//third_party/webrtc",
542       "//third_party/webrtc/system_wrappers",
543       "//third_party/webrtc/voice_engine",
544     ]
545   }
546 }  # enable_webrtc
547 # TODO(GYP): Port libjingle.gyp's enable_webrtc condition block.