Proof-of-concept proposal for a standalone webrtc build without using gyp_chromium etc. This adds the necessary scripts and gyp files. The idea is to assume that we are building within Chromium; in that case common.gypi (which every gyp file includes) provides the necessary logic to build webrtc.

In a standalone build, gyp_webrtc would be called, which includes common_standalone.gypi. This file specifies everything that running gyp_chromium would normally provide (cflags etc). Here we can customize things for our build that Chromium might not have, and also do away with a lot of the complexity which we don't need.

Most of the remaining work would be in common_standalone.gypi to provide full build settings. Much of this could come from Chromium's common.gypi.

Some of the inspiration for this is from NaCl.

(This doesn't impact the current build, just provides the option to run gyp_webrtc instead of gyp_chromium).
Review URL: http://webrtc-codereview.appspot.com/22021

git-svn-id: http://webrtc.googlecode.com/svn/trunk@60 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/common_settings.gypi b/common_settings.gypi
index dd1c8f0..8d64288 100644
--- a/common_settings.gypi
+++ b/common_settings.gypi
@@ -6,67 +6,12 @@
 # in the file PATENTS.  All contributing project authors may
 # be found in the AUTHORS file in the root of the source tree.
 
-# This file contains common settings for building WebRTC components.
+# Placeholder until all gyp files point to build/common.gypi instead.
 
 {
-  'variables': {
-    'build_with_chromium%': 0, # 1 to build webrtc with chromium
-    'inside_chromium_build%': 0,
-
-    # Selects fixed-point code where possible.
-    # TODO(ajm): we'd like to set this based on the target OS/architecture.
-    'prefer_fixed_point%': 0,
-
-    'conditions': [
-      ['inside_chromium_build==1', {
-        'build_with_chromium': 1,
-      }],
-      ['OS=="win"', {
-        # Path needed to build Direct Show base classes on Windows. The code is included in Windows SDK.
-        'direct_show_base_classes':'C:/Program Files/Microsoft SDKs/Windows/v7.1/Samples/multimedia/directshow/baseclasses/',
-      }],
-    ], # conditions
-  },
-  'target_defaults': {
-    'include_dirs': [
-      '.', # For common_typs.h and typedefs.h
-    ],
-    'conditions': [
-      ['OS=="linux"', {
-        'defines': [
-          'WEBRTC_TARGET_PC',
-          'WEBRTC_LINUX',
-          'WEBRTC_THREAD_RR',
-          # INTEL_OPT is for iLBC floating point code optimized for Intel processors
-          # supporting SSE3. The compiler will be automatically switched to Intel 
-          # compiler icc in the iLBC folder for iLBC floating point library build.
-          #'INTEL_OPT',
-          # Define WEBRTC_CLOCK_TYPE_REALTIME if the Linux system does not support CLOCK_MONOTONIC
-          #'WEBRTC_CLOCK_TYPE_REALTIME',
-        ],
-      }],
-      ['OS=="mac"', {
-        # Setup for Intel
-        'defines': [
-          'WEBRTC_TARGET_MAC_INTEL',
-          'WEBRTC_MAC_INTEL',
-          'WEBRTC_MAC',
-          'WEBRTC_THREAD_RR',
-          'WEBRTC_CLOCK_TYPE_REALTIME',
-        ],
-      }],
-      ['OS=="win"', {
-        'defines': [
-          'WEBRTC_TARGET_PC',
-         ],
-      }],
-      ['build_with_chromium==1', {
-        'defines': [
-          'WEBRTC_VIDEO_EXTERNAL_CAPTURE_AND_RENDER',
-        ],
-      }],
-    ], # conditions
-  }, # target-defaults
+  'includes': [
+    'build/common.gypi',
+  ],
 }
 
 # Local Variables: