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

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

Issue 1351503004: Purge nss files and dependencies. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 "openssl.h", 466 "openssl.h",
484 "openssladapter.cc", 467 "openssladapter.cc",
485 "openssladapter.h", 468 "openssladapter.h",
486 "openssldigest.cc", 469 "openssldigest.cc",
487 "openssldigest.h", 470 "openssldigest.h",
488 "opensslidentity.cc", 471 "opensslidentity.cc",
489 "opensslidentity.h", 472 "opensslidentity.h",
490 "opensslstreamadapter.cc", 473 "opensslstreamadapter.cc",
491 "opensslstreamadapter.h", 474 "opensslstreamadapter.h",
492 ] 475 ]
493 } else {
494 public_configs += [ ":nss_config" ]
495 if (rtc_build_ssl) {
496 if (build_with_chromium) {
497 deps += [ "//crypto:platform" ]
498 } else {
499 deps += [ "//net/third_party/nss/ssl:libssl" ]
500 if (is_linux) {
501 deps += [ ":linux_system_ssl" ]
502 } else {
503 deps += [
504 "//third_party/nss:nspr",
505 "//third_party/nss:nss",
506 ]
507 }
508 }
509 } else {
510 configs += [ "external_ssl_library" ]
511 }
512 sources += [
513 "nssidentity.cc",
514 "nssidentity.h",
515 "nssstreamadapter.cc",
516 "nssstreamadapter.h",
517 ]
518 } 476 }
519 477
520 if (is_android) { 478 if (is_android) {
521 sources += [ 479 sources += [
522 "ifaddrs-android.cc", 480 "ifaddrs-android.cc",
523 "ifaddrs-android.h", 481 "ifaddrs-android.h",
524 ] 482 ]
525 483
526 libs += [ 484 libs += [
527 "log", 485 "log",
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 "linux.cc", 585 "linux.cc",
628 "linux.h", 586 "linux.h",
629 ] 587 ]
630 } 588 }
631 589
632 if (is_nacl) { 590 if (is_nacl) {
633 deps += [ "//native_client_sdk/src/libraries/nacl_io" ] 591 deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
634 defines += [ "timezone=_timezone" ] 592 defines += [ "timezone=_timezone" ]
635 } 593 }
636 } 594 }
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