{
  'includes': [
    '../third_party/webrtc/src/webrtc/build/common.gypi',
    '../third_party/webrtc/src/talk/build/common.gypi',
    '../build/config.gypi',
    '../nodejs.gypi',
  ],
  'variables': {
    'include_tests%': 0,
    'third_party%': 'third_party',
    'configuration%': 'Release',
  }, 
  'targets': [
    {
      'target_name': 'webrtc-native',
      'type': 'loadable_module',
      'product_extension': 'node',
      'sources': [
        'Core.cc',
        'BackTrace.cc',
        'EventEmitter.cc',
        'Observers.cc',
        'ArrayBuffer.cc',
        'Module.cc',
        'PeerConnection.cc',
        'DataChannel.cc',
        'GetSources.cc',
        'GetUserMedia.cc',
        'MediaStream.cc',
        'MediaStreamTrack.cc',
        'MediaConstraints.cc',
        'Wrap.cc',
        'Stats.cc',
      ],      
      'defines': [
        'BUILDING_NODE_EXTENSION',
      ],
      'dependencies': [
        '<(DEPTH)/webrtc/common.gyp:webrtc_common',
        '<(DEPTH)/webrtc/webrtc.gyp:webrtc_all',
        '<(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',
        '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
        '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
        '<(DEPTH)/talk/libjingle.gyp:libjingle_peerconnection',
        '<(DEPTH)/webrtc/modules/modules.gyp:video_capture',
        '<(DEPTH)/webrtc/modules/modules.gyp:video_render',
      ],
      'include_dirs': [
        '<(nodedir)/src',
        '<(nodedir)/deps/uv/include',
        '<(nodedir)/deps/v8/include',
        '<(DEPTH)/third_party/jsoncpp/source/include',
        '<(DEPTH)/third_party/libsrtp/srtp',
        '<(DEPTH)/third_party/libyuv/include',
      ],
      'conditions': [ 
        ['OS=="linux"', {
          'defines': [
            '_LARGEFILE_SOURCE', 
            '_FILE_OFFSET_BITS=64',
          ],
          'cflags': [
            '-fPIC',
            '-Wno-deprecated-declarations',
          ],
          'conditions': [
            ['clang==1', {
              'cflags': [
                '-Wall',
                '-Wextra',
                '-Wimplicit-fallthrough',
                '-Wmissing-braces',
                '-Wreorder',
                '-Wunused-variable',
                '-Wno-address-of-array-temporary',
                '-Wthread-safety',
              ],
              'cflags_cc': [
                '-Wunused-private-field',
              ],
            }],
          ],
        }],
        ['OS=="win"', {
          'msvs_disabled_warnings': [ 
            4251,
            4530,
            4702,
            4199,
            4201,
            4267,
          ],
          'libraries': [
            '-lkernel32.lib',
            '-luser32.lib',
            '-lgdi32.lib',
            '-lwinspool.lib',
            '-lcomdlg32.lib',
            '-ladvapi32.lib',
            '-lshell32.lib',
            '-lole32.lib',
            '-loleaut32.lib',
            '-luuid.lib',
            '-lodbc32.lib',
            '-l"<(nodedir)\\<(target_arch)\\node"',
          ],
        }],
        ['OS=="mac"', {
          'xcode_settings': {
            'OTHER_CFLAGS': [
              '-Wno-deprecated-declarations',
              '-Wno-newline-eof',
              '-Wno-unknown-pragmas',
              '-Wno-unused-result',
            ],
            'DYLIB_INSTALL_NAME_BASE': '@rpath',
          },
          'libraries': [ 
            '-undefined dynamic_lookup',
            '-framework AppKit',
            '-framework QTKit',
          ],
          'defines': [
            'USE_BACKTRACE',
            '_LARGEFILE_SOURCE', 
            '_FILE_OFFSET_BITS=64',
            '_DARWIN_USE_64_BIT_INODE=1',
          ],
        }],
      ],      
    },
    {
      'target_name': 'All',
      'type': 'none',
      'dependencies': [
        'webrtc-native',
      ],
    },
  ],
}

@@ -7,24 +7,80 @@
 ncludes': %5B%0A
+    '../third_party/webrtc/src/webrtc/supplement.gypi',%0A
     '../thir
@@ -117,32 +117,32 @@
 d/common.gypi',%0A
-
     '../third_pa
@@ -346,16 +346,47 @@
 lease',%0A
+    'build_with_chromium%25': 0,%0A
   %7D, %0A  
@@ -1028,41 +1028,54 @@
 TH)/
-webrtc/common.gyp:webrtc_comm
+talk/libjingle.gyp:libjingle_peerconnecti
 on',
+ 
 %0A   
@@ -1100,206 +1100,48 @@
 rtc/
-webrtc.gyp:webrtc_all',%0A        '%3C(DEPTH)/third_party/libsrtp/libsrtp.gyp:libsrtp',%0A        '%3C(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',%0A        '%3C(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv
+modules/modules.gyp:video_capture_module
 ',%0A 
@@ -1161,51 +1161,69 @@
 TH)/
-talk/libjing
+webrtc/modules/modu
 le
+s
 .gyp:
-libjingle_peerconnection
+video_capture_module_internal_impl
 ',%0A 
@@ -1272,22 +1272,28 @@
 p:video_
-captur
+render_modul
 e',%0A    
@@ -1345,16 +1345,37 @@
 o_render
+_module_internal_impl
 ',%0A     
@@ -1916,268 +1916,16 @@
     
-%5D,%0A          'conditions': %5B%0A            %5B'clang==1', %7B%0A              'cflags': %5B%0A                '-Wall',%0A                '-Wextra',%0A                '-Wimplicit-fallthrough',%0A                '-Wmissing-braces',%0A                '-Wreorder',%0A              
   '-W
+no-
 unus
@@ -1954,201 +1954,64 @@
     
-    
 '-Wno-
-address-of-array-temporary',%0A                '-Wthread-safety',%0A              %5D,%0A              'cflags_cc': %5B%0A                '-Wunused-private-field',%0A              %5D,%0A            %7D%5D
+unknown-pragmas',%0A            '-Wno-unused-result'
 ,%0A  

Update depends