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

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

Issue 3003643002: Allow external TaskQueue implementations on Linux (Closed)
Patch Set: Add rtc_task_queue_api target. Created 3 years, 3 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 | « webrtc/pc/BUILD.gn ('k') | webrtc/rtc_base/task_queue.h » ('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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } 287 }
288 if (is_nacl) { 288 if (is_nacl) {
289 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] 289 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
290 } 290 }
291 } 291 }
292 292
293 config("enable_libevent_config") { 293 config("enable_libevent_config") {
294 defines = [ "WEBRTC_BUILD_LIBEVENT" ] 294 defines = [ "WEBRTC_BUILD_LIBEVENT" ]
295 } 295 }
296 296
297 rtc_static_library("rtc_task_queue") { 297 rtc_source_set("rtc_task_queue") {
298 public_deps = [ 298 public_deps = [
299 ":rtc_base_approved", 299 ":rtc_base_approved",
300 ":rtc_task_queue_api",
300 ] 301 ]
301 302
303 if (rtc_link_task_queue_impl) {
304 deps = [
305 ":rtc_task_queue_impl",
306 ]
307 }
308 }
kwiberg-webrtc 2017/08/23 13:23:26 I think it would be better to not have this target
309
310 rtc_source_set("rtc_task_queue_api") {
kwiberg-webrtc 2017/08/23 13:23:26 Note in a comment that anyone who uses this needs
302 if (build_with_chromium) { 311 if (build_with_chromium) {
303 sources = [ 312 sources = [
304 "../../webrtc_overrides/webrtc/rtc_base/task_queue.cc",
305 "../../webrtc_overrides/webrtc/rtc_base/task_queue.h", 313 "../../webrtc_overrides/webrtc/rtc_base/task_queue.h",
306 ] 314 ]
307 } else { 315 } else {
308 sources = [ 316 sources = [
309 "task_queue.h", 317 "task_queue.h",
310 "task_queue_posix.h",
311 ] 318 ]
319 }
320 deps = [
321 ":rtc_base_approved",
322 ]
323 }
324
325 rtc_source_set("rtc_task_queue_impl") {
kwiberg-webrtc 2017/08/23 13:23:26 Excellent with the _api and _impl targets. Things
326 deps = [
327 ":rtc_base_approved",
328 ":rtc_task_queue_api",
329 ]
330 if (build_with_chromium) {
331 sources = [
332 "../../webrtc_overrides/webrtc/rtc_base/task_queue.cc",
333 ]
334 } else {
312 if (rtc_build_libevent) { 335 if (rtc_build_libevent) {
313 deps = [ 336 deps += [ "//base/third_party/libevent" ]
314 "//base/third_party/libevent",
315 ]
316 } 337 }
317
318 if (rtc_enable_libevent) { 338 if (rtc_enable_libevent) {
319 sources += [ 339 sources = [
320 "task_queue_libevent.cc", 340 "task_queue_libevent.cc",
321 "task_queue_posix.cc", 341 "task_queue_posix.cc",
342 "task_queue_posix.h",
322 ] 343 ]
323 all_dependent_configs = [ ":enable_libevent_config" ] 344 all_dependent_configs = [ ":enable_libevent_config" ]
324 } else { 345 } else {
325 if (is_mac || is_ios) { 346 if (is_mac || is_ios) {
326 sources += [ 347 sources = [
327 "task_queue_gcd.cc", 348 "task_queue_gcd.cc",
328 "task_queue_posix.cc", 349 "task_queue_posix.cc",
329 ] 350 ]
330 } 351 }
331 if (is_win) { 352 if (is_win) {
332 sources += [ "task_queue_win.cc" ] 353 sources = [
354 "task_queue_win.cc",
355 ]
333 } 356 }
334 } 357 }
335 } 358 }
336 } 359 }
337 360
338 rtc_static_library("sequenced_task_checker") { 361 rtc_static_library("sequenced_task_checker") {
339 sources = [ 362 sources = [
340 "sequenced_task_checker.h", 363 "sequenced_task_checker.h",
341 "sequenced_task_checker_impl.cc", 364 "sequenced_task_checker_impl.cc",
342 "sequenced_task_checker_impl.h", 365 "sequenced_task_checker_impl.h",
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 if (is_android) { 1054 if (is_android) {
1032 android_library("base_java") { 1055 android_library("base_java") {
1033 java_files = [ 1056 java_files = [
1034 "java/src/org/webrtc/ContextUtils.java", 1057 "java/src/org/webrtc/ContextUtils.java",
1035 "java/src/org/webrtc/Logging.java", 1058 "java/src/org/webrtc/Logging.java",
1036 "java/src/org/webrtc/Size.java", 1059 "java/src/org/webrtc/Size.java",
1037 "java/src/org/webrtc/ThreadUtils.java", 1060 "java/src/org/webrtc/ThreadUtils.java",
1038 ] 1061 ]
1039 } 1062 }
1040 } 1063 }
OLDNEW
« no previous file with comments | « webrtc/pc/BUILD.gn ('k') | webrtc/rtc_base/task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698