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

Side by Side 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: 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
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 "safe_conversions.h", 140 "safe_conversions.h",
141 "safe_conversions_impl.h", 141 "safe_conversions_impl.h",
142 "scoped_ref_ptr.h", 142 "scoped_ref_ptr.h",
143 "stringencode.cc", 143 "stringencode.cc",
144 "stringencode.h", 144 "stringencode.h",
145 "stringutils.cc", 145 "stringutils.cc",
146 "stringutils.h", 146 "stringutils.h",
147 "swap_queue.h", 147 "swap_queue.h",
148 "systeminfo.cc", 148 "systeminfo.cc",
149 "systeminfo.h", 149 "systeminfo.h",
150 "task_queue.h",
151 "task_queue_posix.h",
152 "template_util.h", 150 "template_util.h",
153 "thread_annotations.h", 151 "thread_annotations.h",
154 "thread_checker.h", 152 "thread_checker.h",
155 "thread_checker_impl.cc", 153 "thread_checker_impl.cc",
156 "thread_checker_impl.h", 154 "thread_checker_impl.h",
157 "timeutils.cc", 155 "timeutils.cc",
158 "timeutils.h", 156 "timeutils.h",
159 "trace_event.h", 157 "trace_event.h",
160 ] 158 ]
161 159
162 if (build_with_chromium) { 160 if (build_with_chromium) {
163 # Dependency on chromium's logging (in //base). 161 # Dependency on chromium's logging (in //base).
164 deps += [ "//base:base" ] 162 deps += [ "//base:base" ]
165 sources += [ 163 sources += [
166 "../../webrtc_overrides/webrtc/base/logging.cc", 164 "../../webrtc_overrides/webrtc/base/logging.cc",
167 "../../webrtc_overrides/webrtc/base/logging.h", 165 "../../webrtc_overrides/webrtc/base/logging.h",
168 ] 166 ]
169 include_dirs = [ "../../webrtc_overrides" ] 167 include_dirs = [ "../../webrtc_overrides" ]
170 } else { 168 } else {
171 sources += [ 169 sources += [
172 "logging.cc", 170 "logging.cc",
173 "logging.h", 171 "logging.h",
174 "logging_mac.mm", 172 "logging_mac.mm",
175 ] 173 ]
176 } 174 }
175 }
177 176
178 if (rtc_build_libevent) { 177 static_library("rtc_task_queue") {
179 deps += [ "//base/third_party/libevent" ] 178 defines = []
180 } 179 deps = []
181 if (rtc_enable_libevent) { 180 public_deps = [
182 sources += [ 181 ":rtc_base_approved",
183 "task_queue_libevent.cc", 182 ]
184 "task_queue_posix.cc", 183
185 ] 184 sources = [
186 } else { 185 "task_queue.h",
186 "task_queue_posix.h",
187 ]
188
189 # Enable libevent task queues on platforms that support it.
190 if (is_win || is_mac || is_ios) {
187 # If not libevent, fall back to the other task queues. 191 # If not libevent, fall back to the other task queues.
188 if (is_mac || is_ios) { 192 if (is_mac || is_ios) {
189 sources += [ 193 sources += [
190 "task_queue_gcd.cc", 194 "task_queue_gcd.cc",
191 "task_queue_posix.cc", 195 "task_queue_posix.cc",
192 ] 196 ]
193 } 197 }
194 if (is_win) { 198 if (is_win) {
195 sources += [ "task_queue_win.cc" ] 199 sources += [ "task_queue_win.cc" ]
196 } 200 }
201 } else {
202 defines += [ "WEBRTC_BUILD_LIBEVENT" ]
phoglund 2016/05/23 08:23:32 Please move this back where it was; we need GN and
tommi 2016/05/23 15:37:19 Done.
203 deps += [ "//base/third_party/libevent" ]
phoglund 2016/05/23 08:23:32 This no longer respects rtc_build_libevent which m
204 sources += [
205 "task_queue_libevent.cc",
206 "task_queue_posix.cc",
207 ]
197 } 208 }
198 } 209 }
199 210
200 static_library("rtc_base") { 211 static_library("rtc_base") {
201 cflags = [] 212 cflags = []
202 cflags_cc = [] 213 cflags_cc = []
203 libs = [] 214 libs = []
204 deps = [ 215 deps = [
205 "..:webrtc_common", 216 "..:webrtc_common",
206 ] 217 ]
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 defines += [ "timezone=_timezone" ] 622 defines += [ "timezone=_timezone" ]
612 sources -= [ "ifaddrs_converter.cc" ] 623 sources -= [ "ifaddrs_converter.cc" ]
613 } 624 }
614 } 625 }
615 626
616 source_set("gtest_prod") { 627 source_set("gtest_prod") {
617 sources = [ 628 sources = [
618 "gtest_prod_util.h", 629 "gtest_prod_util.h",
619 ] 630 ]
620 } 631 }
OLDNEW
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/base/base.gyp » ('j') | webrtc/build/webrtc.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698