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

Unified Diff: webrtc/base/BUILD.gn

Issue 1927133004: Reland of New task queueing primitive for async tasks: TaskQueue. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix android debug shared chromium GN build Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/base.gyp » ('j') | webrtc/base/base.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/BUILD.gn
diff --git a/webrtc/base/BUILD.gn b/webrtc/base/BUILD.gn
index 63c2da533e5ab3cf3e40292e411105f6cceba9c4..84ad3269efb9525fe38b9755d333ad787c1c36d7 100644
--- a/webrtc/base/BUILD.gn
+++ b/webrtc/base/BUILD.gn
@@ -153,6 +153,12 @@ static_library("rtc_base_approved") {
"swap_queue.h",
"systeminfo.cc",
"systeminfo.h",
+ "task_queue.h",
+ "task_queue_gcd.cc",
+ "task_queue_libevent.cc",
+ "task_queue_posix.cc",
+ "task_queue_posix.h",
+ "task_queue_win.cc",
"template_util.h",
"thread_annotations.h",
"thread_checker.h",
@@ -178,6 +184,18 @@ static_library("rtc_base_approved") {
"logging_mac.mm",
]
}
+
+ if (!is_win && !is_mac && !is_ios) {
+ deps += [ "//base/third_party/libevent" ]
+ }
+
+ if (is_mac || is_ios || is_win) {
+ sources -= [ "task_queue_libevent.cc" ]
+ }
+
+ if (is_linux || is_android || is_win) {
+ sources -= [ "task_queue_gcd.cc" ]
+ }
}
static_library("rtc_base") {
« no previous file with comments | « no previous file | webrtc/base/base.gyp » ('j') | webrtc/base/base.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698