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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 ] | 391 ] |
392 } else { | 392 } else { |
393 include_dirs = [ "$rtc_jsoncpp_root" ] | 393 include_dirs = [ "$rtc_jsoncpp_root" ] |
394 | 394 |
395 # When defined changes the include path for json.h to where it is | 395 # When defined changes the include path for json.h to where it is |
396 # expected to be when building json outside of the standalone build. | 396 # expected to be when building json outside of the standalone build. |
397 defines += [ "WEBRTC_EXTERNAL_JSON" ] | 397 defines += [ "WEBRTC_EXTERNAL_JSON" ] |
398 } | 398 } |
399 } | 399 } |
400 | 400 |
| 401 # TODO(mbonadei): make this target available only if is_ios or is_mac |
| 402 # are true. |
| 403 rtc_static_library("rtc_base_apple") { |
| 404 sources = [ |
| 405 "applefilesystem.mm", |
| 406 "thread_darwin.mm", |
| 407 ] |
| 408 deps = [ |
| 409 ":rtc_base", |
| 410 ] |
| 411 } |
| 412 |
401 rtc_static_library("rtc_base") { | 413 rtc_static_library("rtc_base") { |
402 cflags = [] | 414 cflags = [] |
403 cflags_cc = [] | 415 cflags_cc = [] |
404 libs = [] | 416 libs = [] |
405 defines = [] | 417 defines = [] |
406 deps = [ | 418 deps = [ |
407 "..:webrtc_common", | 419 "..:webrtc_common", |
408 ] | 420 ] |
409 public_deps = [ | 421 public_deps = [ |
410 ":rtc_base_approved", | 422 ":rtc_base_approved", |
411 ] | 423 ] |
412 public_configs = [] | 424 public_configs = [] |
413 | 425 |
414 all_dependent_configs = [ ":rtc_base_all_dependent_config" ] | 426 all_dependent_configs = [ ":rtc_base_all_dependent_config" ] |
415 | 427 |
416 sources = [ | 428 sources = [ |
417 "applefilesystem.mm", | |
418 "asyncinvoker-inl.h", | 429 "asyncinvoker-inl.h", |
419 "asyncinvoker.cc", | 430 "asyncinvoker.cc", |
420 "asyncinvoker.h", | 431 "asyncinvoker.h", |
421 "asyncpacketsocket.cc", | 432 "asyncpacketsocket.cc", |
422 "asyncpacketsocket.h", | 433 "asyncpacketsocket.h", |
423 "asyncresolverinterface.cc", | 434 "asyncresolverinterface.cc", |
424 "asyncresolverinterface.h", | 435 "asyncresolverinterface.h", |
425 "asyncsocket.cc", | 436 "asyncsocket.cc", |
426 "asyncsocket.h", | 437 "asyncsocket.h", |
427 "asynctcpsocket.cc", | 438 "asynctcpsocket.cc", |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 "ifaddrs-android.h", | 571 "ifaddrs-android.h", |
561 ] | 572 ] |
562 | 573 |
563 libs += [ | 574 libs += [ |
564 "log", | 575 "log", |
565 "GLESv2", | 576 "GLESv2", |
566 ] | 577 ] |
567 } | 578 } |
568 | 579 |
569 if (is_ios || is_mac) { | 580 if (is_ios || is_mac) { |
570 sources += [ | 581 sources += [ "macifaddrs_converter.cc" ] |
571 "macifaddrs_converter.cc", | |
572 "thread_darwin.mm", | |
573 ] | |
574 } | 582 } |
575 | 583 |
576 if (use_x11) { | 584 if (use_x11) { |
577 libs += [ | 585 libs += [ |
578 "dl", | 586 "dl", |
579 "rt", | 587 "rt", |
580 "Xext", | 588 "Xext", |
581 "X11", | 589 "X11", |
582 "Xcomposite", | 590 "Xcomposite", |
583 "Xrender", | 591 "Xrender", |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 if (is_android) { | 1039 if (is_android) { |
1032 android_library("base_java") { | 1040 android_library("base_java") { |
1033 java_files = [ | 1041 java_files = [ |
1034 "java/src/org/webrtc/ContextUtils.java", | 1042 "java/src/org/webrtc/ContextUtils.java", |
1035 "java/src/org/webrtc/Logging.java", | 1043 "java/src/org/webrtc/Logging.java", |
1036 "java/src/org/webrtc/Size.java", | 1044 "java/src/org/webrtc/Size.java", |
1037 "java/src/org/webrtc/ThreadUtils.java", | 1045 "java/src/org/webrtc/ThreadUtils.java", |
1038 ] | 1046 ] |
1039 } | 1047 } |
1040 } | 1048 } |
OLD | NEW |