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

Unified Diff: webrtc/rtc_base/BUILD.gn

Issue 3003643002: Allow external TaskQueue implementations on Linux (Closed)
Patch Set: Created 3 years, 4 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
Index: webrtc/rtc_base/BUILD.gn
diff --git a/webrtc/rtc_base/BUILD.gn b/webrtc/rtc_base/BUILD.gn
index 60d1f57583cf9f86f0d74ac6c63484d30a5f39c6..7f58e97d4362e193347677eddba0a004f6d5ea1e 100644
--- a/webrtc/rtc_base/BUILD.gn
+++ b/webrtc/rtc_base/BUILD.gn
@@ -301,35 +301,49 @@ rtc_static_library("rtc_task_queue") {
if (build_with_chromium) {
sources = [
- "../../webrtc_overrides/webrtc/rtc_base/task_queue.cc",
nisse-webrtc 2017/08/22 13:39:44 Ah, Chrome already overrides task queue, I had for
perkj_webrtc 2017/08/22 18:52:38 yes, if I can get some help. https://cs.chromium.o
"../../webrtc_overrides/webrtc/rtc_base/task_queue.h",
]
} else {
sources = [
"task_queue.h",
- "task_queue_posix.h",
]
+ }
+ if (rtc_link_task_queue_impl) {
+ deps = [
+ ":rtc_task_queue_impl",
+ ]
+ }
+}
+
+rtc_static_library("rtc_task_queue_impl") {
+ if (build_with_chromium) {
+ sources = [
+ "../../webrtc_overrides/webrtc/rtc_base/task_queue.cc",
+ ]
+ } else {
if (rtc_build_libevent) {
deps = [
"//base/third_party/libevent",
]
}
-
if (rtc_enable_libevent) {
- sources += [
+ sources = [
"task_queue_libevent.cc",
"task_queue_posix.cc",
+ "task_queue_posix.h",
]
all_dependent_configs = [ ":enable_libevent_config" ]
} else {
if (is_mac || is_ios) {
- sources += [
+ sources = [
"task_queue_gcd.cc",
"task_queue_posix.cc",
]
}
if (is_win) {
- sources += [ "task_queue_win.cc" ]
+ sources = [
+ "task_queue_win.cc",
+ ]
}
}
}
« no previous file with comments | « webrtc/pc/BUILD.gn ('k') | webrtc/rtc_base/task_queue.h » ('j') | webrtc/rtc_base/task_queue.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698