OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
10 import("../build/webrtc.gni") | 10 import("../build/webrtc.gni") |
11 | 11 |
12 static_library("system_wrappers") { | 12 static_library("system_wrappers") { |
13 sources = [ | 13 sources = [ |
14 "interface/aligned_array.h", | 14 "include/aligned_array.h", |
15 "interface/aligned_malloc.h", | 15 "include/aligned_malloc.h", |
16 "interface/atomic32.h", | 16 "include/atomic32.h", |
17 "interface/clock.h", | 17 "include/clock.h", |
18 "interface/condition_variable_wrapper.h", | 18 "include/condition_variable_wrapper.h", |
19 "interface/cpu_features_wrapper.h", | 19 "include/cpu_features_wrapper.h", |
20 "interface/cpu_info.h", | 20 "include/cpu_info.h", |
21 "interface/critical_section_wrapper.h", | 21 "include/critical_section_wrapper.h", |
22 "interface/data_log.h", | 22 "include/data_log.h", |
23 "interface/data_log_c.h", | 23 "include/data_log_c.h", |
24 "interface/data_log_impl.h", | 24 "include/data_log_impl.h", |
25 "interface/event_tracer.h", | 25 "include/event_tracer.h", |
26 "interface/event_wrapper.h", | 26 "include/event_wrapper.h", |
27 "interface/field_trial.h", | 27 "include/field_trial.h", |
28 "interface/file_wrapper.h", | 28 "include/file_wrapper.h", |
29 "interface/fix_interlocked_exchange_pointer_win.h", | 29 "include/fix_interlocked_exchange_pointer_win.h", |
30 "interface/logging.h", | 30 "include/logging.h", |
31 "interface/metrics.h", | 31 "include/metrics.h", |
32 "interface/ref_count.h", | 32 "include/ref_count.h", |
33 "interface/rtp_to_ntp.h", | 33 "include/rtp_to_ntp.h", |
34 "interface/rw_lock_wrapper.h", | 34 "include/rw_lock_wrapper.h", |
35 "interface/scoped_vector.h", | 35 "include/scoped_vector.h", |
36 "interface/sleep.h", | 36 "include/sleep.h", |
37 "interface/sort.h", | 37 "include/sort.h", |
38 "interface/static_instance.h", | 38 "include/static_instance.h", |
39 "interface/stl_util.h", | 39 "include/stl_util.h", |
40 "interface/stringize_macros.h", | 40 "include/stringize_macros.h", |
41 "interface/thread_wrapper.h", | 41 "include/thread_wrapper.h", |
42 "interface/tick_util.h", | 42 "include/tick_util.h", |
43 "interface/timestamp_extrapolator.h", | 43 "include/timestamp_extrapolator.h", |
44 "interface/trace.h", | 44 "include/trace.h", |
45 "interface/utf_util_win.h", | 45 "include/utf_util_win.h", |
46 "source/aligned_malloc.cc", | 46 "source/aligned_malloc.cc", |
47 "source/atomic32_mac.cc", | 47 "source/atomic32_mac.cc", |
48 "source/atomic32_win.cc", | 48 "source/atomic32_win.cc", |
49 "source/clock.cc", | 49 "source/clock.cc", |
50 "source/condition_variable.cc", | 50 "source/condition_variable.cc", |
51 "source/condition_variable_event_win.cc", | 51 "source/condition_variable_event_win.cc", |
52 "source/condition_variable_event_win.h", | 52 "source/condition_variable_event_win.h", |
53 "source/condition_variable_native_win.cc", | 53 "source/condition_variable_native_win.cc", |
54 "source/condition_variable_native_win.h", | 54 "source/condition_variable_native_win.h", |
55 "source/condition_variable_posix.cc", | 55 "source/condition_variable_posix.cc", |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 107 } |
108 | 108 |
109 defines = [] | 109 defines = [] |
110 libs = [] | 110 libs = [] |
111 deps = [ | 111 deps = [ |
112 "..:webrtc_common", | 112 "..:webrtc_common", |
113 ] | 113 ] |
114 | 114 |
115 if (is_android) { | 115 if (is_android) { |
116 sources += [ | 116 sources += [ |
117 "interface/logcat_trace_context.h", | 117 "include/logcat_trace_context.h", |
118 "source/logcat_trace_context.cc", | 118 "source/logcat_trace_context.cc", |
119 ] | 119 ] |
120 | 120 |
121 defines += [ | 121 defines += [ |
122 "WEBRTC_THREAD_RR", | 122 "WEBRTC_THREAD_RR", |
123 | 123 |
124 # TODO(leozwang): Investigate CLOCK_REALTIME and CLOCK_MONOTONIC | 124 # TODO(leozwang): Investigate CLOCK_REALTIME and CLOCK_MONOTONIC |
125 # support on Android. Keep WEBRTC_CLOCK_TYPE_REALTIME for now, | 125 # support on Android. Keep WEBRTC_CLOCK_TYPE_REALTIME for now, |
126 # remove it after I verify that CLOCK_MONOTONIC is fully functional | 126 # remove it after I verify that CLOCK_MONOTONIC is fully functional |
127 # with condition and event functions in system_wrappers. | 127 # with condition and event functions in system_wrappers. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 "/wd4267", # size_t to int truncation. | 166 "/wd4267", # size_t to int truncation. |
167 "/wd4334", # Ignore warning on shift operator promotion. | 167 "/wd4334", # Ignore warning on shift operator promotion. |
168 ] | 168 ] |
169 } | 169 } |
170 | 170 |
171 deps += [ "../base:rtc_base_approved" ] | 171 deps += [ "../base:rtc_base_approved" ] |
172 } | 172 } |
173 | 173 |
174 source_set("field_trial_default") { | 174 source_set("field_trial_default") { |
175 sources = [ | 175 sources = [ |
176 "interface/field_trial_default.h", | 176 "include/field_trial_default.h", |
177 "source/field_trial_default.cc", | 177 "source/field_trial_default.cc", |
178 ] | 178 ] |
179 | 179 |
180 configs += [ "..:common_config" ] | 180 configs += [ "..:common_config" ] |
181 public_configs = [ "..:common_inherited_config" ] | 181 public_configs = [ "..:common_inherited_config" ] |
182 | 182 |
183 deps = [ | 183 deps = [ |
184 ":system_wrappers", | 184 ":system_wrappers", |
185 ] | 185 ] |
186 } | 186 } |
(...skipping 27 matching lines...) Expand all Loading... |
214 "source/cpu_features_android.c", | 214 "source/cpu_features_android.c", |
215 ] | 215 ] |
216 | 216 |
217 configs += [ "..:common_config" ] | 217 configs += [ "..:common_config" ] |
218 public_configs = [ "..:common_inherited_config" ] | 218 public_configs = [ "..:common_inherited_config" ] |
219 deps = [ | 219 deps = [ |
220 "//third_party/android_tools:cpu_features", | 220 "//third_party/android_tools:cpu_features", |
221 ] | 221 ] |
222 } | 222 } |
223 } | 223 } |
OLD | NEW |