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

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

Issue 582403002: GN build: Prescribe -Wno-header-guard for direct dependents of libssl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from brettw@. Created 6 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 | « 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 }
11
12 if (is_clang) {
13 cflags = [
14 # There is a broken header guard in /usr/include/nss/secmod.h:
15 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
16 "-Wno-header-guard",
17 ]
18 }
11 } 19 }
12 20
13 component("libssl") { 21 component("libssl") {
14 output_name = "crssl" 22 output_name = "crssl"
15 23
16 sources = [ 24 sources = [
17 "authcert.c", 25 "authcert.c",
18 "cmpcert.c", 26 "cmpcert.c",
19 "derive.c", 27 "derive.c",
20 "dtlscon.c", 28 "dtlscon.c",
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 "//third_party/nss:nss", 127 "//third_party/nss:nss",
120 ] 128 ]
121 forward_dependent_configs_from = deps 129 forward_dependent_configs_from = deps
122 } 130 }
123 131
124 if (is_clang) { 132 if (is_clang) {
125 cflags += [ 133 cflags += [
126 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the 134 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
127 # system's cert.h because cert.h isn't in chromium's repo. 135 # system's cert.h because cert.h isn't in chromium's repo.
128 "-Wno-incompatible-pointer-types", 136 "-Wno-incompatible-pointer-types",
129
130 # There is a broken header guard in /usr/include/nss/secmod.h:
131 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
132 "-Wno-header-guard",
133 ] 137 ]
134 } 138 }
135 139
136 if (is_debug) { 140 if (is_debug) {
137 defines += [ "DEBUG" ] 141 defines += [ "DEBUG" ]
138 } 142 }
139 } 143 }
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