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

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

Issue 3012823002: Reland of "Decoupling rtc_base from Obj-C code" (Closed)
Patch Set: Fixing windows trybots 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 | « no previous file | webrtc/rtc_base/noop.cc » ('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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 } else { 421 } else {
422 include_dirs = [ "$rtc_jsoncpp_root" ] 422 include_dirs = [ "$rtc_jsoncpp_root" ]
423 423
424 # When defined changes the include path for json.h to where it is 424 # When defined changes the include path for json.h to where it is
425 # expected to be when building json outside of the standalone build. 425 # expected to be when building json outside of the standalone build.
426 defines += [ "WEBRTC_EXTERNAL_JSON" ] 426 defines += [ "WEBRTC_EXTERNAL_JSON" ]
427 } 427 }
428 } 428 }
429 429
430 rtc_static_library("rtc_base") { 430 rtc_static_library("rtc_base") {
431 public_deps = [
432 ":rtc_base_generic",
433 ]
434 if (is_win) {
435 sources = [
436 "noop.cc",
437 ]
438 }
439 if (is_ios || is_mac) {
440 sources = [
441 "noop.mm",
442 ]
443 public_deps += [ ":rtc_base_objc" ]
444 }
445 }
446
447 if (is_ios || is_mac) {
448 rtc_source_set("rtc_base_objc") {
449 sources = [
450 "thread_darwin.mm",
451 ]
452 deps = [
453 ":rtc_base_generic",
454 ]
455 visibility = [ ":rtc_base" ]
456 }
457 }
458
459 rtc_static_library("rtc_base_generic") {
431 cflags = [] 460 cflags = []
432 cflags_cc = [] 461 cflags_cc = []
433 libs = [] 462 libs = []
434 defines = [] 463 defines = []
435 deps = [ 464 deps = [
436 "..:webrtc_common", 465 "..:webrtc_common",
437 "../api:optional", 466 "../api:optional",
438 ] 467 ]
439 public_deps = [ 468 public_deps = [
440 ":rtc_base_approved", 469 ":rtc_base_approved",
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 "sslidentity.cc", 559 "sslidentity.cc",
531 "sslidentity.h", 560 "sslidentity.h",
532 "sslstreamadapter.cc", 561 "sslstreamadapter.cc",
533 "sslstreamadapter.h", 562 "sslstreamadapter.h",
534 "stream.cc", 563 "stream.cc",
535 "stream.h", 564 "stream.h",
536 "thread.cc", 565 "thread.cc",
537 "thread.h", 566 "thread.h",
538 ] 567 ]
539 568
569 visibility = [
570 ":rtc_base",
571 ":rtc_base_objc",
572 ]
573
540 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default 574 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default
541 # compiler settings. 575 # compiler settings.
542 suppressed_configs += [ "//build/config/compiler:chromium_code" ] 576 suppressed_configs += [ "//build/config/compiler:chromium_code" ]
543 configs += [ "//build/config/compiler:no_chromium_code" ] 577 configs += [ "//build/config/compiler:no_chromium_code" ]
544 if (!is_win) { 578 if (!is_win) {
545 cflags += [ "-Wno-uninitialized" ] 579 cflags += [ "-Wno-uninitialized" ]
546 } 580 }
547 581
548 if (build_with_chromium) { 582 if (build_with_chromium) {
549 if (is_win) { 583 if (is_win) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 "ifaddrs-android.h", 623 "ifaddrs-android.h",
590 ] 624 ]
591 625
592 libs += [ 626 libs += [
593 "log", 627 "log",
594 "GLESv2", 628 "GLESv2",
595 ] 629 ]
596 } 630 }
597 631
598 if (is_ios || is_mac) { 632 if (is_ios || is_mac) {
599 sources += [ 633 sources += [ "macifaddrs_converter.cc" ]
600 "macifaddrs_converter.cc",
601 "thread_darwin.mm",
602 ]
603 } 634 }
604 635
605 if (use_x11) { 636 if (use_x11) {
606 libs += [ 637 libs += [
607 "dl", 638 "dl",
608 "rt", 639 "rt",
609 "Xext", 640 "Xext",
610 "X11", 641 "X11",
611 "Xcomposite", 642 "Xcomposite",
612 "Xrender", 643 "Xrender",
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 "java/src/org/webrtc/ContextUtils.java", 1104 "java/src/org/webrtc/ContextUtils.java",
1074 "java/src/org/webrtc/Logging.java", 1105 "java/src/org/webrtc/Logging.java",
1075 "java/src/org/webrtc/Size.java", 1106 "java/src/org/webrtc/Size.java",
1076 "java/src/org/webrtc/ThreadUtils.java", 1107 "java/src/org/webrtc/ThreadUtils.java",
1077 ] 1108 ]
1078 1109
1079 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 1110 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148
1080 no_build_hooks = true 1111 no_build_hooks = true
1081 } 1112 }
1082 } 1113 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/rtc_base/noop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698