Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / libjingle / libjingle.gyp
index eceb131..0eaf86c 100644 (file)
@@ -14,6 +14,9 @@
     'libpeer_target_type%': 'static_library',
     'libpeer_allocator_shim%': 0,
   },
+  # Most of these settings have been split according to their scope into
+  # :jingle_unexported_configs, :jingle_direct_dependent_configs,
+  # :jingle_all_dependent_configs in the GN build.
   'target_defaults': {
     'defines': [
       'EXPAT_RELATIVE_PATH',
@@ -28,6 +31,7 @@
       'SRTP_RELATIVE_PATH',
       'USE_WEBRTC_DEV_BRANCH',
       'ENABLE_EXTERNAL_AUTH',
+      'WEBRTC_CHROMIUM_BUILD',
     ],
     'configurations': {
       'Debug': {
@@ -48,6 +52,7 @@
       '../../third_party/libyuv/include',
       '../../third_party/usrsctp',
     ],
+    # These dependencies have been translated into :jingle_deps in the GN build.
     'dependencies': [
       '<(DEPTH)/base/base.gyp:base',
       '<(DEPTH)/net/net.gyp:net',
       'configurations': {
         'Debug': {
           'defines': [
-            # TODO(sergeyu): Fix libjingle to use NDEBUG instead of
-            # _DEBUG and remove this define. See above as well.
+            # TODO(sergeyu): Fix libjingle to use NDEBUG instead of _DEBUG and
+            # remove this define. See above and GN file as well.
             '_DEBUG',
           ],
         }
     ],
   },
   'targets': [
+    # GN version: //third_party/libjingle
     {
       'target_name': 'libjingle',
       'type': 'static_library',
       ],
       'dependencies': [
         '<(DEPTH)/third_party/webrtc/base/base.gyp:webrtc_base',
+        '<(DEPTH)/third_party/webrtc/libjingle/xmllite/xmllite.gyp:rtc_xmllite',
         'libjingle_p2p_constants',
         '<@(libjingle_additional_deps)',
       ],
     # run GYP and if GYP has removed the validation check, then we can assume
     # that the toolchains have been fixed (we currently use VS2010 and later,
     # so VS2008 isn't a concern anymore).
+    #
+    # GN version: //third_party/libjingle:libjingle_p2p_constants
     {
       'target_name': 'libjingle_p2p_constants',
       'type': 'static_library',
         '<(libjingle_source)/talk/p2p/base/constants.h',
       ],
     },  # target libjingle_p2p_constants
+    # GN version: //third_party/libjingle:peerconnection_server
     {
       'target_name': 'peerconnection_server',
       'type': 'executable',
     ['enable_webrtc==1', {
       'targets': [
         {
+          # GN version: //third_party/libjingle:libjingle_webrtc_common
           'target_name': 'libjingle_webrtc_common',
           'type': 'static_library',
           'all_dependent_settings': {
               'sources': [
                 '<(libjingle_source)/talk/media/devices/devicemanager.cc',
                 '<(libjingle_source)/talk/media/devices/devicemanager.h',
-                '<(libjingle_source)/talk/sound/nullsoundsystem.cc',
-                '<(libjingle_source)/talk/sound/nullsoundsystem.h',
-                '<(libjingle_source)/talk/sound/nullsoundsystemfactory.cc',
-                '<(libjingle_source)/talk/sound/nullsoundsystemfactory.h',
-                '<(libjingle_source)/talk/sound/platformsoundsystem.cc',
-                '<(libjingle_source)/talk/sound/platformsoundsystem.h',
-                '<(libjingle_source)/talk/sound/platformsoundsystemfactory.cc',
-                '<(libjingle_source)/talk/sound/platformsoundsystemfactory.h',
-                '<(libjingle_source)/talk/sound/soundsysteminterface.cc',
-                '<(libjingle_source)/talk/sound/soundsysteminterface.h',
-                '<(libjingle_source)/talk/sound/soundsystemproxy.cc',
-                '<(libjingle_source)/talk/sound/soundsystemproxy.h',
               ],
               'conditions': [
                 ['OS=="win"', {
                     '<(libjingle_source)/talk/media/devices/linuxdevicemanager.h',
                     '<(libjingle_source)/talk/media/devices/v4llookup.cc',
                     '<(libjingle_source)/talk/media/devices/v4llookup.h',
-                    '<(libjingle_source)/talk/sound/alsasoundsystem.cc',
-                    '<(libjingle_source)/talk/sound/alsasoundsystem.h',
-                    '<(libjingle_source)/talk/sound/alsasymboltable.cc',
-                    '<(libjingle_source)/talk/sound/alsasymboltable.h',
-                    '<(libjingle_source)/talk/sound/linuxsoundsystem.cc',
-                    '<(libjingle_source)/talk/sound/linuxsoundsystem.h',
-                    '<(libjingle_source)/talk/sound/pulseaudiosoundsystem.cc',
-                    '<(libjingle_source)/talk/sound/pulseaudiosoundsystem.h',
-                    '<(libjingle_source)/talk/sound/pulseaudiosymboltable.cc',
-                    '<(libjingle_source)/talk/sound/pulseaudiosymboltable.h',
                   ],
                 }],
                 ['OS=="mac"', {
           'dependencies': [
             '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',
             '<(DEPTH)/third_party/webrtc/modules/modules.gyp:media_file',
-            '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_capture_module',
-            '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_render_module',
+            '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_capture_module_impl',
+            '<(DEPTH)/third_party/webrtc/modules/modules.gyp:video_render_module_impl',
             'libjingle',
           ],
         },  # target libjingle_webrtc_common
         {
+          # GN version: //third_party/libjingle:libjingle_webrtc
           'target_name': 'libjingle_webrtc',
           'type': 'static_library',
           'sources': [
           ],
         },
         {
+          # GN version: //third_party/libjingle:libpeerconnection
           'target_name': 'libpeerconnection',
           'type': '<(libpeer_target_type)',
           'sources': [
+            # Note: sources list duplicated in GN build.
             '<(libjingle_source)/talk/media/webrtc/webrtcmediaengine.cc',
             '<(libjingle_source)/talk/media/webrtc/webrtcmediaengine.h',
             '<(libjingle_source)/talk/media/webrtc/webrtcvideoengine.cc',