OLD | NEW |
| (Empty) |
1 # Copyright (c) 2012 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 { | |
10 'includes': [ '../build/common.gypi', ], | |
11 'targets': [ | |
12 { | |
13 'target_name': 'system_wrappers', | |
14 'type': 'static_library', | |
15 'dependencies': [ | |
16 '<(webrtc_root)/common.gyp:webrtc_common', | |
17 '../base/base.gyp:rtc_base_approved', | |
18 ], | |
19 'sources': [ | |
20 'include/aligned_array.h', | |
21 'include/aligned_malloc.h', | |
22 'include/atomic32.h', | |
23 'include/clock.h', | |
24 'include/cpu_features_wrapper.h', | |
25 'include/cpu_info.h', | |
26 'include/critical_section_wrapper.h', | |
27 'include/event_wrapper.h', | |
28 'include/field_trial.h', | |
29 'include/file_wrapper.h', | |
30 'include/fix_interlocked_exchange_pointer_win.h', | |
31 'include/logging.h', | |
32 'include/metrics.h', | |
33 'include/ntp_time.h', | |
34 'include/rtp_to_ntp.h', | |
35 'include/rw_lock_wrapper.h', | |
36 'include/sleep.h', | |
37 'include/sort.h', | |
38 'include/static_instance.h', | |
39 'include/stl_util.h', | |
40 'include/stringize_macros.h', | |
41 'include/timestamp_extrapolator.h', | |
42 'include/trace.h', | |
43 'include/utf_util_win.h', | |
44 'source/aligned_malloc.cc', | |
45 'source/atomic32_win.cc', | |
46 'source/clock.cc', | |
47 'source/condition_variable_event_win.cc', | |
48 'source/condition_variable_event_win.h', | |
49 'source/cpu_features.cc', | |
50 'source/cpu_info.cc', | |
51 'source/event.cc', | |
52 'source/event_timer_posix.cc', | |
53 'source/event_timer_posix.h', | |
54 'source/event_timer_win.cc', | |
55 'source/event_timer_win.h', | |
56 'source/file_impl.cc', | |
57 'source/logging.cc', | |
58 'source/rtp_to_ntp.cc', | |
59 'source/rw_lock.cc', | |
60 'source/rw_lock_posix.cc', | |
61 'source/rw_lock_posix.h', | |
62 'source/rw_lock_win.cc', | |
63 'source/rw_lock_win.h', | |
64 'source/rw_lock_winxp_win.cc', | |
65 'source/rw_lock_winxp_win.h', | |
66 'source/sleep.cc', | |
67 'source/sort.cc', | |
68 'source/timestamp_extrapolator.cc', | |
69 'source/trace_impl.cc', | |
70 'source/trace_impl.h', | |
71 'source/trace_posix.cc', | |
72 'source/trace_posix.h', | |
73 'source/trace_win.cc', | |
74 'source/trace_win.h', | |
75 ], | |
76 'conditions': [ | |
77 ['OS=="android"', { | |
78 'defines': [ | |
79 'WEBRTC_THREAD_RR', | |
80 ], | |
81 'conditions': [ | |
82 ['build_with_chromium==1', { | |
83 'dependencies': [ | |
84 'cpu_features_chromium.gyp:cpu_features_android', | |
85 ], | |
86 }, { | |
87 'dependencies': [ | |
88 'cpu_features_webrtc.gyp:cpu_features_android', | |
89 ], | |
90 }], | |
91 ], | |
92 'link_settings': { | |
93 'libraries': [ | |
94 '-llog', | |
95 ], | |
96 }, | |
97 'sources': [ | |
98 'include/logcat_trace_context.h', | |
99 'source/logcat_trace_context.cc', | |
100 ], | |
101 }], | |
102 ['OS=="linux"', { | |
103 'defines': [ | |
104 'WEBRTC_THREAD_RR', | |
105 ], | |
106 'conditions': [ | |
107 ['build_with_chromium==0', { | |
108 'dependencies': [ | |
109 'cpu_features_webrtc.gyp:cpu_features_linux', | |
110 ], | |
111 }], | |
112 ], | |
113 'link_settings': { | |
114 'libraries': [ '-lrt', ], | |
115 }, | |
116 }], | |
117 ['OS=="mac"', { | |
118 'link_settings': { | |
119 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/ApplicationServ
ices.framework', ], | |
120 }, | |
121 }], | |
122 ['OS=="linux" or OS=="android"', { | |
123 'sources': [ | |
124 'source/atomic32_non_darwin_unix.cc', | |
125 ], | |
126 }], | |
127 ['OS=="ios" or OS=="mac"', { | |
128 'defines': [ | |
129 'WEBRTC_THREAD_RR', | |
130 ], | |
131 'sources': [ | |
132 'source/atomic32_darwin.cc', | |
133 ], | |
134 }], | |
135 ['OS=="win"', { | |
136 'link_settings': { | |
137 'libraries': [ '-lwinmm.lib', ], | |
138 }, | |
139 }], | |
140 ], # conditions | |
141 # Disable warnings to enable Win64 build, issue 1323. | |
142 'msvs_disabled_warnings': [ | |
143 4267, # size_t to int truncation. | |
144 4334, # Ignore warning on shift operator promotion. | |
145 ], | |
146 }, { | |
147 'target_name': 'field_trial_default', | |
148 'type': 'static_library', | |
149 'sources': [ | |
150 'include/field_trial_default.h', | |
151 'source/field_trial_default.cc', | |
152 ] | |
153 }, { | |
154 'target_name': 'metrics_default', | |
155 'type': 'static_library', | |
156 'sources': [ | |
157 'include/metrics_default.h', | |
158 'source/metrics_default.cc', | |
159 ], | |
160 }, { | |
161 'target_name': 'system_wrappers_default', | |
162 'type': 'static_library', | |
163 'dependencies': [ | |
164 'system_wrappers', | |
165 'field_trial_default', | |
166 'metrics_default', | |
167 ] | |
168 }, | |
169 ], # targets | |
170 } | |
171 | |
OLD | NEW |