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

Side by Side Diff: net/third_party/nss/ssl/BUILD.gn

Issue 285293009: net: Unbreak component build on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« 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) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 config("ssl_config") { 5 config("ssl_config") {
6 include_dirs = [ "." ] 6 include_dirs = [ "." ]
7 7
8 if (is_mac || is_win) { 8 if (is_mac || is_win) {
9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ] 9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ]
10 } 10 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 if (is_win) { 72 if (is_win) {
73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type' . 73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type' .
74 74
75 sources -= [ 75 sources -= [
76 "unix_err.c", 76 "unix_err.c",
77 "unix_err.h", 77 "unix_err.h",
78 ] 78 ]
79 sources += [ "exports_win.def" ] 79 sources += [ "exports_win.def" ]
80 } else if (is_linux) { 80 } else if (is_linux) {
81 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] 81 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
brettw 2014/05/16 17:01:57 To match the GYP behavior, we should also change t
tfarina 2014/05/16 17:35:17 Done.
82 libs = [ "dl" ] 82 libs = [ "dl" ]
83 83
84 include_dirs = [ "bodge" ] 84 include_dirs = [ "bodge" ]
85 85
86 # Must be after ssl_config since we want our SSL headers to take 86 # Must be after ssl_config since we want our SSL headers to take
87 # precedence. 87 # precedence.
88 direct_dependent_configs += [ 88 direct_dependent_configs += [
89 "//third_party/nss:system_nss_no_ssl_config" 89 "//third_party/nss:system_nss_no_ssl_config"
90 ] 90 ]
91 } else if (is_mac) { 91 } else if (is_mac) {
(...skipping 19 matching lines...) Expand all
111 sources -= [ 111 sources -= [
112 "bodge/secitem_array.c", 112 "bodge/secitem_array.c",
113 ] 113 ]
114 deps = [ 114 deps = [
115 "//third_party/nss:nspr", 115 "//third_party/nss:nspr",
116 "//third_party/nss:nss", 116 "//third_party/nss:nss",
117 ] 117 ]
118 forward_dependent_configs_from = deps 118 forward_dependent_configs_from = deps
119 } 119 }
120 120
121 if (!is_win && component_mode == "shared_library") {
122 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
123 }
124
125 if (is_clang) { 121 if (is_clang) {
126 cflags += [ 122 cflags += [
127 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the 123 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
128 # system's cert.h because cert.h isn't in chromium's repo. 124 # system's cert.h because cert.h isn't in chromium's repo.
129 "-Wno-incompatible-pointer-types", 125 "-Wno-incompatible-pointer-types",
130 126
131 # There is a broken header guard in /usr/include/nss/secmod.h: 127 # There is a broken header guard in /usr/include/nss/secmod.h:
132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 128 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
133 "-Wno-header-guard", 129 "-Wno-header-guard",
134 ] 130 ]
135 } 131 }
136 132
137 if (is_debug) { 133 if (is_debug) {
138 defines += [ "DEBUG" ] 134 defines += [ "DEBUG" ]
139 } 135 }
140 } 136 }
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