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

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

Issue 1313233005: purge nss files and dependencies (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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 | « talk/media/sctp/sctpdataengine_unittest.cc ('k') | webrtc/base/base.gyp » ('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 21 matching lines...) Expand all
32 defines = [ "NO_MAIN_THREAD_WRAPPING" ] 32 defines = [ "NO_MAIN_THREAD_WRAPPING" ]
33 } 33 }
34 34
35 config("openssl_config") { 35 config("openssl_config") {
36 defines = [ 36 defines = [
37 "SSL_USE_OPENSSL", 37 "SSL_USE_OPENSSL",
38 "HAVE_OPENSSL_SSL_H", 38 "HAVE_OPENSSL_SSL_H",
39 ] 39 ]
40 } 40 }
41 41
42 config("nss_config") {
43 defines = [
44 "SSL_USE_NSS",
45 "HAVE_NSS_SSL_H",
46 "SSL_USE_NSS_RNG",
47 ]
48 }
49
50 config("ios_config") { 42 config("ios_config") {
51 libs = [ 43 libs = [
52 "CFNetwork.framework", 44 "CFNetwork.framework",
53 45
54 #"Foundation.framework", # Already included in //build/config:default_libs. 46 #"Foundation.framework", # Already included in //build/config:default_libs.
55 "Security.framework", 47 "Security.framework",
56 "SystemConfiguration.framework", 48 "SystemConfiguration.framework",
57 49
58 #"UIKit.framework", # Already included in //build/config:default_libs. 50 #"UIKit.framework", # Already included in //build/config:default_libs.
59 ] 51 ]
(...skipping 17 matching lines...) Expand all
77 } 69 }
78 70
79 if (is_linux && !build_with_chromium) { 71 if (is_linux && !build_with_chromium) {
80 # Provides the same functionality as the //crypto:platform target, which 72 # Provides the same functionality as the //crypto:platform target, which
81 # WebRTC cannot use as we don't sync src/crypto from Chromium. 73 # WebRTC cannot use as we don't sync src/crypto from Chromium.
82 group("linux_system_ssl") { 74 group("linux_system_ssl") {
83 if (use_openssl) { 75 if (use_openssl) {
84 deps = [ 76 deps = [
85 "//third_party/boringssl", 77 "//third_party/boringssl",
86 ] 78 ]
87 } else {
88 deps = [
89 "//net/third_party/nss/ssl:libssl",
90 ]
91
92 public_configs = [
93 "//net/third_party/nss/ssl:ssl_config",
94 "//third_party/nss:system_nss_no_ssl_config",
95 ]
96 } 79 }
97 } 80 }
98 } 81 }
99 82
100 if (rtc_build_ssl == 0) { 83 if (rtc_build_ssl == 0) {
101 config("external_ssl_library") { 84 config("external_ssl_library") {
102 assert(rtc_ssl_root != "", 85 assert(rtc_ssl_root != "",
103 "You must specify rtc_ssl_root when rtc_build_ssl==0.") 86 "You must specify rtc_ssl_root when rtc_build_ssl==0.")
104 include_dirs = [ rtc_ssl_root ] 87 include_dirs = [ rtc_ssl_root ]
105 } 88 }
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 "openssl.h", 473 "openssl.h",
491 "openssladapter.cc", 474 "openssladapter.cc",
492 "openssladapter.h", 475 "openssladapter.h",
493 "openssldigest.cc", 476 "openssldigest.cc",
494 "openssldigest.h", 477 "openssldigest.h",
495 "opensslidentity.cc", 478 "opensslidentity.cc",
496 "opensslidentity.h", 479 "opensslidentity.h",
497 "opensslstreamadapter.cc", 480 "opensslstreamadapter.cc",
498 "opensslstreamadapter.h", 481 "opensslstreamadapter.h",
499 ] 482 ]
500 } else {
501 public_configs += [ ":nss_config" ]
502 if (rtc_build_ssl) {
503 if (build_with_chromium) {
504 deps += [ "//crypto:platform" ]
505 } else {
506 deps += [ "//net/third_party/nss/ssl:libssl" ]
507 if (is_linux) {
508 deps += [ ":linux_system_ssl" ]
509 } else {
510 deps += [
511 "//third_party/nss:nspr",
512 "//third_party/nss:nss",
513 ]
514 }
515 }
516 } else {
517 configs += [ "external_ssl_library" ]
518 }
519 sources += [
520 "nssidentity.cc",
521 "nssidentity.h",
522 "nssstreamadapter.cc",
523 "nssstreamadapter.h",
524 ]
525 } 483 }
526 484
527 if (is_android) { 485 if (is_android) {
528 sources += [ 486 sources += [
529 "ifaddrs-android.cc", 487 "ifaddrs-android.cc",
530 "ifaddrs-android.h", 488 "ifaddrs-android.h",
531 ] 489 ]
532 490
533 libs += [ 491 libs += [
534 "log", 492 "log",
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 "linux.cc", 592 "linux.cc",
635 "linux.h", 593 "linux.h",
636 ] 594 ]
637 } 595 }
638 596
639 if (is_nacl) { 597 if (is_nacl) {
640 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] 598 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
641 defines += [ "timezone=_timezone" ] 599 defines += [ "timezone=_timezone" ]
642 } 600 }
643 } 601 }
OLDNEW
« no previous file with comments | « talk/media/sctp/sctpdataengine_unittest.cc ('k') | webrtc/base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698