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

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

Issue 264463002: GN build improvements. (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 | « net/BUILD.gn ('k') | third_party/expat/BUILD.gn » ('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) 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 (component_mode == "shared_library") { 121 if (!is_win && component_mode == "shared_library") {
122 # TODO(brettw) GCC_SYMBOLS_PRIVATE_EXTERN thing. 122 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
123 } 123 }
124 124
125 if (is_clang) { 125 if (is_clang) {
126 cflags += [ 126 cflags += [
127 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the 127 # 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. 128 # system's cert.h because cert.h isn't in chromium's repo.
129 "-Wno-incompatible-pointer-types", 129 "-Wno-incompatible-pointer-types",
130 130
131 # There is a broken header guard in /usr/include/nss/secmod.h: 131 # There is a broken header guard in /usr/include/nss/secmod.h:
132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
133 "-Wno-header-guard", 133 "-Wno-header-guard",
134 ] 134 ]
135 } 135 }
136 136
137 if (is_debug) { 137 if (is_debug) {
138 defines += [ "DEBUG" ] 138 defines += [ "DEBUG" ]
139 } 139 }
140 } 140 }
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | third_party/expat/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698