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

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

Issue 3008103002: Revert of Decoupling rtc_base from Obj-C code (Closed)
Patch Set: 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 ] 422 ]
423 } else { 423 } else {
424 include_dirs = [ "$rtc_jsoncpp_root" ] 424 include_dirs = [ "$rtc_jsoncpp_root" ]
425 425
426 # When defined changes the include path for json.h to where it is 426 # When defined changes the include path for json.h to where it is
427 # expected to be when building json outside of the standalone build. 427 # expected to be when building json outside of the standalone build.
428 defines += [ "WEBRTC_EXTERNAL_JSON" ] 428 defines += [ "WEBRTC_EXTERNAL_JSON" ]
429 } 429 }
430 } 430 }
431 431
432 rtc_source_set("rtc_base") { 432 rtc_static_library("rtc_base") {
433 public_deps = [
434 ":rtc_base_generic",
435 ]
436 if (is_ios || is_mac) {
437 public_deps += [ ":rtc_base_objc" ]
438 }
439 }
440
441 if (is_ios || is_mac) {
442 rtc_source_set("rtc_base_objc") {
443 sources = [
444 "thread_darwin.mm",
445 ]
446 deps = [
447 ":rtc_base_generic",
448 ]
449 visibility = [ ":rtc_base" ]
450 }
451 }
452
453 rtc_source_set("rtc_base_generic") {
454 cflags = [] 433 cflags = []
455 cflags_cc = [] 434 cflags_cc = []
456 libs = [] 435 libs = []
457 defines = [] 436 defines = []
458 deps = [ 437 deps = [
459 "..:webrtc_common", 438 "..:webrtc_common",
460 ] 439 ]
461 public_deps = [ 440 public_deps = [
462 ":rtc_base_approved", 441 ":rtc_base_approved",
463 ] 442 ]
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 "sslidentity.cc", 531 "sslidentity.cc",
553 "sslidentity.h", 532 "sslidentity.h",
554 "sslstreamadapter.cc", 533 "sslstreamadapter.cc",
555 "sslstreamadapter.h", 534 "sslstreamadapter.h",
556 "stream.cc", 535 "stream.cc",
557 "stream.h", 536 "stream.h",
558 "thread.cc", 537 "thread.cc",
559 "thread.h", 538 "thread.h",
560 ] 539 ]
561 540
562 visibility = [
563 ":rtc_base",
564 ":rtc_base_objc",
565 ]
566
567 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default 541 # TODO(henrike): issue 3307, make rtc_base build with the Chromium default
568 # compiler settings. 542 # compiler settings.
569 suppressed_configs += [ "//build/config/compiler:chromium_code" ] 543 suppressed_configs += [ "//build/config/compiler:chromium_code" ]
570 configs += [ "//build/config/compiler:no_chromium_code" ] 544 configs += [ "//build/config/compiler:no_chromium_code" ]
571 if (!is_win) { 545 if (!is_win) {
572 cflags += [ "-Wno-uninitialized" ] 546 cflags += [ "-Wno-uninitialized" ]
573 } 547 }
574 548
575 if (build_with_chromium) { 549 if (build_with_chromium) {
576 if (is_win) { 550 if (is_win) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 "ifaddrs-android.h", 590 "ifaddrs-android.h",
617 ] 591 ]
618 592
619 libs += [ 593 libs += [
620 "log", 594 "log",
621 "GLESv2", 595 "GLESv2",
622 ] 596 ]
623 } 597 }
624 598
625 if (is_ios || is_mac) { 599 if (is_ios || is_mac) {
626 sources += [ "macifaddrs_converter.cc" ] 600 sources += [
601 "macifaddrs_converter.cc",
602 "thread_darwin.mm",
603 ]
627 } 604 }
628 605
629 if (use_x11) { 606 if (use_x11) {
630 libs += [ 607 libs += [
631 "dl", 608 "dl",
632 "rt", 609 "rt",
633 "Xext", 610 "Xext",
634 "X11", 611 "X11",
635 "Xcomposite", 612 "Xcomposite",
636 "Xrender", 613 "Xrender",
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 "java/src/org/webrtc/ContextUtils.java", 1074 "java/src/org/webrtc/ContextUtils.java",
1098 "java/src/org/webrtc/Logging.java", 1075 "java/src/org/webrtc/Logging.java",
1099 "java/src/org/webrtc/Size.java", 1076 "java/src/org/webrtc/Size.java",
1100 "java/src/org/webrtc/ThreadUtils.java", 1077 "java/src/org/webrtc/ThreadUtils.java",
1101 ] 1078 ]
1102 1079
1103 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148 1080 # TODO(sakal): Fix build hooks crbug.com/webrtc/8148
1104 no_build_hooks = true 1081 no_build_hooks = true
1105 } 1082 }
1106 } 1083 }
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