Material throbber: use in tabstrip
[chromium-blink-merge.git] / third_party / libjingle / libjingle.gyp
blob7cda19660a03d35b42ee958201e026c77e3a6794
1 # Copyright (c) 2012 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.
6   'includes': [
7     '../../build/win_precompile.gypi',
8   ],
9   'variables': {
10     'enabled_libjingle_device_manager%': 0,
11     'libjingle_additional_deps%': [],
12     'libjingle_peerconnection_additional_deps%': [],
13     'libjingle_source%': "source",
14     'webrtc_p2p': "../webrtc/p2p",
15     'webrtc_xmpp': "../webrtc/libjingle/xmpp",
16   },
17   # Most of these settings have been split according to their scope into
18   # :jingle_unexported_configs, :jingle_public_configs,
19   # :jingle_all_dependent_configs in the GN build.
20   'target_defaults': {
21     'defines': [
22       'ENABLE_EXTERNAL_AUTH',
23       'EXPAT_RELATIVE_PATH',
24       'FEATURE_ENABLE_SSL',
25       'GTEST_RELATIVE_PATH',
26       'HAVE_SRTP',
27       'HAVE_WEBRTC_VIDEO',
28       'HAVE_WEBRTC_VOICE',
29       'LIBPEERCONNECTION_LIB=1',
30       'LOGGING_INSIDE_WEBRTC',
31       'NO_MAIN_THREAD_WRAPPING',
32       'NO_SOUND_SYSTEM',
33       'SRTP_RELATIVE_PATH',
34       'USE_WEBRTC_DEV_BRANCH',
35       'WEBRTC_CHROMIUM_BUILD',
36     ],
37     'configurations': {
38       'Debug': {
39         'defines': [
40           # TODO(sergeyu): Fix libjingle to use NDEBUG instead of
41           # _DEBUG and remove this define. See below as well.
42           '_DEBUG',
43         ],
44       }
45     },
46     'include_dirs': [
47       './overrides',
48       '../../third_party/webrtc/overrides',
49       './<(libjingle_source)',
50       '../..',
51       '../../testing/gtest/include',
52       '../../third_party',
53       '../../third_party/libyuv/include',
54       '../../third_party/usrsctp',
55     ],
56     # These dependencies have been translated into :jingle_deps in the GN build.
57     'dependencies': [
58       '<(DEPTH)/base/base.gyp:base',
59       '<(DEPTH)/net/net.gyp:net',
60       '<(DEPTH)/third_party/expat/expat.gyp:expat',
61     ],
62     'export_dependent_settings': [
63       '<(DEPTH)/third_party/expat/expat.gyp:expat',
64     ],
65     'direct_dependent_settings': {
66       'include_dirs': [
67         '../../third_party/webrtc/overrides',
68         './overrides',
69         './<(libjingle_source)',
70         '../..',
71         '../../testing/gtest/include',
72         '../../third_party',
73       ],
74       'defines': [
75         'FEATURE_ENABLE_SSL',
76         'FEATURE_ENABLE_VOICEMAIL',
77         'EXPAT_RELATIVE_PATH',
78         'GTEST_RELATIVE_PATH',
79         'NO_MAIN_THREAD_WRAPPING',
80         'NO_SOUND_SYSTEM',
81       ],
82       'conditions': [
83         ['OS=="win"', {
84           'link_settings': {
85             'libraries': [
86               '-lsecur32.lib',
87               '-lcrypt32.lib',
88               '-liphlpapi.lib',
89             ],
90           },
91         }],
92         ['OS=="win"', {
93           'include_dirs': [
94             '../third_party/platformsdk_win7/files/Include',
95           ],
96           'defines': [
97             '_CRT_SECURE_NO_WARNINGS',  # Suppres warnings about _vsnprinf
98           ],
99           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
100           'msvs_disabled_warnings': [ 4267 ],
101         }],
102         ['OS=="linux"', {
103           'defines': [
104             'LINUX',
105             'WEBRTC_LINUX',
106           ],
107         }],
108         ['OS=="mac"', {
109           'defines': [
110             'OSX',
111             'WEBRTC_MAC',
112           ],
113         }],
114         ['OS=="ios"', {
115           'defines': [
116             'IOS',
117             'WEBRTC_MAC',
118             'WEBRTC_IOS',
119           ],
120         }],
121         ['OS=="win"', {
122           'defines': [
123             'WEBRTC_WIN',
124           ],
125         }],
126         ['OS=="android"', {
127           'defines': [
128             'ANDROID',
129           ],
130         }],
131         ['os_posix==1', {
132           'defines': [
133             'WEBRTC_POSIX',
134           ],
135         }],
136         ['os_bsd==1', {
137           'defines': [
138             'BSD',
139           ],
140         }],
141         ['OS=="openbsd"', {
142           'defines': [
143             'OPENBSD',
144           ],
145         }],
146         ['OS=="freebsd"', {
147           'defines': [
148             'FREEBSD',
149           ],
150         }],
151         ['chromeos==1', {
152           'defines': [
153             'CHROMEOS',
154           ],
155         }],
156       ],
157     },
158     'all_dependent_settings': {
159       'configurations': {
160         'Debug': {
161           'defines': [
162             # TODO(sergeyu): Fix libjingle to use NDEBUG instead of _DEBUG and
163             # remove this define. See above and GN file as well.
164             '_DEBUG',
165           ],
166         }
167       },
168     },
169     'variables': {
170       'clang_warning_flags_unset': [
171         # Don't warn about string->bool used in asserts.
172         '-Wstring-conversion',
173       ],
174     },
175     'conditions': [
176       ['use_openssl==1', {
177         'defines': [
178           'SSL_USE_OPENSSL',
179           'HAVE_OPENSSL_SSL_H',
180         ],
181         'dependencies': [
182           '../../third_party/boringssl/boringssl.gyp:boringssl',
183         ],
184       }, {
185         'defines': [
186           'SSL_USE_NSS',
187           'HAVE_NSS_SSL_H',
188           'SSL_USE_NSS_RNG',
189         ],
190         'conditions': [
191           ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
192             'dependencies': [
193               '<(DEPTH)/build/linux/system.gyp:ssl',
194             ],
195           }],
196           ['OS == "mac" or OS == "ios" or OS == "win"', {
197             'dependencies': [
198               '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
199               '<(DEPTH)/third_party/nss/nss.gyp:nspr',
200               '<(DEPTH)/third_party/nss/nss.gyp:nss',
201             ],
202           }],
203         ],
204       }],
205       ['OS=="win"', {
206         'include_dirs': [
207           '../third_party/platformsdk_win7/files/Include',
208         ],
209         'conditions' : [
210           ['target_arch == "ia32"', {
211             'defines': [
212               '_USE_32BIT_TIME_T',
213             ],
214           }],
215         ],
216       }],
217       ['OS=="linux"', {
218         'defines': [
219           'LINUX',
220           'WEBRTC_LINUX',
221         ],
222       }],
223       ['OS=="mac"', {
224         'defines': [
225           'OSX',
226           'WEBRTC_MAC',
227         ],
228       }],
229       ['OS=="win"', {
230         'defines': [
231           'WEBRTC_WIN',
232         ],
233       }],
234       ['OS=="ios"', {
235         'defines': [
236           'IOS',
237           'WEBRTC_MAC',
238           'WEBRTC_IOS',
239         ],
240       }],
241       ['os_posix == 1', {
242         'defines': [
243           'WEBRTC_POSIX',
244         ],
245       }],
246       ['os_bsd==1', {
247         'defines': [
248           'BSD',
249         ],
250       }],
251       ['OS=="openbsd"', {
252         'defines': [
253           'OPENBSD',
254         ],
255       }],
256       ['OS=="freebsd"', {
257         'defines': [
258           'FREEBSD',
259         ],
260       }],
261     ],
262   },
263   'targets': [
264     # GN version: //third_party/libjingle
265     {
266       'target_name': 'libjingle',
267       'type': 'static_library',
268       'includes': [ 'libjingle_common.gypi' ],
269       'sources!' : [
270         # Compiled as part of libjingle_p2p_constants.
271         '<(webrtc_p2p)/base/constants.cc',
272         '<(webrtc_p2p)/base/constants.h',
273       ],
274       'dependencies': [
275         '<(DEPTH)/third_party/webrtc/base/base.gyp:rtc_base',
276         '<(DEPTH)/third_party/webrtc/libjingle/xmllite/xmllite.gyp:rtc_xmllite',
277         'libjingle_p2p_constants',
278         '<@(libjingle_additional_deps)',
279       ],
280     },  # target libjingle
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).
288     #
289     # GN version: //third_party/libjingle:libjingle_p2p_constants
290     {
291       'target_name': 'libjingle_p2p_constants',
292       'type': 'static_library',
293       'sources': [
294         '<(webrtc_p2p)/base/constants.cc',
295         '<(webrtc_p2p)/base/constants.h',
296       ],
297     },  # target libjingle_p2p_constants
298     # GN version: //third_party/libjingle:peerconnection_server
299     {
300       'target_name': 'peerconnection_server',
301       'type': 'executable',
302       'sources': [
303         '<(libjingle_source)/talk/examples/peerconnection/server/data_socket.cc',
304         '<(libjingle_source)/talk/examples/peerconnection/server/data_socket.h',
305         '<(libjingle_source)/talk/examples/peerconnection/server/main.cc',
306         '<(libjingle_source)/talk/examples/peerconnection/server/peer_channel.cc',
307         '<(libjingle_source)/talk/examples/peerconnection/server/peer_channel.h',
308         '<(libjingle_source)/talk/examples/peerconnection/server/utils.cc',
309         '<(libjingle_source)/talk/examples/peerconnection/server/utils.h',
310       ],
311       'include_dirs': [
312         '<(libjingle_source)',
313       ],
314       'dependencies': [
315         'libjingle',
316       ],
317       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
318       'msvs_disabled_warnings': [ 4309, ],
319     }, # target peerconnection_server
320   ],
321   'conditions': [
322     ['enable_webrtc==1', {
323       'targets': [
324         {
325           # GN version: //third_party/libjingle:libjingle_webrtc_common
326           'target_name': 'libjingle_webrtc_common',
327           'type': 'static_library',
328           'all_dependent_settings': {
329             'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
330           },
331           'sources': [
332             'overrides/talk/media/webrtc/webrtcexport.h',
334             '<(libjingle_source)/talk/app/webrtc/audiotrack.cc',
335             '<(libjingle_source)/talk/app/webrtc/audiotrack.h',
336             '<(libjingle_source)/talk/app/webrtc/audiotrackrenderer.cc',
337             '<(libjingle_source)/talk/app/webrtc/audiotrackrenderer.h',
338             '<(libjingle_source)/talk/app/webrtc/datachannel.cc',
339             '<(libjingle_source)/talk/app/webrtc/datachannel.h',
340             '<(libjingle_source)/talk/app/webrtc/dtlsidentityservice.cc',
341             '<(libjingle_source)/talk/app/webrtc/dtlsidentityservice.h',
342             '<(libjingle_source)/talk/app/webrtc/dtlsidentitystore.cc',
343             '<(libjingle_source)/talk/app/webrtc/dtlsidentitystore.h',
344             '<(libjingle_source)/talk/app/webrtc/dtmfsender.cc',
345             '<(libjingle_source)/talk/app/webrtc/dtmfsender.h',
346             '<(libjingle_source)/talk/app/webrtc/jsep.h',
347             '<(libjingle_source)/talk/app/webrtc/jsepicecandidate.cc',
348             '<(libjingle_source)/talk/app/webrtc/jsepicecandidate.h',
349             '<(libjingle_source)/talk/app/webrtc/jsepsessiondescription.cc',
350             '<(libjingle_source)/talk/app/webrtc/jsepsessiondescription.h',
351             '<(libjingle_source)/talk/app/webrtc/localaudiosource.cc',
352             '<(libjingle_source)/talk/app/webrtc/localaudiosource.h',
353             '<(libjingle_source)/talk/app/webrtc/mediaconstraintsinterface.cc',
354             '<(libjingle_source)/talk/app/webrtc/mediaconstraintsinterface.h',
355             '<(libjingle_source)/talk/app/webrtc/mediastream.cc',
356             '<(libjingle_source)/talk/app/webrtc/mediastream.h',
357             '<(libjingle_source)/talk/app/webrtc/mediastreamhandler.cc',
358             '<(libjingle_source)/talk/app/webrtc/mediastreamhandler.h',
359             '<(libjingle_source)/talk/app/webrtc/mediastreaminterface.h',
360             '<(libjingle_source)/talk/app/webrtc/mediastreamprovider.h',
361             '<(libjingle_source)/talk/app/webrtc/mediastreamproxy.h',
362             '<(libjingle_source)/talk/app/webrtc/mediastreamsignaling.cc',
363             '<(libjingle_source)/talk/app/webrtc/mediastreamsignaling.h',
364             '<(libjingle_source)/talk/app/webrtc/mediastreamtrack.h',
365             '<(libjingle_source)/talk/app/webrtc/mediastreamtrackproxy.h',
366             '<(libjingle_source)/talk/app/webrtc/notifier.h',
367             '<(libjingle_source)/talk/app/webrtc/peerconnection.cc',
368             '<(libjingle_source)/talk/app/webrtc/peerconnection.h',
369             '<(libjingle_source)/talk/app/webrtc/peerconnectionfactory.cc',
370             '<(libjingle_source)/talk/app/webrtc/peerconnectionfactory.h',
371             '<(libjingle_source)/talk/app/webrtc/peerconnectioninterface.h',
372             '<(libjingle_source)/talk/app/webrtc/portallocatorfactory.cc',
373             '<(libjingle_source)/talk/app/webrtc/portallocatorfactory.h',
374             '<(libjingle_source)/talk/app/webrtc/remoteaudiosource.cc',
375             '<(libjingle_source)/talk/app/webrtc/remoteaudiosource.h',
376             '<(libjingle_source)/talk/app/webrtc/remotevideocapturer.cc',
377             '<(libjingle_source)/talk/app/webrtc/remotevideocapturer.h',
378             '<(libjingle_source)/talk/app/webrtc/sctputils.cc',
379             '<(libjingle_source)/talk/app/webrtc/sctputils.h',
380             '<(libjingle_source)/talk/app/webrtc/statscollector.cc',
381             '<(libjingle_source)/talk/app/webrtc/statscollector.h',
382             '<(libjingle_source)/talk/app/webrtc/statstypes.cc',
383             '<(libjingle_source)/talk/app/webrtc/statstypes.h',
384             '<(libjingle_source)/talk/app/webrtc/streamcollection.h',
385             '<(libjingle_source)/talk/app/webrtc/umametrics.h',
386             '<(libjingle_source)/talk/app/webrtc/videosource.cc',
387             '<(libjingle_source)/talk/app/webrtc/videosource.h',
388             '<(libjingle_source)/talk/app/webrtc/videosourceinterface.h',
389             '<(libjingle_source)/talk/app/webrtc/videosourceproxy.h',
390             '<(libjingle_source)/talk/app/webrtc/videotrack.cc',
391             '<(libjingle_source)/talk/app/webrtc/videotrack.h',
392             '<(libjingle_source)/talk/app/webrtc/videotrackrenderers.cc',
393             '<(libjingle_source)/talk/app/webrtc/videotrackrenderers.h',
394             '<(libjingle_source)/talk/app/webrtc/webrtcsdp.cc',
395             '<(libjingle_source)/talk/app/webrtc/webrtcsdp.h',
396             '<(libjingle_source)/talk/app/webrtc/webrtcsession.cc',
397             '<(libjingle_source)/talk/app/webrtc/webrtcsession.h',
398             '<(libjingle_source)/talk/app/webrtc/webrtcsessiondescriptionfactory.cc',
399             '<(libjingle_source)/talk/app/webrtc/webrtcsessiondescriptionfactory.h',
400             '<(libjingle_source)/talk/media/base/audiorenderer.h',
401             '<(libjingle_source)/talk/media/base/capturemanager.cc',
402             '<(libjingle_source)/talk/media/base/capturemanager.h',
403             '<(libjingle_source)/talk/media/base/capturerenderadapter.cc',
404             '<(libjingle_source)/talk/media/base/capturerenderadapter.h',
405             '<(libjingle_source)/talk/media/base/codec.cc',
406             '<(libjingle_source)/talk/media/base/codec.h',
407             '<(libjingle_source)/talk/media/base/constants.cc',
408             '<(libjingle_source)/talk/media/base/constants.h',
409             '<(libjingle_source)/talk/media/base/cryptoparams.h',
410             '<(libjingle_source)/talk/media/base/filemediaengine.cc',
411             '<(libjingle_source)/talk/media/base/filemediaengine.h',
412             '<(libjingle_source)/talk/media/base/hybriddataengine.h',
413             '<(libjingle_source)/talk/media/base/mediachannel.h',
414             '<(libjingle_source)/talk/media/base/mediaengine.cc',
415             '<(libjingle_source)/talk/media/base/mediaengine.h',
416             '<(libjingle_source)/talk/media/base/rtpdataengine.cc',
417             '<(libjingle_source)/talk/media/base/rtpdataengine.h',
418             '<(libjingle_source)/talk/media/base/rtpdump.cc',
419             '<(libjingle_source)/talk/media/base/rtpdump.h',
420             '<(libjingle_source)/talk/media/base/rtputils.cc',
421             '<(libjingle_source)/talk/media/base/rtputils.h',
422             '<(libjingle_source)/talk/media/base/streamparams.cc',
423             '<(libjingle_source)/talk/media/base/streamparams.h',
424             '<(libjingle_source)/talk/media/base/videoadapter.cc',
425             '<(libjingle_source)/talk/media/base/videoadapter.h',
426             '<(libjingle_source)/talk/media/base/videocapturer.cc',
427             '<(libjingle_source)/talk/media/base/videocapturer.h',
428             '<(libjingle_source)/talk/media/base/videocommon.cc',
429             '<(libjingle_source)/talk/media/base/videocommon.h',
430             '<(libjingle_source)/talk/media/base/videoframe.cc',
431             '<(libjingle_source)/talk/media/base/videoframe.h',
432             '<(libjingle_source)/talk/media/base/videoframefactory.cc',
433             '<(libjingle_source)/talk/media/base/videoframefactory.h',
434             '<(libjingle_source)/talk/media/devices/dummydevicemanager.cc',
435             '<(libjingle_source)/talk/media/devices/dummydevicemanager.h',
436             '<(libjingle_source)/talk/media/devices/filevideocapturer.cc',
437             '<(libjingle_source)/talk/media/devices/filevideocapturer.h',
438             '<(libjingle_source)/talk/media/webrtc/webrtccommon.h',
439             '<(libjingle_source)/talk/media/webrtc/webrtcpassthroughrender.cc',
440             '<(libjingle_source)/talk/media/webrtc/webrtcpassthroughrender.h',
441             '<(libjingle_source)/talk/media/webrtc/webrtcvideocapturer.cc',
442             '<(libjingle_source)/talk/media/webrtc/webrtcvideocapturer.h',
443             '<(libjingle_source)/talk/media/webrtc/webrtcvideoframe.cc',
444             '<(libjingle_source)/talk/media/webrtc/webrtcvideoframe.h',
445             '<(libjingle_source)/talk/media/webrtc/webrtcvideoframefactory.cc',
446             '<(libjingle_source)/talk/media/webrtc/webrtcvideoframefactory.h',
447             '<(libjingle_source)/talk/media/webrtc/webrtcvie.h',
448             '<(libjingle_source)/talk/media/webrtc/webrtcvoe.h',
449             '<(libjingle_source)/talk/session/media/audiomonitor.cc',
450             '<(libjingle_source)/talk/session/media/audiomonitor.h',
451             '<(libjingle_source)/talk/session/media/bundlefilter.cc',
452             '<(libjingle_source)/talk/session/media/bundlefilter.h',
453             '<(libjingle_source)/talk/session/media/channel.cc',
454             '<(libjingle_source)/talk/session/media/channel.h',
455             '<(libjingle_source)/talk/session/media/channelmanager.cc',
456             '<(libjingle_source)/talk/session/media/channelmanager.h',
457             '<(libjingle_source)/talk/session/media/currentspeakermonitor.cc',
458             '<(libjingle_source)/talk/session/media/currentspeakermonitor.h',
459             '<(libjingle_source)/talk/session/media/externalhmac.cc',
460             '<(libjingle_source)/talk/session/media/externalhmac.h',
461             '<(libjingle_source)/talk/session/media/mediamonitor.cc',
462             '<(libjingle_source)/talk/session/media/mediamonitor.h',
463             '<(libjingle_source)/talk/session/media/mediasession.cc',
464             '<(libjingle_source)/talk/session/media/mediasession.h',
465             '<(libjingle_source)/talk/session/media/mediasink.h',
466             '<(libjingle_source)/talk/session/media/rtcpmuxfilter.cc',
467             '<(libjingle_source)/talk/session/media/rtcpmuxfilter.h',
468             '<(libjingle_source)/talk/session/media/soundclip.cc',
469             '<(libjingle_source)/talk/session/media/soundclip.h',
470             '<(libjingle_source)/talk/session/media/srtpfilter.cc',
471             '<(libjingle_source)/talk/session/media/srtpfilter.h',
472             '<(libjingle_source)/talk/session/media/typingmonitor.cc',
473             '<(libjingle_source)/talk/session/media/typingmonitor.h',
474             '<(libjingle_source)/talk/session/media/voicechannel.h',
475           ],
476           'conditions': [
477             # TODO(mallinath) - Enable SCTP for iOS.
478             ['OS!="ios"', {
479               'defines': [
480                 'HAVE_SCTP',
481               ],
482               'sources': [
483                 '<(libjingle_source)/talk/media/sctp/sctpdataengine.cc',
484                 '<(libjingle_source)/talk/media/sctp/sctpdataengine.h',
485               ],
486               'dependencies': [
487                 '<(DEPTH)/third_party/usrsctp/usrsctp.gyp:usrsctplib',
488               ],
489             }],
490             ['enabled_libjingle_device_manager==1', {
491               'sources!': [
492                 '<(libjingle_source)/talk/media/devices/dummydevicemanager.cc',
493                 '<(libjingle_source)/talk/media/devices/dummydevicemanager.h',
494               ],
495               'sources': [
496                 '<(libjingle_source)/talk/media/devices/devicemanager.cc',
497                 '<(libjingle_source)/talk/media/devices/devicemanager.h',
498               ],
499               'conditions': [
500                 ['OS=="win"', {
501                   'sources': [
502                     '<(libjingle_source)/talk/media/devices/win32deviceinfo.cc',
503                     '<(libjingle_source)/talk/media/devices/win32devicemanager.cc',
504                     '<(libjingle_source)/talk/media/devices/win32devicemanager.h',
505                   ],
506                 }],
507                 ['OS=="linux"', {
508                   'sources': [
509                     '<(libjingle_source)/talk/media/devices/libudevsymboltable.cc',
510                     '<(libjingle_source)/talk/media/devices/libudevsymboltable.h',
511                     '<(libjingle_source)/talk/media/devices/linuxdeviceinfo.cc',
512                     '<(libjingle_source)/talk/media/devices/linuxdevicemanager.cc',
513                     '<(libjingle_source)/talk/media/devices/linuxdevicemanager.h',
514                     '<(libjingle_source)/talk/media/devices/v4llookup.cc',
515                     '<(libjingle_source)/talk/media/devices/v4llookup.h',
516                   ],
517                 }],
518                 ['OS=="mac"', {
519                   'sources': [
520                     '<(libjingle_source)/talk/media/devices/macdeviceinfo.cc',
521                     '<(libjingle_source)/talk/media/devices/macdevicemanager.cc',
522                     '<(libjingle_source)/talk/media/devices/macdevicemanager.h',
523                     '<(libjingle_source)/talk/media/devices/macdevicemanagermm.mm',
524                   ],
525                   'xcode_settings': {
526                     'WARNING_CFLAGS': [
527                       # Suppres warnings about using deprecated functions in
528                       # macdevicemanager.cc.
529                       '-Wno-deprecated-declarations',
530                     ],
531                   },
532                 }],
533               ],
534             }],
535           ],
536           'dependencies': [
537             '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',
538             '<(DEPTH)/third_party/webrtc/modules/modules.gyp:media_file',
539             '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_capture',
540             '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_render',
541             'libjingle',
542           ],
543         },  # target libjingle_webrtc_common
544         {
545           # GN version: //third_party/libjingle:libjingle_webrtc
546           'target_name': 'libjingle_webrtc',
547           'type': 'static_library',
548           'sources': [
549             'overrides/init_webrtc.cc',
550             'overrides/init_webrtc.h',
551           ],
552           'dependencies': [
553             '<(DEPTH)/third_party/webrtc/modules/modules.gyp:audio_processing',
554             'libjingle_webrtc_common',
555           ],
556         },
557         {
558           # GN version: //third_party/libjingle:libpeerconnection
559           'target_name': 'libpeerconnection',
560           'type': 'static_library',
561           'sources': [
562             # Note: sources list duplicated in GN build.
563             '<(libjingle_source)/talk/media/webrtc/simulcast.cc',
564             '<(libjingle_source)/talk/media/webrtc/simulcast.h',
565             '<(libjingle_source)/talk/media/webrtc/webrtcmediaengine.cc',
566             '<(libjingle_source)/talk/media/webrtc/webrtcmediaengine.h',
567             '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine.cc',
568             '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine.h',
569             '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine2.cc',
570             '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine2.h',
571             '<(libjingle_source)/talk/media/webrtc/webrtcvoiceengine.cc',
572             '<(libjingle_source)/talk/media/webrtc/webrtcvoiceengine.h',
573           ],
574           'dependencies': [
575             '<(DEPTH)/third_party/webrtc/voice_engine/voice_engine.gyp:voice_engine',
576             '<(DEPTH)/third_party/webrtc/webrtc.gyp:webrtc',
577             '<@(libjingle_peerconnection_additional_deps)',
578             'libjingle_webrtc_common',
579           ],
580           'conditions': [
581             ['OS=="android"', {
582               'standalone_static_library': 1,
583             }],
584           ],
585         },  # target libpeerconnection
586       ],
587     }],
588   ],