OLD | NEW |
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 Loading... |
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 } |
| 309 |
| 310 # WebRTC targets must not directly depend on rtc_task_queue_api or |
| 311 # rtc_task_queue_impl. Instead, depend on rtc_task_queue. |
| 312 # The build flag |rtc_link_task_queue_impl| decides if WebRTC targets will link |
| 313 # to the default implemenation in rtc_task_queue_impl or if an externally |
| 314 # provided implementation should be used. An external implementation should |
| 315 # depend on rtc_task_queue_api. |
| 316 rtc_source_set("rtc_task_queue_api") { |
302 if (build_with_chromium) { | 317 if (build_with_chromium) { |
303 sources = [ | 318 sources = [ |
304 "../../webrtc_overrides/webrtc/rtc_base/task_queue.cc", | |
305 "../../webrtc_overrides/webrtc/rtc_base/task_queue.h", | 319 "../../webrtc_overrides/webrtc/rtc_base/task_queue.h", |
306 ] | 320 ] |
307 } else { | 321 } else { |
308 sources = [ | 322 sources = [ |
309 "task_queue.h", | 323 "task_queue.h", |
310 "task_queue_posix.h", | |
311 ] | 324 ] |
| 325 } |
| 326 deps = [ |
| 327 ":rtc_base_approved", |
| 328 ] |
| 329 } |
| 330 |
| 331 rtc_source_set("rtc_task_queue_impl") { |
| 332 deps = [ |
| 333 ":rtc_base_approved", |
| 334 ":rtc_task_queue_api", |
| 335 ] |
| 336 if (build_with_chromium) { |
| 337 sources = [ |
| 338 "../../webrtc_overrides/webrtc/rtc_base/task_queue.cc", |
| 339 ] |
| 340 } else { |
312 if (rtc_build_libevent) { | 341 if (rtc_build_libevent) { |
313 deps = [ | 342 deps += [ "//base/third_party/libevent" ] |
314 "//base/third_party/libevent", | |
315 ] | |
316 } | 343 } |
317 | |
318 if (rtc_enable_libevent) { | 344 if (rtc_enable_libevent) { |
319 sources += [ | 345 sources = [ |
320 "task_queue_libevent.cc", | 346 "task_queue_libevent.cc", |
321 "task_queue_posix.cc", | 347 "task_queue_posix.cc", |
| 348 "task_queue_posix.h", |
322 ] | 349 ] |
323 all_dependent_configs = [ ":enable_libevent_config" ] | 350 all_dependent_configs = [ ":enable_libevent_config" ] |
324 } else { | 351 } else { |
325 if (is_mac || is_ios) { | 352 if (is_mac || is_ios) { |
326 sources += [ | 353 sources = [ |
327 "task_queue_gcd.cc", | 354 "task_queue_gcd.cc", |
328 "task_queue_posix.cc", | 355 "task_queue_posix.cc", |
329 ] | 356 ] |
330 } | 357 } |
331 if (is_win) { | 358 if (is_win) { |
332 sources += [ "task_queue_win.cc" ] | 359 sources = [ |
| 360 "task_queue_win.cc", |
| 361 ] |
333 } | 362 } |
334 } | 363 } |
335 } | 364 } |
336 } | 365 } |
337 | 366 |
338 rtc_static_library("sequenced_task_checker") { | 367 rtc_static_library("sequenced_task_checker") { |
339 sources = [ | 368 sources = [ |
340 "sequenced_task_checker.h", | 369 "sequenced_task_checker.h", |
341 "sequenced_task_checker_impl.cc", | 370 "sequenced_task_checker_impl.cc", |
342 "sequenced_task_checker_impl.h", | 371 "sequenced_task_checker_impl.h", |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 if (is_android) { | 1060 if (is_android) { |
1032 android_library("base_java") { | 1061 android_library("base_java") { |
1033 java_files = [ | 1062 java_files = [ |
1034 "java/src/org/webrtc/ContextUtils.java", | 1063 "java/src/org/webrtc/ContextUtils.java", |
1035 "java/src/org/webrtc/Logging.java", | 1064 "java/src/org/webrtc/Logging.java", |
1036 "java/src/org/webrtc/Size.java", | 1065 "java/src/org/webrtc/Size.java", |
1037 "java/src/org/webrtc/ThreadUtils.java", | 1066 "java/src/org/webrtc/ThreadUtils.java", |
1038 ] | 1067 ] |
1039 } | 1068 } |
1040 } | 1069 } |
OLD | NEW |