niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | # This file contains common settings for building WebRTC components. |
| 10 | |
| 11 | { |
| 12 | 'variables': { |
| 13 | 'build_with_chromium%': 0, # 1 to build webrtc with chromium |
| 14 | 'inside_chromium_build%': 0, |
| 15 | |
| 16 | # Selects fixed-point code where possible. |
| 17 | # TODO(ajm): we'd like to set this based on the target OS/architecture. |
| 18 | 'prefer_fixed_point%': 0, |
| 19 | |
| 20 | 'conditions': [ |
| 21 | ['inside_chromium_build==1', { |
| 22 | 'build_with_chromium': 1, |
| 23 | }], |
| 24 | ['OS=="win"', { |
| 25 | # Path needed to build Direct Show base classes on Windows. The code is included in Windows SDK. |
| 26 | 'direct_show_base_classes':'C:/Program Files/Microsoft SDKs/Windows/v7.1/Samples/multimedia/directshow/baseclasses/', |
| 27 | }], |
| 28 | ], # conditions |
| 29 | }, |
| 30 | 'target_defaults': { |
| 31 | 'include_dirs': [ |
| 32 | '.', # For common_typs.h and typedefs.h |
| 33 | ], |
| 34 | 'conditions': [ |
| 35 | ['OS=="linux"', { |
| 36 | 'defines': [ |
| 37 | 'WEBRTC_TARGET_PC', |
| 38 | 'WEBRTC_LINUX', |
| 39 | 'WEBRTC_THREAD_RR', |
| 40 | # INTEL_OPT is for iLBC floating point code optimized for Intel processors |
| 41 | # supporting SSE3. The compiler will be automatically switched to Intel |
| 42 | # compiler icc in the iLBC folder for iLBC floating point library build. |
| 43 | #'INTEL_OPT', |
| 44 | # Define WEBRTC_CLOCK_TYPE_REALTIME if the Linux system does not support CLOCK_MONOTONIC |
| 45 | #'WEBRTC_CLOCK_TYPE_REALTIME', |
| 46 | ], |
| 47 | }], |
| 48 | ['OS=="mac"', { |
| 49 | # Setup for Intel |
| 50 | 'defines': [ |
| 51 | 'WEBRTC_TARGET_MAC_INTEL', |
| 52 | 'WEBRTC_MAC_INTEL', |
| 53 | 'WEBRTC_MAC', |
| 54 | 'WEBRTC_THREAD_RR', |
| 55 | 'WEBRTC_CLOCK_TYPE_REALTIME', |
| 56 | ], |
| 57 | }], |
| 58 | ['OS=="win"', { |
| 59 | 'defines': [ |
| 60 | 'WEBRTC_TARGET_PC', |
| 61 | ], |
| 62 | }], |
| 63 | ['build_with_chromium==1', { |
| 64 | 'defines': [ |
| 65 | 'WEBRTC_VIDEO_EXTERNAL_CAPTURE_AND_RENDER', |
| 66 | ], |
| 67 | }], |
| 68 | ], # conditions |
| 69 | }, # target-defaults |
| 70 | } |
| 71 | |
| 72 | # Local Variables: |
| 73 | # tab-width:2 |
| 74 | # indent-tabs-mode:nil |
| 75 | # End: |
| 76 | # vim: set expandtab tabstop=2 shiftwidth=2: |