Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: webrtc/system_wrappers/BUILD.gn

Issue 1613013002: Remove non-monotonic clock support (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Cleanup Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/platform_thread.cc ('k') | webrtc/system_wrappers/source/event_timer_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « webrtc/base/platform_thread.cc ('k') | webrtc/system_wrappers/source/event_timer_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698