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