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

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

Issue 3012823002: Reland of "Decoupling rtc_base from Obj-C code" (Closed)
Patch Set: Switching rtc_base_generic to be a static_library again 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 | no next file » | 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 = [
kjellander_webrtc 2017/09/06 17:59:36 So the generic target is made to avoid the cyclic
432 ":rtc_base_generic",
433 ]
434 if (is_ios || is_mac) {
435 public_deps += [ ":rtc_base_objc" ]
436 }
437 }
438
439 if (is_ios || is_mac) {
440 rtc_source_set("rtc_base_objc") {
441 sources = [
442 "thread_darwin.mm",
443 ]
444 deps = [
445 ":rtc_base_generic",
446 ]
447 visibility = [ ":rtc_base" ]
448 }
449 }
450
451 rtc_static_library("rtc_base_generic") {
431 cflags = [] 452 cflags = []
432 cflags_cc = [] 453 cflags_cc = []
433 libs = [] 454 libs = []
434 defines = [] 455 defines = []
435 deps = [ 456 deps = [
436 "..:webrtc_common", 457 "..:webrtc_common",
437 "../api:optional", 458 "../api:optional",
438 ] 459 ]
439 public_deps = [ 460 public_deps = [
440 ":rtc_base_approved", 461 ":rtc_base_approved",
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 "sslidentity.cc", 551 "sslidentity.cc",
531 "sslidentity.h", 552 "sslidentity.h",
532 "sslstreamadapter.cc", 553 "sslstreamadapter.cc",
533 "sslstreamadapter.h", 554 "sslstreamadapter.h",
534 "stream.cc", 555 "stream.cc",
535 "stream.h", 556 "stream.h",
536 "thread.cc", 557 "thread.cc",
537 "thread.h", 558 "thread.h",
538 ] 559 ]
539 560
561 visibility = [
562 ":rtc_base",
563 ":rtc_base_objc",
564 ]
565
540 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default 566 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default
541 # compiler settings. 567 # compiler settings.
542 suppressed_configs += [ "//build/config/compiler:chromium_code" ] 568 suppressed_configs += [ "//build/config/compiler:chromium_code" ]
543 configs += [ "//build/config/compiler:no_chromium_code" ] 569 configs += [ "//build/config/compiler:no_chromium_code" ]
544 if (!is_win) { 570 if (!is_win) {
545 cflags += [ "-Wno-uninitialized" ] 571 cflags += [ "-Wno-uninitialized" ]
546 } 572 }
547 573
548 if (build_with_chromium) { 574 if (build_with_chromium) {
549 if (is_win) { 575 if (is_win) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 "ifaddrs-android.h", 615 "ifaddrs-android.h",
590 ] 616 ]
591 617
592 libs += [ 618 libs += [
593 "log", 619 "log",
594 "GLESv2", 620 "GLESv2",
595 ] 621 ]
596 } 622 }
597 623
598 if (is_ios || is_mac) { 624 if (is_ios || is_mac) {
599 sources += [ 625 sources += [ "macifaddrs_converter.cc" ]
600 "macifaddrs_converter.cc",
601 "thread_darwin.mm",
602 ]
603 } 626 }
604 627
605 if (use_x11) { 628 if (use_x11) {
606 libs += [ 629 libs += [
607 "dl", 630 "dl",
608 "rt", 631 "rt",
609 "Xext", 632 "Xext",
610 "X11", 633 "X11",
611 "Xcomposite", 634 "Xcomposite",
612 "Xrender", 635 "Xrender",
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 "java/src/org/webrtc/ContextUtils.java", 1096 "java/src/org/webrtc/ContextUtils.java",
1074 "java/src/org/webrtc/Logging.java", 1097 "java/src/org/webrtc/Logging.java",
1075 "java/src/org/webrtc/Size.java", 1098 "java/src/org/webrtc/Size.java",
1076 "java/src/org/webrtc/ThreadUtils.java", 1099 "java/src/org/webrtc/ThreadUtils.java",
1077 ] 1100 ]
1078 1101
1079 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 1102 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148
1080 no_build_hooks = true 1103 no_build_hooks = true
1081 } 1104 }
1082 } 1105 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698