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

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

Issue 929793006: Update existing uses of /wd4267 to use the GN config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x64
Patch Set: Created 5 years, 10 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 | « net/BUILD.gn ('k') | pdf/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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 defines = [ 63 defines = [
64 "NO_PKCS11_BYPASS", 64 "NO_PKCS11_BYPASS",
65 "NSS_ENABLE_ECC", 65 "NSS_ENABLE_ECC",
66 "USE_UTIL_DIRECTLY", 66 "USE_UTIL_DIRECTLY",
67 ] 67 ]
68 68
69 configs -= [ "//build/config/compiler:chromium_code" ] 69 configs -= [ "//build/config/compiler:chromium_code" ]
70 configs += [ "//build/config/compiler:no_chromium_code" ] 70 configs += [ "//build/config/compiler:no_chromium_code" ]
71 71
72 if (is_win) { 72 if (is_win) {
73 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type' .
74
75 sources -= [ 73 sources -= [
76 "unix_err.c", 74 "unix_err.c",
77 "unix_err.h", 75 "unix_err.h",
78 ] 76 ]
79 if (component_mode == "shared_library") { 77 if (component_mode == "shared_library") {
80 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ] 78 ldflags = [ "/DEF:" + rebase_path("exports_win.def", root_build_dir) ]
81 } 79 }
82 } else if (is_linux) { 80 } else if (is_linux) {
83 if (component_mode == "shared_library") { 81 if (component_mode == "shared_library") {
84 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] 82 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 public_deps = [ 118 public_deps = [
121 "//third_party/nss:nspr", 119 "//third_party/nss:nspr",
122 "//third_party/nss:nss", 120 "//third_party/nss:nss",
123 ] 121 ]
124 } 122 }
125 123
126 if (is_debug) { 124 if (is_debug) {
127 defines += [ "DEBUG" ] 125 defines += [ "DEBUG" ]
128 } 126 }
129 } 127 }
OLDNEW
« no previous file with comments | « net/BUILD.gn ('k') | pdf/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698