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

Side by Side Diff: crypto/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 | « courgette/BUILD.gn ('k') | extensions/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 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 component("crypto") { 8 component("crypto") {
9 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. 9 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto.
10 sources = [ 10 sources = [
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 "third_party/nss/chromium-blapi.h", 86 "third_party/nss/chromium-blapi.h",
87 "third_party/nss/chromium-blapit.h", 87 "third_party/nss/chromium-blapit.h",
88 "third_party/nss/chromium-nss.h", 88 "third_party/nss/chromium-nss.h",
89 "third_party/nss/chromium-sha256.h", 89 "third_party/nss/chromium-sha256.h",
90 "third_party/nss/pk11akey.cc", 90 "third_party/nss/pk11akey.cc",
91 "third_party/nss/rsawrapr.c", 91 "third_party/nss/rsawrapr.c",
92 "third_party/nss/secsign.cc", 92 "third_party/nss/secsign.cc",
93 "third_party/nss/sha512.cc", 93 "third_party/nss/sha512.cc",
94 ] 94 ]
95 95
96 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
97 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
98
96 deps = [ 99 deps = [
97 ":platform", 100 ":platform",
98 "//base", 101 "//base",
99 "//base/third_party/dynamic_annotations", 102 "//base/third_party/dynamic_annotations",
100 ] 103 ]
101 104
102 if (!is_mac && !is_ios) { 105 if (!is_mac && !is_ios) {
103 sources -= [ 106 sources -= [
104 "apple_keychain.h", 107 "apple_keychain.h",
105 "mock_apple_keychain.cc", 108 "mock_apple_keychain.cc",
(...skipping 13 matching lines...) Expand all
119 sources -= [ 122 sources -= [
120 "capi_util.cc", 123 "capi_util.cc",
121 "capi_util.h", 124 "capi_util.h",
122 ] 125 ]
123 } 126 }
124 127
125 if (is_android) { 128 if (is_android) {
126 deps += [ "//third_party/android_tools:cpu_features" ] 129 deps += [ "//third_party/android_tools:cpu_features" ]
127 } 130 }
128 131
129 if (is_win) {
130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
131 cflags = [ "/wd4267" ]
132 }
133
134 if (use_openssl) { 132 if (use_openssl) {
135 # Remove NSS files when using OpenSSL 133 # Remove NSS files when using OpenSSL
136 sources -= [ 134 sources -= [
137 "ec_private_key_nss.cc", 135 "ec_private_key_nss.cc",
138 "ec_signature_creator_nss.cc", 136 "ec_signature_creator_nss.cc",
139 "encryptor_nss.cc", 137 "encryptor_nss.cc",
140 "hmac_nss.cc", 138 "hmac_nss.cc",
141 "nss_util.cc", 139 "nss_util.cc",
142 "nss_util.h", 140 "nss_util.h",
143 "nss_util_internal.h", 141 "nss_util_internal.h",
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 ] 314 ]
317 } else { 315 } else {
318 # Non-Linux platforms use the hermetic NSS from the tree. 316 # Non-Linux platforms use the hermetic NSS from the tree.
319 deps += [ 317 deps += [
320 "//third_party/nss:nspr", 318 "//third_party/nss:nspr",
321 "//third_party/nss:nss", 319 "//third_party/nss:nss",
322 ] 320 ]
323 } 321 }
324 } 322 }
325 } 323 }
OLDNEW
« no previous file with comments | « courgette/BUILD.gn ('k') | extensions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698