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") |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 deps = [ | 93 deps = [ |
94 "..:webrtc_common", | 94 "..:webrtc_common", |
95 ] | 95 ] |
96 | 96 |
97 if (is_android) { | 97 if (is_android) { |
98 sources += [ | 98 sources += [ |
99 "include/logcat_trace_context.h", | 99 "include/logcat_trace_context.h", |
100 "source/logcat_trace_context.cc", | 100 "source/logcat_trace_context.cc", |
101 ] | 101 ] |
102 | 102 |
103 defines += [ | 103 defines += [ "WEBRTC_THREAD_RR" ] |
104 "WEBRTC_THREAD_RR", | |
105 | |
106 # TODO(leozwang): Investigate CLOCK_REALTIME and CLOCK_MONOTONIC | |
107 # support on Android. Keep WEBRTC_CLOCK_TYPE_REALTIME for now, | |
108 # remove it after I verify that CLOCK_MONOTONIC is fully functional | |
109 # with condition and event functions in system_wrappers. | |
110 "WEBRTC_CLOCK_TYPE_REALTIME", | |
111 ] | |
112 | 104 |
113 deps += [ ":cpu_features_android" ] | 105 deps += [ ":cpu_features_android" ] |
114 | 106 |
115 libs += [ "log" ] | 107 libs += [ "log" ] |
116 } | 108 } |
117 | 109 |
118 if (is_linux) { | 110 if (is_linux) { |
119 defines += [ | 111 defines += [ "WEBRTC_THREAD_RR" ] |
120 "WEBRTC_THREAD_RR", | |
121 # TODO(andrew): can we select this automatically? | |
122 # Define this if the Linux system does not support CLOCK_MONOTONIC. | |
123 #"WEBRTC_CLOCK_TYPE_REALTIME", | |
124 ] | |
125 | 112 |
126 libs += [ "rt" ] | 113 libs += [ "rt" ] |
127 } | 114 } |
128 | 115 |
129 if (!is_mac && !is_ios) { | 116 if (!is_mac && !is_ios) { |
130 sources += [ "source/atomic32_posix.cc" ] | 117 sources += [ "source/atomic32_posix.cc" ] |
131 } | 118 } |
132 | 119 |
133 if (is_ios || is_mac) { | 120 if (is_ios || is_mac) { |
134 defines += [ | 121 defines += [ "WEBRTC_THREAD_RR" ] |
135 "WEBRTC_THREAD_RR", | |
136 "WEBRTC_CLOCK_TYPE_REALTIME", | |
137 ] | |
138 } | 122 } |
139 | 123 |
140 if (is_ios) { | 124 if (is_ios) { |
141 sources += [ "source/atomic32_mac.cc" ] | 125 sources += [ "source/atomic32_mac.cc" ] |
142 } | 126 } |
143 | 127 |
144 if (is_win) { | 128 if (is_win) { |
145 libs += [ "winmm.lib" ] | 129 libs += [ "winmm.lib" ] |
146 | 130 |
147 cflags = [ | 131 cflags = [ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 "source/cpu_features_android.c", | 173 "source/cpu_features_android.c", |
190 ] | 174 ] |
191 | 175 |
192 configs += [ "..:common_config" ] | 176 configs += [ "..:common_config" ] |
193 public_configs = [ "..:common_inherited_config" ] | 177 public_configs = [ "..:common_inherited_config" ] |
194 deps = [ | 178 deps = [ |
195 "//third_party/android_tools:cpu_features", | 179 "//third_party/android_tools:cpu_features", |
196 ] | 180 ] |
197 } | 181 } |
198 } | 182 } |
OLD | NEW |