Add ENABLE_MEDIA_ROUTER define to builds other than Android and iOS.
[chromium-blink-merge.git] / third_party / libjingle / libjingle.gyp
blob6b72ac2ba04eedb6c2cc997dcba92524d84f75d0
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             'POSIX',
134             'WEBRTC_POSIX',
135           ],
136         }],
137         ['os_bsd==1', {
138           'defines': [
139             'BSD',
140           ],
141         }],
142         ['OS=="openbsd"', {
143           'defines': [
144             'OPENBSD',
145           ],
146         }],
147         ['OS=="freebsd"', {
148           'defines': [
149             'FREEBSD',
150           ],
151         }],
152         ['chromeos==1', {
153           'defines': [
154             'CHROMEOS',
155           ],
156         }],
157       ],
158     },
159     'all_dependent_settings': {
160       'configurations': {
161         'Debug': {
162           'defines': [
163             # TODO(sergeyu): Fix libjingle to use NDEBUG instead of _DEBUG and
164             # remove this define. See above and GN file as well.
165             '_DEBUG',
166           ],
167         }
168       },
169     },
170     'variables': {
171       'clang_warning_flags_unset': [
172         # Don't warn about string->bool used in asserts.
173         '-Wstring-conversion',
174       ],
175     },
176     'conditions': [
177       ['use_openssl==1', {
178         'defines': [
179           'SSL_USE_OPENSSL',
180           'HAVE_OPENSSL_SSL_H',
181         ],
182         'dependencies': [
183           '../../third_party/boringssl/boringssl.gyp:boringssl',
184         ],
185       }, {
186         'defines': [
187           'SSL_USE_NSS',
188           'HAVE_NSS_SSL_H',
189           'SSL_USE_NSS_RNG',
190         ],
191         'conditions': [
192           ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
193             'dependencies': [
194               '<(DEPTH)/build/linux/system.gyp:ssl',
195             ],
196           }],
197           ['OS == "mac" or OS == "ios" or OS == "win"', {
198             'dependencies': [
199               '<(DEPTH)/net/third_party/nss/ssl.gyp:libssl',
200               '<(DEPTH)/third_party/nss/nss.gyp:nspr',
201               '<(DEPTH)/third_party/nss/nss.gyp:nss',
202             ],
203           }],
204         ],
205       }],
206       ['OS=="win"', {
207         'include_dirs': [
208           '../third_party/platformsdk_win7/files/Include',
209         ],
210         'conditions' : [
211           ['target_arch == "ia32"', {
212             'defines': [
213               '_USE_32BIT_TIME_T',
214             ],
215           }],
216         ],
217       }],
218       ['OS=="linux"', {
219         'defines': [
220           'LINUX',
221           'WEBRTC_LINUX',
222         ],
223       }],
224       ['OS=="mac"', {
225         'defines': [
226           'OSX',
227           'WEBRTC_MAC',
228         ],
229       }],
230       ['OS=="win"', {
231         'defines': [
232           'WEBRTC_WIN',
233         ],
234       }],
235       ['OS=="ios"', {
236         'defines': [
237           'IOS',
238           'WEBRTC_MAC',
239           'WEBRTC_IOS',
240         ],
241       }],
242       ['os_posix == 1', {
243         'defines': [
244           'POSIX',
245           'WEBRTC_POSIX',
246         ],
247       }],
248       ['os_bsd==1', {
249         'defines': [
250           'BSD',
251         ],
252       }],
253       ['OS=="openbsd"', {
254         'defines': [
255           'OPENBSD',
256         ],
257       }],
258       ['OS=="freebsd"', {
259         'defines': [
260           'FREEBSD',
261         ],
262       }],
263     ],
264   },
265   'targets': [
266     # GN version: //third_party/libjingle
267     {
268       'target_name': 'libjingle',
269       'type': 'static_library',
270       'includes': [ 'libjingle_common.gypi' ],
271       'sources!' : [
272         # Compiled as part of libjingle_p2p_constants.
273         '<(webrtc_p2p)/base/constants.cc',
274         '<(webrtc_p2p)/base/constants.h',
275       ],
276       'dependencies': [
277         '<(DEPTH)/third_party/webrtc/base/base.gyp:rtc_base',
278         '<(DEPTH)/third_party/webrtc/libjingle/xmllite/xmllite.gyp:rtc_xmllite',
279         'libjingle_p2p_constants',
280         '<@(libjingle_additional_deps)',
281       ],
282     },  # target libjingle
283     # This has to be is a separate project due to a bug in MSVS 2008 and the
284     # current toolset on android.  The problem is that we have two files named
285     # "constants.cc" and MSVS/android doesn't handle this properly.
286     # GYP currently has guards to catch this, so if you want to remove it,
287     # run GYP and if GYP has removed the validation check, then we can assume
288     # that the toolchains have been fixed (we currently use VS2010 and later,
289     # so VS2008 isn't a concern anymore).
290     #
291     # GN version: //third_party/libjingle:libjingle_p2p_constants
292     {
293       'target_name': 'libjingle_p2p_constants',
294       'type': 'static_library',
295       'sources': [
296         '<(webrtc_p2p)/base/constants.cc',
297         '<(webrtc_p2p)/base/constants.h',
298       ],
299     },  # target libjingle_p2p_constants
300     # GN version: //third_party/libjingle:peerconnection_server
301     {
302       'target_name': 'peerconnection_server',
303       'type': 'executable',
304       'sources': [
305         '<(libjingle_source)/talk/examples/peerconnection/server/data_socket.cc',
306         '<(libjingle_source)/talk/examples/peerconnection/server/data_socket.h',
307         '<(libjingle_source)/talk/examples/peerconnection/server/main.cc',
308         '<(libjingle_source)/talk/examples/peerconnection/server/peer_channel.cc',
309         '<(libjingle_source)/talk/examples/peerconnection/server/peer_channel.h',
310         '<(libjingle_source)/talk/examples/peerconnection/server/utils.cc',
311         '<(libjingle_source)/talk/examples/peerconnection/server/utils.h',
312       ],
313       'include_dirs': [
314         '<(libjingle_source)',
315       ],
316       'dependencies': [
317         'libjingle',
318       ],
319       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
320       'msvs_disabled_warnings': [ 4309, ],
321     }, # target peerconnection_server
322   ],
323   'conditions': [
324     ['enable_webrtc==1', {
325       'targets': [
326         {
327           # GN version: //third_party/libjingle:libjingle_webrtc_common
328           'target_name': 'libjingle_webrtc_common',
329           'type': 'static_library',
330           'all_dependent_settings': {
331             'defines': [ 'LIBPEERCONNECTION_LIB=1' ],
332           },
333           'sources': [
334             'overrides/talk/media/webrtc/webrtcexport.h',
336             '<(libjingle_source)/talk/app/webrtc/audiotrack.cc',
337             '<(libjingle_source)/talk/app/webrtc/audiotrack.h',
338             '<(libjingle_source)/talk/app/webrtc/audiotrackrenderer.cc',
339             '<(libjingle_source)/talk/app/webrtc/audiotrackrenderer.h',
340             '<(libjingle_source)/talk/app/webrtc/datachannel.cc',
341             '<(libjingle_source)/talk/app/webrtc/datachannel.h',
342             '<(libjingle_source)/talk/app/webrtc/dtlsidentityservice.cc',
343             '<(libjingle_source)/talk/app/webrtc/dtlsidentityservice.h',
344             '<(libjingle_source)/talk/app/webrtc/dtlsidentitystore.cc',
345             '<(libjingle_source)/talk/app/webrtc/dtlsidentitystore.h',
346             '<(libjingle_source)/talk/app/webrtc/dtmfsender.cc',
347             '<(libjingle_source)/talk/app/webrtc/dtmfsender.h',
348             '<(libjingle_source)/talk/app/webrtc/jsep.h',
349             '<(libjingle_source)/talk/app/webrtc/jsepicecandidate.cc',
350             '<(libjingle_source)/talk/app/webrtc/jsepicecandidate.h',
351             '<(libjingle_source)/talk/app/webrtc/jsepsessiondescription.cc',
352             '<(libjingle_source)/talk/app/webrtc/jsepsessiondescription.h',
353             '<(libjingle_source)/talk/app/webrtc/localaudiosource.cc',
354             '<(libjingle_source)/talk/app/webrtc/localaudiosource.h',
355             '<(libjingle_source)/talk/app/webrtc/mediaconstraintsinterface.cc',
356             '<(libjingle_source)/talk/app/webrtc/mediaconstraintsinterface.h',
357             '<(libjingle_source)/talk/app/webrtc/mediastream.cc',
358             '<(libjingle_source)/talk/app/webrtc/mediastream.h',
359             '<(libjingle_source)/talk/app/webrtc/mediastreamhandler.cc',
360             '<(libjingle_source)/talk/app/webrtc/mediastreamhandler.h',
361             '<(libjingle_source)/talk/app/webrtc/mediastreaminterface.h',
362             '<(libjingle_source)/talk/app/webrtc/mediastreamprovider.h',
363             '<(libjingle_source)/talk/app/webrtc/mediastreamproxy.h',
364             '<(libjingle_source)/talk/app/webrtc/mediastreamsignaling.cc',
365             '<(libjingle_source)/talk/app/webrtc/mediastreamsignaling.h',
366             '<(libjingle_source)/talk/app/webrtc/mediastreamtrack.h',
367             '<(libjingle_source)/talk/app/webrtc/mediastreamtrackproxy.h',
368             '<(libjingle_source)/talk/app/webrtc/notifier.h',
369             '<(libjingle_source)/talk/app/webrtc/peerconnection.cc',
370             '<(libjingle_source)/talk/app/webrtc/peerconnection.h',
371             '<(libjingle_source)/talk/app/webrtc/peerconnectionfactory.cc',
372             '<(libjingle_source)/talk/app/webrtc/peerconnectionfactory.h',
373             '<(libjingle_source)/talk/app/webrtc/peerconnectioninterface.h',
374             '<(libjingle_source)/talk/app/webrtc/portallocatorfactory.cc',
375             '<(libjingle_source)/talk/app/webrtc/portallocatorfactory.h',
376             '<(libjingle_source)/talk/app/webrtc/remoteaudiosource.cc',
377             '<(libjingle_source)/talk/app/webrtc/remoteaudiosource.h',
378             '<(libjingle_source)/talk/app/webrtc/remotevideocapturer.cc',
379             '<(libjingle_source)/talk/app/webrtc/remotevideocapturer.h',
380             '<(libjingle_source)/talk/app/webrtc/sctputils.cc',
381             '<(libjingle_source)/talk/app/webrtc/sctputils.h',
382             '<(libjingle_source)/talk/app/webrtc/statscollector.cc',
383             '<(libjingle_source)/talk/app/webrtc/statscollector.h',
384             '<(libjingle_source)/talk/app/webrtc/statstypes.cc',
385             '<(libjingle_source)/talk/app/webrtc/statstypes.h',
386             '<(libjingle_source)/talk/app/webrtc/streamcollection.h',
387             '<(libjingle_source)/talk/app/webrtc/umametrics.h',
388             '<(libjingle_source)/talk/app/webrtc/videosource.cc',
389             '<(libjingle_source)/talk/app/webrtc/videosource.h',
390             '<(libjingle_source)/talk/app/webrtc/videosourceinterface.h',
391             '<(libjingle_source)/talk/app/webrtc/videosourceproxy.h',
392             '<(libjingle_source)/talk/app/webrtc/videotrack.cc',
393             '<(libjingle_source)/talk/app/webrtc/videotrack.h',
394             '<(libjingle_source)/talk/app/webrtc/videotrackrenderers.cc',
395             '<(libjingle_source)/talk/app/webrtc/videotrackrenderers.h',
396             '<(libjingle_source)/talk/app/webrtc/webrtcsdp.cc',
397             '<(libjingle_source)/talk/app/webrtc/webrtcsdp.h',
398             '<(libjingle_source)/talk/app/webrtc/webrtcsession.cc',
399             '<(libjingle_source)/talk/app/webrtc/webrtcsession.h',
400             '<(libjingle_source)/talk/app/webrtc/webrtcsessiondescriptionfactory.cc',
401             '<(libjingle_source)/talk/app/webrtc/webrtcsessiondescriptionfactory.h',
402             '<(libjingle_source)/talk/media/base/audiorenderer.h',
403             '<(libjingle_source)/talk/media/base/capturemanager.cc',
404             '<(libjingle_source)/talk/media/base/capturemanager.h',
405             '<(libjingle_source)/talk/media/base/capturerenderadapter.cc',
406             '<(libjingle_source)/talk/media/base/capturerenderadapter.h',
407             '<(libjingle_source)/talk/media/base/codec.cc',
408             '<(libjingle_source)/talk/media/base/codec.h',
409             '<(libjingle_source)/talk/media/base/constants.cc',
410             '<(libjingle_source)/talk/media/base/constants.h',
411             '<(libjingle_source)/talk/media/base/cryptoparams.h',
412             '<(libjingle_source)/talk/media/base/filemediaengine.cc',
413             '<(libjingle_source)/talk/media/base/filemediaengine.h',
414             '<(libjingle_source)/talk/media/base/hybriddataengine.h',
415             '<(libjingle_source)/talk/media/base/mediachannel.h',
416             '<(libjingle_source)/talk/media/base/mediaengine.cc',
417             '<(libjingle_source)/talk/media/base/mediaengine.h',
418             '<(libjingle_source)/talk/media/base/rtpdataengine.cc',
419             '<(libjingle_source)/talk/media/base/rtpdataengine.h',
420             '<(libjingle_source)/talk/media/base/rtpdump.cc',
421             '<(libjingle_source)/talk/media/base/rtpdump.h',
422             '<(libjingle_source)/talk/media/base/rtputils.cc',
423             '<(libjingle_source)/talk/media/base/rtputils.h',
424             '<(libjingle_source)/talk/media/base/streamparams.cc',
425             '<(libjingle_source)/talk/media/base/streamparams.h',
426             '<(libjingle_source)/talk/media/base/videoadapter.cc',
427             '<(libjingle_source)/talk/media/base/videoadapter.h',
428             '<(libjingle_source)/talk/media/base/videocapturer.cc',
429             '<(libjingle_source)/talk/media/base/videocapturer.h',
430             '<(libjingle_source)/talk/media/base/videocommon.cc',
431             '<(libjingle_source)/talk/media/base/videocommon.h',
432             '<(libjingle_source)/talk/media/base/videoframe.cc',
433             '<(libjingle_source)/talk/media/base/videoframe.h',
434             '<(libjingle_source)/talk/media/base/videoframefactory.cc',
435             '<(libjingle_source)/talk/media/base/videoframefactory.h',
436             '<(libjingle_source)/talk/media/devices/dummydevicemanager.cc',
437             '<(libjingle_source)/talk/media/devices/dummydevicemanager.h',
438             '<(libjingle_source)/talk/media/devices/filevideocapturer.cc',
439             '<(libjingle_source)/talk/media/devices/filevideocapturer.h',
440             '<(libjingle_source)/talk/media/webrtc/webrtccommon.h',
441             '<(libjingle_source)/talk/media/webrtc/webrtcpassthroughrender.cc',
442             '<(libjingle_source)/talk/media/webrtc/webrtcpassthroughrender.h',
443             '<(libjingle_source)/talk/media/webrtc/webrtcvideocapturer.cc',
444             '<(libjingle_source)/talk/media/webrtc/webrtcvideocapturer.h',
445             '<(libjingle_source)/talk/media/webrtc/webrtcvideoframe.cc',
446             '<(libjingle_source)/talk/media/webrtc/webrtcvideoframe.h',
447             '<(libjingle_source)/talk/media/webrtc/webrtcvideoframefactory.cc',
448             '<(libjingle_source)/talk/media/webrtc/webrtcvideoframefactory.h',
449             '<(libjingle_source)/talk/media/webrtc/webrtcvie.h',
450             '<(libjingle_source)/talk/media/webrtc/webrtcvoe.h',
451             '<(libjingle_source)/talk/session/media/audiomonitor.cc',
452             '<(libjingle_source)/talk/session/media/audiomonitor.h',
453             '<(libjingle_source)/talk/session/media/bundlefilter.cc',
454             '<(libjingle_source)/talk/session/media/bundlefilter.h',
455             '<(libjingle_source)/talk/session/media/channel.cc',
456             '<(libjingle_source)/talk/session/media/channel.h',
457             '<(libjingle_source)/talk/session/media/channelmanager.cc',
458             '<(libjingle_source)/talk/session/media/channelmanager.h',
459             '<(libjingle_source)/talk/session/media/currentspeakermonitor.cc',
460             '<(libjingle_source)/talk/session/media/currentspeakermonitor.h',
461             '<(libjingle_source)/talk/session/media/externalhmac.cc',
462             '<(libjingle_source)/talk/session/media/externalhmac.h',
463             '<(libjingle_source)/talk/session/media/mediamonitor.cc',
464             '<(libjingle_source)/talk/session/media/mediamonitor.h',
465             '<(libjingle_source)/talk/session/media/mediasession.cc',
466             '<(libjingle_source)/talk/session/media/mediasession.h',
467             '<(libjingle_source)/talk/session/media/mediasink.h',
468             '<(libjingle_source)/talk/session/media/rtcpmuxfilter.cc',
469             '<(libjingle_source)/talk/session/media/rtcpmuxfilter.h',
470             '<(libjingle_source)/talk/session/media/soundclip.cc',
471             '<(libjingle_source)/talk/session/media/soundclip.h',
472             '<(libjingle_source)/talk/session/media/srtpfilter.cc',
473             '<(libjingle_source)/talk/session/media/srtpfilter.h',
474             '<(libjingle_source)/talk/session/media/typingmonitor.cc',
475             '<(libjingle_source)/talk/session/media/typingmonitor.h',
476             '<(libjingle_source)/talk/session/media/voicechannel.h',
477           ],
478           'conditions': [
479             # TODO(mallinath) - Enable SCTP for iOS.
480             ['OS!="ios"', {
481               'defines': [
482                 'HAVE_SCTP',
483               ],
484               'sources': [
485                 '<(libjingle_source)/talk/media/sctp/sctpdataengine.cc',
486                 '<(libjingle_source)/talk/media/sctp/sctpdataengine.h',
487               ],
488               'dependencies': [
489                 '<(DEPTH)/third_party/usrsctp/usrsctp.gyp:usrsctplib',
490               ],
491             }],
492             ['enabled_libjingle_device_manager==1', {
493               'sources!': [
494                 '<(libjingle_source)/talk/media/devices/dummydevicemanager.cc',
495                 '<(libjingle_source)/talk/media/devices/dummydevicemanager.h',
496               ],
497               'sources': [
498                 '<(libjingle_source)/talk/media/devices/devicemanager.cc',
499                 '<(libjingle_source)/talk/media/devices/devicemanager.h',
500               ],
501               'conditions': [
502                 ['OS=="win"', {
503                   'sources': [
504                     '<(libjingle_source)/talk/media/devices/win32deviceinfo.cc',
505                     '<(libjingle_source)/talk/media/devices/win32devicemanager.cc',
506                     '<(libjingle_source)/talk/media/devices/win32devicemanager.h',
507                   ],
508                 }],
509                 ['OS=="linux"', {
510                   'sources': [
511                     '<(libjingle_source)/talk/media/devices/libudevsymboltable.cc',
512                     '<(libjingle_source)/talk/media/devices/libudevsymboltable.h',
513                     '<(libjingle_source)/talk/media/devices/linuxdeviceinfo.cc',
514                     '<(libjingle_source)/talk/media/devices/linuxdevicemanager.cc',
515                     '<(libjingle_source)/talk/media/devices/linuxdevicemanager.h',
516                     '<(libjingle_source)/talk/media/devices/v4llookup.cc',
517                     '<(libjingle_source)/talk/media/devices/v4llookup.h',
518                   ],
519                 }],
520                 ['OS=="mac"', {
521                   'sources': [
522                     '<(libjingle_source)/talk/media/devices/macdeviceinfo.cc',
523                     '<(libjingle_source)/talk/media/devices/macdevicemanager.cc',
524                     '<(libjingle_source)/talk/media/devices/macdevicemanager.h',
525                     '<(libjingle_source)/talk/media/devices/macdevicemanagermm.mm',
526                   ],
527                   'xcode_settings': {
528                     'WARNING_CFLAGS': [
529                       # Suppres warnings about using deprecated functions in
530                       # macdevicemanager.cc.
531                       '-Wno-deprecated-declarations',
532                     ],
533                   },
534                 }],
535               ],
536             }],
537           ],
538           'dependencies': [
539             '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',
540             '<(DEPTH)/third_party/webrtc/modules/modules.gyp:media_file',
541             '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_capture',
542             '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_render',
543             'libjingle',
544           ],
545         },  # target libjingle_webrtc_common
546         {
547           # GN version: //third_party/libjingle:libjingle_webrtc
548           'target_name': 'libjingle_webrtc',
549           'type': 'static_library',
550           'sources': [
551             'overrides/init_webrtc.cc',
552             'overrides/init_webrtc.h',
553           ],
554           'dependencies': [
555             '<(DEPTH)/third_party/webrtc/modules/modules.gyp:audio_processing',
556             'libjingle_webrtc_common',
557           ],
558         },
559         {
560           # GN version: //third_party/libjingle:libpeerconnection
561           'target_name': 'libpeerconnection',
562           'type': 'static_library',
563           'sources': [
564             # Note: sources list duplicated in GN build.
565             '<(libjingle_source)/talk/media/webrtc/simulcast.cc',
566             '<(libjingle_source)/talk/media/webrtc/simulcast.h',
567             '<(libjingle_source)/talk/media/webrtc/webrtcmediaengine.cc',
568             '<(libjingle_source)/talk/media/webrtc/webrtcmediaengine.h',
569             '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine.cc',
570             '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine.h',
571             '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine2.cc',
572             '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine2.h',
573             '<(libjingle_source)/talk/media/webrtc/webrtcvoiceengine.cc',
574             '<(libjingle_source)/talk/media/webrtc/webrtcvoiceengine.h',
575           ],
576           'dependencies': [
577             '<(DEPTH)/third_party/webrtc/voice_engine/voice_engine.gyp:voice_engine',
578             '<(DEPTH)/third_party/webrtc/webrtc.gyp:webrtc',
579             '<@(libjingle_peerconnection_additional_deps)',
580             'libjingle_webrtc_common',
581           ],
582           'conditions': [
583             ['OS=="android"', {
584               'standalone_static_library': 1,
585             }],
586           ],
587         },  # target libpeerconnection
588       ],
589     }],
590   ],