Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / libjingle / source / talk / libjingle.gyp
1 #
2 # libjingle
3 # Copyright 2012, Google Inc.
4 #
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are met:
7 #
8 #  1. Redistributions of source code must retain the above copyright notice,
9 #     this list of conditions and the following disclaimer.
10 #  2. Redistributions in binary form must reproduce the above copyright notice,
11 #     this list of conditions and the following disclaimer in the documentation
12 #     and/or other materials provided with the distribution.
13 #  3. The name of the author may not be used to endorse or promote products
14 #     derived from this software without specific prior written permission.
15 #
16 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
19 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 #
27
28 {
29   'includes': ['build/common.gypi'],
30   'conditions': [
31     ['os_posix == 1 and OS != "mac" and OS != "ios"', {
32      'conditions': [
33        ['sysroot!=""', {
34          'variables': {
35            'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
36          },
37        }, {
38          'variables': {
39            'pkg-config': 'pkg-config'
40          },
41        }],
42      ],
43     }],
44     ['OS=="linux" or OS=="android"', {
45       'targets': [
46         {
47           'target_name': 'libjingle_peerconnection_so',
48           'type': 'loadable_module',
49           'dependencies': [
50             'libjingle_peerconnection',
51             '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
52           ],
53           'sources': [
54             'app/webrtc/java/jni/peerconnection_jni.cc'
55           ],
56           'include_dirs': [
57             '<(DEPTH)/third_party/libyuv/include',
58           ],
59           'conditions': [
60             ['OS=="linux"', {
61               'defines': [
62                 'HAVE_GTK',
63               ],
64               'include_dirs': [
65                 '<(java_home)/include',
66                 '<(java_home)/include/linux',
67               ],
68               'link_settings': {
69                 'libraries': [
70                   '<!@(pkg-config --libs-only-l gobject-2.0 gthread-2.0'
71                       ' gtk+-2.0)',
72                 ],
73               },
74             }],
75           ],
76         },
77         {
78           'target_name': 'libjingle_peerconnection_jar',
79           'type': 'none',
80           'actions': [
81             {
82               'variables': {
83                 'java_src_dir': 'app/webrtc/java/src',
84                 'webrtc_modules_dir': '<(webrtc_root)/modules',
85                 'build_jar_log': '<(INTERMEDIATE_DIR)/build_jar.log',
86                 'peerconnection_java_files': [
87                   'app/webrtc/java/src/org/webrtc/AudioSource.java',
88                   'app/webrtc/java/src/org/webrtc/AudioTrack.java',
89                   'app/webrtc/java/src/org/webrtc/DataChannel.java',
90                   'app/webrtc/java/src/org/webrtc/IceCandidate.java',
91                   'app/webrtc/java/src/org/webrtc/Logging.java',
92                   'app/webrtc/java/src/org/webrtc/MediaConstraints.java',
93                   'app/webrtc/java/src/org/webrtc/MediaSource.java',
94                   'app/webrtc/java/src/org/webrtc/MediaStream.java',
95                   'app/webrtc/java/src/org/webrtc/MediaStreamTrack.java',
96                   'app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java',
97                   'app/webrtc/java/src/org/webrtc/PeerConnection.java',
98                   'app/webrtc/java/src/org/webrtc/SdpObserver.java',
99                   'app/webrtc/java/src/org/webrtc/StatsObserver.java',
100                   'app/webrtc/java/src/org/webrtc/StatsReport.java',
101                   'app/webrtc/java/src/org/webrtc/SessionDescription.java',
102                   'app/webrtc/java/src/org/webrtc/VideoCapturer.java',
103                   'app/webrtc/java/src/org/webrtc/VideoRenderer.java',
104                   'app/webrtc/java/src/org/webrtc/VideoSource.java',
105                   'app/webrtc/java/src/org/webrtc/VideoTrack.java',
106                 ],
107                 # TODO(fischman): extract this into a webrtc gyp var that can be
108                 # included here, or better yet, build a proper .jar in webrtc
109                 # and include it here.
110                 'android_java_files': [
111                   'app/webrtc/java/android/org/webrtc/VideoRendererGui.java',
112                   'app/webrtc/java/src/org/webrtc/MediaCodecVideoEncoder.java',
113                   'app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java',
114                   '<(webrtc_modules_dir)/audio_device/android/java/src/org/webrtc/voiceengine/AudioManagerAndroid.java',
115                   '<(webrtc_modules_dir)/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureAndroid.java',
116                   '<(webrtc_modules_dir)/video_capture/android/java/src/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java',
117                   '<(webrtc_modules_dir)/video_render/android/java/src/org/webrtc/videoengine/ViEAndroidGLES20.java',
118                   '<(webrtc_modules_dir)/video_render/android/java/src/org/webrtc/videoengine/ViERenderer.java',
119                   '<(webrtc_modules_dir)/video_render/android/java/src/org/webrtc/videoengine/ViESurfaceRenderer.java',
120                   '<(webrtc_modules_dir)/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java',
121                   '<(webrtc_modules_dir)/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java',
122                 ],
123               },
124               'action_name': 'create_jar',
125               'inputs': [
126                 'build/build_jar.sh',
127                 '<@(java_files)',
128               ],
129               'outputs': [
130                 '<(PRODUCT_DIR)/libjingle_peerconnection.jar',
131               ],
132               'conditions': [
133                 ['OS=="android"', {
134                   'variables': {
135                     'java_files': ['<@(peerconnection_java_files)', '<@(android_java_files)'],
136                     'build_classpath': '<(java_src_dir):<(DEPTH)/third_party/android_tools/sdk/platforms/android-<(android_sdk_version)/android.jar',
137                   },
138                 }, {
139                   'variables': {
140                     'java_files': ['<@(peerconnection_java_files)'],
141                     'build_classpath': '<(java_src_dir)',
142                   },
143                 }],
144               ],
145               'action': [
146                 'bash', '-ec',
147                 'mkdir -p <(INTERMEDIATE_DIR) && '
148                 '{ build/build_jar.sh <(java_home) <@(_outputs) '
149                 '      <(INTERMEDIATE_DIR)/build_jar.tmp '
150                 '      <(build_classpath) <@(java_files) '
151                 '      > <(build_jar_log) 2>&1 || '
152                 '  { cat <(build_jar_log) ; exit 1; } }'
153               ],
154             },
155           ],
156           'dependencies': [
157             'libjingle_peerconnection_so',
158           ],
159         },
160       ],
161     }],
162     ['OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.7")', {
163       # The >= 10.7 above is required for ARC.
164       'targets': [
165         {
166           'target_name': 'libjingle_peerconnection_objc',
167           'type': 'static_library',
168           'dependencies': [
169             'libjingle_peerconnection',
170           ],
171           'sources': [
172             'app/webrtc/objc/RTCAudioTrack+Internal.h',
173             'app/webrtc/objc/RTCAudioTrack.mm',
174             'app/webrtc/objc/RTCDataChannel+Internal.h',
175             'app/webrtc/objc/RTCDataChannel.mm',
176             'app/webrtc/objc/RTCEnumConverter.h',
177             'app/webrtc/objc/RTCEnumConverter.mm',
178             'app/webrtc/objc/RTCI420Frame+Internal.h',
179             'app/webrtc/objc/RTCI420Frame.mm',
180             'app/webrtc/objc/RTCICECandidate+Internal.h',
181             'app/webrtc/objc/RTCICECandidate.mm',
182             'app/webrtc/objc/RTCICEServer+Internal.h',
183             'app/webrtc/objc/RTCICEServer.mm',
184             'app/webrtc/objc/RTCMediaConstraints+Internal.h',
185             'app/webrtc/objc/RTCMediaConstraints.mm',
186             'app/webrtc/objc/RTCMediaConstraintsNative.cc',
187             'app/webrtc/objc/RTCMediaConstraintsNative.h',
188             'app/webrtc/objc/RTCMediaSource+Internal.h',
189             'app/webrtc/objc/RTCMediaSource.mm',
190             'app/webrtc/objc/RTCMediaStream+Internal.h',
191             'app/webrtc/objc/RTCMediaStream.mm',
192             'app/webrtc/objc/RTCMediaStreamTrack+Internal.h',
193             'app/webrtc/objc/RTCMediaStreamTrack.mm',
194             'app/webrtc/objc/RTCOpenGLVideoRenderer.mm',
195             'app/webrtc/objc/RTCPair.m',
196             'app/webrtc/objc/RTCPeerConnection+Internal.h',
197             'app/webrtc/objc/RTCPeerConnection.mm',
198             'app/webrtc/objc/RTCPeerConnectionFactory.mm',
199             'app/webrtc/objc/RTCPeerConnectionObserver.h',
200             'app/webrtc/objc/RTCPeerConnectionObserver.mm',
201             'app/webrtc/objc/RTCSessionDescription+Internal.h',
202             'app/webrtc/objc/RTCSessionDescription.mm',
203             'app/webrtc/objc/RTCStatsReport+Internal.h',
204             'app/webrtc/objc/RTCStatsReport.mm',
205             'app/webrtc/objc/RTCVideoCapturer+Internal.h',
206             'app/webrtc/objc/RTCVideoCapturer.mm',
207             'app/webrtc/objc/RTCVideoRendererAdapter.h',
208             'app/webrtc/objc/RTCVideoRendererAdapter.mm',
209             'app/webrtc/objc/RTCVideoSource+Internal.h',
210             'app/webrtc/objc/RTCVideoSource.mm',
211             'app/webrtc/objc/RTCVideoTrack+Internal.h',
212             'app/webrtc/objc/RTCVideoTrack.mm',
213             'app/webrtc/objc/public/RTCAudioSource.h',
214             'app/webrtc/objc/public/RTCAudioTrack.h',
215             'app/webrtc/objc/public/RTCDataChannel.h',
216             'app/webrtc/objc/public/RTCI420Frame.h',
217             'app/webrtc/objc/public/RTCICECandidate.h',
218             'app/webrtc/objc/public/RTCICEServer.h',
219             'app/webrtc/objc/public/RTCMediaConstraints.h',
220             'app/webrtc/objc/public/RTCMediaSource.h',
221             'app/webrtc/objc/public/RTCMediaStream.h',
222             'app/webrtc/objc/public/RTCMediaStreamTrack.h',
223             'app/webrtc/objc/public/RTCOpenGLVideoRenderer.h',
224             'app/webrtc/objc/public/RTCPair.h',
225             'app/webrtc/objc/public/RTCPeerConnection.h',
226             'app/webrtc/objc/public/RTCPeerConnectionDelegate.h',
227             'app/webrtc/objc/public/RTCPeerConnectionFactory.h',
228             'app/webrtc/objc/public/RTCSessionDescription.h',
229             'app/webrtc/objc/public/RTCSessionDescriptionDelegate.h',
230             'app/webrtc/objc/public/RTCStatsDelegate.h',
231             'app/webrtc/objc/public/RTCStatsReport.h',
232             'app/webrtc/objc/public/RTCTypes.h',
233             'app/webrtc/objc/public/RTCVideoCapturer.h',
234             'app/webrtc/objc/public/RTCVideoRenderer.h',
235             'app/webrtc/objc/public/RTCVideoSource.h',
236             'app/webrtc/objc/public/RTCVideoTrack.h',
237           ],
238           'direct_dependent_settings': {
239             'include_dirs': [
240               '<(DEPTH)/talk/app/webrtc/objc/public',
241             ],
242           },
243           'include_dirs': [
244             '<(DEPTH)/talk/app/webrtc',
245             '<(DEPTH)/talk/app/webrtc/objc',
246             '<(DEPTH)/talk/app/webrtc/objc/public',
247           ],
248           'link_settings': {
249             'libraries': [
250               '-lstdc++',
251             ],
252           },
253           'xcode_settings': {
254             'CLANG_ENABLE_OBJC_ARC': 'YES',
255             # common.gypi enables this for mac but we want this to be disabled
256             # like it is for ios.
257             'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO',
258           },
259           'conditions': [
260             ['OS=="ios"', {
261               'sources': [
262                 'app/webrtc/objc/RTCEAGLVideoView.m',
263                 'app/webrtc/objc/public/RTCEAGLVideoView.h',
264               ],
265               'link_settings': {
266                 'xcode_settings': {
267                   'OTHER_LDFLAGS': [
268                     '-framework CoreGraphics',
269                     '-framework GLKit',
270                   ],
271                 },
272               },
273             }],
274             ['OS=="mac"', {
275               'sources': [
276                 'app/webrtc/objc/RTCNSGLVideoView.m',
277                 'app/webrtc/objc/public/RTCNSGLVideoView.h',
278               ],
279               'xcode_settings': {
280                 # Need to build against 10.7 framework for full ARC support
281                 # on OSX.
282                 'MACOSX_DEPLOYMENT_TARGET' : '10.7',
283               },
284               'link_settings': {
285                 'xcode_settings': {
286                   'OTHER_LDFLAGS': [
287                     '-framework Cocoa',
288                   ],
289                 },
290               },
291             }],
292           ],
293         },  # target libjingle_peerconnection_objc
294       ],
295     }],
296   ],
297
298   'targets': [
299     {
300       'target_name': 'libjingle',
301       'type': 'none',
302       'dependencies': [
303         '<(DEPTH)/third_party/expat/expat.gyp:expat',
304         '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
305         '<(webrtc_root)/base/base.gyp:rtc_base',
306       ],
307       'export_dependent_settings': [
308         '<(DEPTH)/third_party/expat/expat.gyp:expat',
309         '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
310       ],
311     },  # target libjingle
312     {
313       'target_name': 'libjingle_media',
314       'type': 'static_library',
315       'include_dirs': [
316         # TODO(jiayl): move this into the direct_dependent_settings of
317         # usrsctp.gyp.
318         '<(DEPTH)/third_party/usrsctp',
319       ],
320       'dependencies': [
321         '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
322         '<(DEPTH)/third_party/usrsctp/usrsctp.gyp:usrsctplib',
323         '<(webrtc_root)/modules/modules.gyp:video_render_module',
324         '<(webrtc_root)/webrtc.gyp:webrtc',
325         '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
326         '<(webrtc_root)/sound/sound.gyp:rtc_sound',
327         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
328         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers_default',
329         '<(webrtc_root)/libjingle/xmllite/xmllite.gyp:rtc_xmllite',
330         '<(webrtc_root)/libjingle/xmpp/xmpp.gyp:rtc_xmpp',
331         '<(webrtc_root)/p2p/p2p.gyp:rtc_p2p',
332         'libjingle',
333       ],
334       'direct_dependent_settings': {
335         'include_dirs': [
336           '<(DEPTH)/third_party/libyuv/include',
337         ],
338       },
339       'sources': [
340         'media/base/audioframe.h',
341         'media/base/audiorenderer.h',
342         'media/base/capturemanager.cc',
343         'media/base/capturemanager.h',
344         'media/base/capturerenderadapter.cc',
345         'media/base/capturerenderadapter.h',
346         'media/base/codec.cc',
347         'media/base/codec.h',
348         'media/base/constants.cc',
349         'media/base/constants.h',
350         'media/base/cpuid.cc',
351         'media/base/cpuid.h',
352         'media/base/cryptoparams.h',
353         'media/base/device.h',
354         'media/base/fakescreencapturerfactory.h',
355         'media/base/filemediaengine.cc',
356         'media/base/filemediaengine.h',
357         'media/base/hybriddataengine.h',
358         'media/base/mediachannel.h',
359         'media/base/mediacommon.h',
360         'media/base/mediaengine.cc',
361         'media/base/mediaengine.h',
362         'media/base/rtpdataengine.cc',
363         'media/base/rtpdataengine.h',
364         'media/base/rtpdump.cc',
365         'media/base/rtpdump.h',
366         'media/base/rtputils.cc',
367         'media/base/rtputils.h',
368         'media/base/screencastid.h',
369         'media/base/streamparams.cc',
370         'media/base/streamparams.h',
371         'media/base/videoadapter.cc',
372         'media/base/videoadapter.h',
373         'media/base/videocapturer.cc',
374         'media/base/videocapturer.h',
375         'media/base/videocapturerfactory.h',
376         'media/base/videocommon.cc',
377         'media/base/videocommon.h',
378         'media/base/videoframe.cc',
379         'media/base/videoframe.h',
380         'media/base/videoframefactory.h',
381         'media/base/videoprocessor.h',
382         'media/base/videorenderer.h',
383         'media/base/voiceprocessor.h',
384         'media/base/yuvframegenerator.cc',
385         'media/base/yuvframegenerator.h',
386         'media/devices/deviceinfo.h',
387         'media/devices/devicemanager.cc',
388         'media/devices/devicemanager.h',
389         'media/devices/dummydevicemanager.h',
390         'media/devices/filevideocapturer.cc',
391         'media/devices/filevideocapturer.h',
392         'media/devices/videorendererfactory.h',
393         'media/devices/yuvframescapturer.cc',
394         'media/devices/yuvframescapturer.h',
395         'media/other/linphonemediaengine.h',
396         'media/sctp/sctpdataengine.cc',
397         'media/sctp/sctpdataengine.h',
398         'media/webrtc/webrtccommon.h',
399         'media/webrtc/webrtcexport.h',
400         'media/webrtc/webrtcmediaengine.cc',
401         'media/webrtc/webrtcmediaengine.h',
402         'media/webrtc/webrtcmediaengine.cc',
403         'media/webrtc/webrtcpassthroughrender.cc',
404         'media/webrtc/webrtcpassthroughrender.h',
405         'media/webrtc/webrtctexturevideoframe.cc',
406         'media/webrtc/webrtctexturevideoframe.h',
407         'media/webrtc/webrtcvideocapturer.cc',
408         'media/webrtc/webrtcvideocapturerfactory.h',
409         'media/webrtc/webrtcvideocapturerfactory.cc',
410         'media/webrtc/webrtcvideocapturer.h',
411         'media/webrtc/webrtcvideodecoderfactory.h',
412         'media/webrtc/webrtcvideoencoderfactory.h',
413         'media/webrtc/webrtcvideoengine.cc',
414         'media/webrtc/webrtcvideoengine.h',
415         'media/webrtc/webrtcvideoengine2.cc',
416         'media/webrtc/webrtcvideoengine2.h',
417         'media/webrtc/webrtcvideoframe.cc',
418         'media/webrtc/webrtcvideoframe.h',
419         'media/webrtc/webrtcvideoframefactory.cc',
420         'media/webrtc/webrtcvideoframefactory.h',
421         'media/webrtc/webrtcvie.h',
422         'media/webrtc/webrtcvoe.h',
423         'media/webrtc/webrtcvoiceengine.cc',
424         'media/webrtc/webrtcvoiceengine.h',
425       ],
426       'conditions': [
427         ['build_with_chromium==1', {
428           'dependencies': [
429             '<(webrtc_root)/modules/modules.gyp:video_capture_module_impl',
430             '<(webrtc_root)/modules/modules.gyp:video_render_module_impl',
431           ],
432         }, {
433           'dependencies': [
434             '<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
435             '<(webrtc_root)/modules/modules.gyp:video_render_module_internal_impl',
436           ],
437         }],
438         ['OS=="linux"', {
439           'sources': [
440             'media/devices/gtkvideorenderer.cc',
441             'media/devices/gtkvideorenderer.h',
442             'media/devices/libudevsymboltable.cc',
443             'media/devices/libudevsymboltable.h',
444             'media/devices/linuxdeviceinfo.cc',
445             'media/devices/linuxdevicemanager.cc',
446             'media/devices/linuxdevicemanager.h',
447             'media/devices/v4llookup.cc',
448             'media/devices/v4llookup.h',
449           ],
450           'include_dirs': [
451             'third_party/libudev'
452           ],
453           'cflags': [
454             '<!@(pkg-config --cflags gobject-2.0 gthread-2.0 gtk+-2.0)',
455           ],
456           'libraries': [
457             '-lrt',
458             '-lXext',
459             '-lX11',
460           ],
461         }],
462         ['OS=="win"', {
463           'sources': [
464             'media/devices/gdivideorenderer.cc',
465             'media/devices/gdivideorenderer.h',
466             'media/devices/win32deviceinfo.cc',
467             'media/devices/win32devicemanager.cc',
468             'media/devices/win32devicemanager.h',
469           ],
470           'msvs_settings': {
471             'VCLibrarianTool': {
472               'AdditionalDependencies': [
473                 'd3d9.lib',
474                 'gdi32.lib',
475                 'strmiids.lib',
476                 'winmm.lib',
477               ],
478             },
479           },
480         }],
481         ['OS=="mac"', {
482           'sources': [
483             'media/devices/macdeviceinfo.cc',
484             'media/devices/macdevicemanager.cc',
485             'media/devices/macdevicemanager.h',
486             'media/devices/macdevicemanagermm.mm',
487           ],
488           'conditions': [
489             ['target_arch=="ia32"', {
490               'sources': [
491                 'media/devices/carbonvideorenderer.cc',
492                 'media/devices/carbonvideorenderer.h',
493               ],
494               'link_settings': {
495                 'xcode_settings': {
496                   'OTHER_LDFLAGS': [
497                     '-framework Carbon',
498                   ],
499                 },
500               },
501             }],
502           ],
503           'xcode_settings': {
504             'WARNING_CFLAGS': [
505               # TODO(ronghuawu): Update macdevicemanager.cc to stop using
506               # deprecated functions and remove this flag.
507               '-Wno-deprecated-declarations',
508             ],
509           },
510           'link_settings': {
511             'xcode_settings': {
512               'OTHER_LDFLAGS': [
513                 '-weak_framework AVFoundation',
514                 '-framework Cocoa',
515                 '-framework CoreAudio',
516                 '-framework CoreVideo',
517                 '-framework OpenGL',
518                 '-framework QTKit',
519               ],
520             },
521           },
522         }],
523         ['OS=="ios"', {
524           'sources': [
525             'media/devices/mobiledevicemanager.cc',
526           ],
527           'include_dirs': [
528             # TODO(sjlee) Remove when vp8 is building for iOS.  vp8 pulls in
529             # libjpeg which pulls in libyuv which currently disabled.
530             '../third_party/libyuv/include',
531           ],
532         }],
533         ['OS=="android"', {
534           'sources': [
535             'media/devices/mobiledevicemanager.cc',
536           ],
537         }],
538       ],
539     },  # target libjingle_media
540     {
541       'target_name': 'libjingle_p2p',
542       'type': 'static_library',
543       'dependencies': [
544         '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',
545         'libjingle',
546         'libjingle_media',
547       ],
548       'include_dirs': [
549         '<(DEPTH)/testing/gtest/include',
550       ],
551       'direct_dependent_settings': {
552         'include_dirs': [
553           '<(DEPTH)/testing/gtest/include',
554         ],
555       },
556       'sources': [
557         'session/tunnel/pseudotcpchannel.cc',
558         'session/tunnel/pseudotcpchannel.h',
559         'session/tunnel/tunnelsessionclient.cc',
560         'session/tunnel/tunnelsessionclient.h',
561         'session/tunnel/securetunnelsessionclient.cc',
562         'session/tunnel/securetunnelsessionclient.h',
563         'session/media/audiomonitor.cc',
564         'session/media/audiomonitor.h',
565         'session/media/bundlefilter.cc',
566         'session/media/bundlefilter.h',
567         'session/media/call.cc',
568         'session/media/call.h',
569         'session/media/channel.cc',
570         'session/media/channel.h',
571         'session/media/channelmanager.cc',
572         'session/media/channelmanager.h',
573         'session/media/currentspeakermonitor.cc',
574         'session/media/currentspeakermonitor.h',
575         'session/media/mediamessages.cc',
576         'session/media/mediamessages.h',
577         'session/media/mediamonitor.cc',
578         'session/media/mediamonitor.h',
579         'session/media/mediarecorder.cc',
580         'session/media/mediarecorder.h',
581         'session/media/mediasession.cc',
582         'session/media/mediasession.h',
583         'session/media/mediasessionclient.cc',
584         'session/media/mediasessionclient.h',
585         'session/media/mediasink.h',
586         'session/media/rtcpmuxfilter.cc',
587         'session/media/rtcpmuxfilter.h',
588         'session/media/soundclip.cc',
589         'session/media/soundclip.h',
590         'session/media/srtpfilter.cc',
591         'session/media/srtpfilter.h',
592         'session/media/typingmonitor.cc',
593         'session/media/typingmonitor.h',
594         'session/media/voicechannel.h',
595       ],
596     },  # target libjingle_p2p
597     {
598       'target_name': 'libjingle_peerconnection',
599       'type': 'static_library',
600       'dependencies': [
601         'libjingle',
602         'libjingle_media',
603         'libjingle_p2p',
604       ],
605       'sources': [
606         'app/webrtc/audiotrack.cc',
607         'app/webrtc/audiotrack.h',
608         'app/webrtc/audiotrackrenderer.cc',
609         'app/webrtc/audiotrackrenderer.h',
610         'app/webrtc/datachannel.cc',
611         'app/webrtc/datachannel.h',
612         'app/webrtc/datachannelinterface.h',
613         'app/webrtc/dtmfsender.cc',
614         'app/webrtc/dtmfsender.h',
615         'app/webrtc/dtmfsenderinterface.h',
616         'app/webrtc/fakeportallocatorfactory.h',
617         'app/webrtc/jsep.h',
618         'app/webrtc/jsepicecandidate.cc',
619         'app/webrtc/jsepicecandidate.h',
620         'app/webrtc/jsepsessiondescription.cc',
621         'app/webrtc/jsepsessiondescription.h',
622         'app/webrtc/localaudiosource.cc',
623         'app/webrtc/localaudiosource.h',
624         'app/webrtc/mediaconstraintsinterface.cc',
625         'app/webrtc/mediaconstraintsinterface.h',
626         'app/webrtc/mediastream.cc',
627         'app/webrtc/mediastream.h',
628         'app/webrtc/mediastreamhandler.cc',
629         'app/webrtc/mediastreamhandler.h',
630         'app/webrtc/mediastreaminterface.h',
631         'app/webrtc/mediastreamprovider.h',
632         'app/webrtc/mediastreamproxy.h',
633         'app/webrtc/mediastreamsignaling.cc',
634         'app/webrtc/mediastreamsignaling.h',
635         'app/webrtc/mediastreamtrack.h',
636         'app/webrtc/mediastreamtrackproxy.h',
637         'app/webrtc/notifier.h',
638         'app/webrtc/peerconnection.cc',
639         'app/webrtc/peerconnection.h',
640         'app/webrtc/peerconnectionfactory.cc',
641         'app/webrtc/peerconnectionfactory.h',
642         'app/webrtc/peerconnectioninterface.h',
643         'app/webrtc/peerconnectionproxy.h',
644         'app/webrtc/portallocatorfactory.cc',
645         'app/webrtc/portallocatorfactory.h',
646         'app/webrtc/proxy.h',
647         'app/webrtc/remoteaudiosource.cc',
648         'app/webrtc/remoteaudiosource.h',
649         'app/webrtc/remotevideocapturer.cc',
650         'app/webrtc/remotevideocapturer.h',
651         'app/webrtc/sctputils.cc',
652         'app/webrtc/sctputils.h',
653         'app/webrtc/statscollector.cc',
654         'app/webrtc/statscollector.h',
655         'app/webrtc/statstypes.h',
656         'app/webrtc/streamcollection.h',
657         'app/webrtc/videosource.cc',
658         'app/webrtc/videosource.h',
659         'app/webrtc/videosourceinterface.h',
660         'app/webrtc/videosourceproxy.h',
661         'app/webrtc/videotrack.cc',
662         'app/webrtc/videotrack.h',
663         'app/webrtc/videotrackrenderers.cc',
664         'app/webrtc/videotrackrenderers.h',
665         'app/webrtc/webrtcsdp.cc',
666         'app/webrtc/webrtcsdp.h',
667         'app/webrtc/webrtcsession.cc',
668         'app/webrtc/webrtcsession.h',
669         'app/webrtc/webrtcsessiondescriptionfactory.cc',
670         'app/webrtc/webrtcsessiondescriptionfactory.h',
671       ],
672     },  # target libjingle_peerconnection
673   ],
674 }