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

Unified Diff: webrtc/base/BUILD.gn

Issue 2001913002: Split TaskQueue out into a separate build target. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix GN build 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/base.gyp » ('j') | no next file with comments »
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 1e868b504e528e911118efd52f261bf14129fff9..9f7c7591edaccf4c10a6127562adbba3a36d4dcf 100644
--- a/webrtc/base/BUILD.gn
+++ b/webrtc/base/BUILD.gn
@@ -147,8 +147,6 @@ static_library("rtc_base_approved") {
"swap_queue.h",
"systeminfo.cc",
"systeminfo.h",
- "task_queue.h",
- "task_queue_posix.h",
"template_util.h",
"thread_annotations.h",
"thread_checker.h",
@@ -174,17 +172,27 @@ static_library("rtc_base_approved") {
"logging_mac.mm",
]
}
+}
+
+static_library("rtc_task_queue") {
+ public_deps = [ ":rtc_base_approved" ]
+ configs += [ "..:common_config" ]
+
+ sources = [
+ "task_queue.h",
+ "task_queue_posix.h",
+ ]
if (rtc_build_libevent) {
- deps += [ "//base/third_party/libevent" ]
+ deps = [ "//base/third_party/libevent" ]
}
+
if (rtc_enable_libevent) {
sources += [
"task_queue_libevent.cc",
"task_queue_posix.cc",
]
} else {
- # If not libevent, fall back to the other task queues.
if (is_mac || is_ios) {
sources += [
"task_queue_gcd.cc",
« 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