blob: 8ab8f7cb86cf876842b0d0f5971b05adc3d83c43 [file] [log] [blame]
ajm@google.comd5d596e2011-06-08 23:09:321# 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 # TODO(ajm): use webrtc_standalone to match NaCl?
14 'build_with_chromium%': 1, # 1 to build webrtc with chromium
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 ['OS=="win"', {
22 # TODO(ajm, perkj): does this need to be here?
23 # Path needed to build Direct Show base classes on Windows.
24 # The code is included in the Windows SDK.
25 'direct_show_base_classes':
26 'C:/Program Files/Microsoft SDKs/Windows/v7.1/Samples/multimedia/directshow/baseclasses/',
27 }],
28 ], # conditions
29 },
30 'target_defaults': {
31 'include_dirs': [
32 '..', # common_types.h, typedefs.h
33 ],
34 'conditions': [
35 ['OS=="linux"', {
36 'defines': [
37 'WEBRTC_TARGET_PC',
38 'WEBRTC_LINUX',
39 'WEBRTC_THREAD_RR',
40 # TODO(ajm): can we select this automatically?
41 # Define this if the Linux system does not support CLOCK_MONOTONIC.
42 #'WEBRTC_CLOCK_TYPE_REALTIME',
43 ],
44 }],
45 ['OS=="mac"', {
46 # TODO(ajm): what about PowerPC?
47 # Setup for Intel
48 'defines': [
49 'WEBRTC_TARGET_MAC_INTEL',
50 'WEBRTC_MAC_INTEL',
51 'WEBRTC_MAC',
52 'WEBRTC_THREAD_RR',
53 'WEBRTC_CLOCK_TYPE_REALTIME',
54 ],
55 }],
56 ['OS=="win"', {
57 'defines': [
58 'WEBRTC_TARGET_PC',
59 ],
60 }],
61 ['build_with_chromium==1', {
62 'defines': [
63 'WEBRTC_VIDEO_EXTERNAL_CAPTURE_AND_RENDER',
64 ],
65 }],
66 ], # conditions
67 }, # target_defaults
68}
69
70# Local Variables:
71# tab-width:2
72# indent-tabs-mode:nil
73# End:
74# vim: set expandtab tabstop=2 shiftwidth=2: