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

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

Issue 1919733002: New task queueing primitive for async tasks: TaskQueue. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Address comments+handle error reported by tsan Created 4 years, 7 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 | « no previous file | webrtc/base/base.gyp » ('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/crypto.gni") 9 import("//build/config/crypto.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 "safe_conversions_impl.h", 145 "safe_conversions_impl.h",
146 "scoped_ptr.h", 146 "scoped_ptr.h",
147 "scoped_ref_ptr.h", 147 "scoped_ref_ptr.h",
148 "stringencode.cc", 148 "stringencode.cc",
149 "stringencode.h", 149 "stringencode.h",
150 "stringutils.cc", 150 "stringutils.cc",
151 "stringutils.h", 151 "stringutils.h",
152 "swap_queue.h", 152 "swap_queue.h",
153 "systeminfo.cc", 153 "systeminfo.cc",
154 "systeminfo.h", 154 "systeminfo.h",
155 "task_queue.h",
156 "task_queue_gcd.cc",
157 "task_queue_libevent.cc",
158 "task_queue_posix.cc",
159 "task_queue_posix.h",
160 "task_queue_win.cc",
155 "template_util.h", 161 "template_util.h",
156 "thread_annotations.h", 162 "thread_annotations.h",
157 "thread_checker.h", 163 "thread_checker.h",
158 "thread_checker_impl.cc", 164 "thread_checker_impl.cc",
159 "thread_checker_impl.h", 165 "thread_checker_impl.h",
160 "timeutils.cc", 166 "timeutils.cc",
161 "timeutils.h", 167 "timeutils.h",
162 "trace_event.h", 168 "trace_event.h",
163 ] 169 ]
164 170
165 if (build_with_chromium) { 171 if (build_with_chromium) {
166 # Dependency on chromium's logging (in //base). 172 # Dependency on chromium's logging (in //base).
167 deps += [ "//base:base" ] 173 deps += [ "//base:base" ]
168 sources += [ 174 sources += [
169 "../../webrtc_overrides/webrtc/base/logging.cc", 175 "../../webrtc_overrides/webrtc/base/logging.cc",
170 "../../webrtc_overrides/webrtc/base/logging.h", 176 "../../webrtc_overrides/webrtc/base/logging.h",
171 ] 177 ]
172 include_dirs = [ "../../webrtc_overrides" ] 178 include_dirs = [ "../../webrtc_overrides" ]
173 } else { 179 } else {
174 sources += [ 180 sources += [
175 "logging.cc", 181 "logging.cc",
176 "logging.h", 182 "logging.h",
177 "logging_mac.mm", 183 "logging_mac.mm",
178 ] 184 ]
185 if (!is_win && !is_mac && !is_ios) {
186 deps += [ "//base/third_party/libevent" ]
187 }
188 }
189
190 if (is_mac || is_ios || is_win) {
191 sources -= [ "task_queue_libevent.cc" ]
192 }
193
194 if (is_linux || is_android || is_win) {
195 sources -= [ "task_queue_gcd.cc" ]
179 } 196 }
180 } 197 }
181 198
182 static_library("rtc_base") { 199 static_library("rtc_base") {
183 cflags = [] 200 cflags = []
184 cflags_cc = [] 201 cflags_cc = []
185 libs = [] 202 libs = []
186 deps = [ 203 deps = [
187 "..:webrtc_common", 204 "..:webrtc_common",
188 ] 205 ]
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 ] 655 ]
639 } 656 }
640 } 657 }
641 } 658 }
642 659
643 source_set("gtest_prod") { 660 source_set("gtest_prod") {
644 sources = [ 661 sources = [
645 "gtest_prod_util.h", 662 "gtest_prod_util.h",
646 ] 663 ]
647 } 664 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698