Move src/ -> webrtc/

TBR=niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/915006

git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@2963 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/common_video/common_video.gyp b/common_video/common_video.gyp
new file mode 100644
index 0000000..67db5d1
--- /dev/null
+++ b/common_video/common_video.gyp
@@ -0,0 +1,91 @@
+# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS.  All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+{
+  'variables': {
+    'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
+    'conditions': [
+      ['use_libjpeg_turbo==1', {
+        'libjpeg_include_dir%': [ '<(DEPTH)/third_party/libjpeg_turbo', ],
+      }, {
+        'libjpeg_include_dir%': [ '<(DEPTH)/third_party/libjpeg', ],
+       }],
+    ],
+  },
+  'includes': ['../build/common.gypi'],
+  'targets': [
+    {
+      'target_name': 'common_video',
+      'type': 'static_library',
+      'include_dirs': [
+        '<(webrtc_root)/modules/interface/',
+        'interface',
+        'jpeg/include',
+        'libyuv/include',
+      ],
+      'direct_dependent_settings': {
+        'include_dirs': [
+          'interface',
+          'jpeg/include',
+          'libyuv/include',
+        ],
+      },
+      'conditions': [
+        ['build_libjpeg==1', {
+          'dependencies': ['<(libjpeg_gyp_path):libjpeg',],
+        }, {
+          # Need to add a directory normally exported by libjpeg.gyp.
+          'include_dirs': ['<(libjpeg_include_dir)'],
+        }],
+        ['build_libyuv==1', {
+          'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',],
+        }, {
+          # Need to add a directory normally exported by libyuv.gyp.
+          'include_dirs': ['<(libyuv_dir)/include',],
+        }],
+      ],
+      'sources': [
+        'interface/i420_video_frame.h',
+        'i420_video_frame.cc',
+        'jpeg/include/jpeg.h',
+        'jpeg/data_manager.cc',
+        'jpeg/data_manager.h',
+        'jpeg/jpeg.cc',
+        'libyuv/include/webrtc_libyuv.h',
+        'libyuv/include/scaler.h',
+        'libyuv/webrtc_libyuv.cc',
+        'libyuv/scaler.cc',
+        'plane.h',
+        'plane.cc',
+      ],
+    },
+  ],  # targets
+  'conditions': [
+    ['include_tests==1', {
+      'targets': [
+        {
+          'target_name': 'common_video_unittests',
+          'type': 'executable',
+          'dependencies': [
+             'common_video',
+             '<(DEPTH)/testing/gtest.gyp:gtest',
+             '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
+             '<(webrtc_root)/test/test.gyp:test_support_main',
+          ],
+          'sources': [
+            'i420_video_frame_unittest.cc',
+            'jpeg/jpeg_unittest.cc',
+            'libyuv/libyuv_unittest.cc',
+            'libyuv/scaler_unittest.cc',
+            'plane_unittest.cc',
+          ],
+        },
+      ],  # targets
+    }],  # include_tests
+  ],
+}
\ No newline at end of file