Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'conditions': [ | 7 'conditions': [ |
| 8 ['OS=="ios"', { | 8 ['OS=="ios"', { |
| 9 'exclude_nss_root_certs%': 0, | 9 'exclude_nss_root_certs%': 0, |
| 10 'exclude_nss_libpkix%': 0, | 10 'exclude_nss_libpkix%': 0, |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 'NO_NSPR_10_SUPPORT', | 235 'NO_NSPR_10_SUPPORT', |
| 236 ], | 236 ], |
| 237 'include_dirs': [ | 237 'include_dirs': [ |
| 238 'nspr/pr/include', | 238 'nspr/pr/include', |
| 239 'nspr/lib/ds', | 239 'nspr/lib/ds', |
| 240 'nspr/lib/libc/include', | 240 'nspr/lib/libc/include', |
| 241 ], | 241 ], |
| 242 }, | 242 }, |
| 243 # TODO(wtc): suppress C4244 and C4554 in prdtoa.c. | 243 # TODO(wtc): suppress C4244 and C4554 in prdtoa.c. |
| 244 'msvs_disabled_warnings': [4018, 4244, 4554, 4267,], | 244 'msvs_disabled_warnings': [4018, 4244, 4554, 4267,], |
| 245 'variables': { | |
| 246 'clang_warning_flags': [ | |
| 247 # nspr passes "const char*" through "void*". | |
| 248 '-Wno-incompatible-pointer-types', | |
| 249 # nspr passes "int*" through "unsigned int*". | |
| 250 '-Wno-pointer-sign', | |
|
wtc
2014/08/04 22:51:48
I'd be interested in fixing these warnings. I'll t
| |
| 251 ], | |
| 252 }, | |
| 245 'conditions': [ | 253 'conditions': [ |
| 246 ['OS=="mac" or OS=="ios"', { | 254 ['OS=="mac" or OS=="ios"', { |
| 247 'defines': [ | 255 'defines': [ |
| 248 'XP_UNIX', | 256 'XP_UNIX', |
| 249 'DARWIN', | 257 'DARWIN', |
| 250 'XP_MACOSX', | 258 'XP_MACOSX', |
| 251 '_PR_PTHREADS', | 259 '_PR_PTHREADS', |
| 252 'HAVE_BSD_FLOCK', | 260 'HAVE_BSD_FLOCK', |
| 253 'HAVE_CRT_EXTERNS_H', | 261 'HAVE_CRT_EXTERNS_H', |
| 254 'HAVE_DLADDR', | 262 'HAVE_DLADDR', |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 319 'NSPR_STATIC', | 327 'NSPR_STATIC', |
| 320 ], | 328 ], |
| 321 }, | 329 }, |
| 322 }], | 330 }], |
| 323 ['clang==1', { | 331 ['clang==1', { |
| 324 'xcode_settings': { | 332 'xcode_settings': { |
| 325 'WARNING_CFLAGS': [ | 333 'WARNING_CFLAGS': [ |
| 326 # nspr uses a bunch of deprecated functions (NSLinkModule etc) in | 334 # nspr uses a bunch of deprecated functions (NSLinkModule etc) in |
| 327 # prlink.c on mac. | 335 # prlink.c on mac. |
| 328 '-Wno-deprecated-declarations', | 336 '-Wno-deprecated-declarations', |
| 329 # nspr passes "const char*" through "void*". | |
| 330 '-Wno-incompatible-pointer-types', | |
| 331 # nspr passes "int*" through "unsigned int*". | |
| 332 '-Wno-pointer-sign', | |
| 333 ], | 337 ], |
| 334 }, | 338 }, |
| 335 'cflags': [ | |
| 336 '-Wno-incompatible-pointer-types', | |
| 337 '-Wno-pointer-sign', | |
| 338 ], | |
| 339 }], | 339 }], |
| 340 ], | 340 ], |
| 341 }, | 341 }, |
| 342 { | 342 { |
| 343 'target_name': 'nss', | 343 'target_name': 'nss', |
| 344 'product_name': 'crnss', | 344 'product_name': 'crnss', |
| 345 'type': '<(component)', | 345 'type': '<(component)', |
| 346 'dependencies': [ | 346 'dependencies': [ |
| 347 'nss_static', | 347 'nss_static', |
| 348 ], | 348 ], |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1049 'nss/lib/nss', | 1049 'nss/lib/nss', |
| 1050 'nss/lib/pk11wrap', | 1050 'nss/lib/pk11wrap', |
| 1051 'nss/lib/pkcs7', | 1051 'nss/lib/pkcs7', |
| 1052 'nss/lib/pki', | 1052 'nss/lib/pki', |
| 1053 'nss/lib/smime', | 1053 'nss/lib/smime', |
| 1054 'nss/lib/softoken', | 1054 'nss/lib/softoken', |
| 1055 'nss/lib/util', | 1055 'nss/lib/util', |
| 1056 ], | 1056 ], |
| 1057 }, | 1057 }, |
| 1058 'msvs_disabled_warnings': [4018, 4101, 4267, ], | 1058 'msvs_disabled_warnings': [4018, 4101, 4267, ], |
| 1059 'variables': { | |
| 1060 'clang_warning_flags': [ | |
| 1061 # nss doesn't explicitly cast between different enum types. | |
| 1062 '-Wno-conversion', | |
| 1063 # nss passes "const char*" through "void*". | |
| 1064 '-Wno-incompatible-pointer-types', | |
| 1065 # nss prefers `a && b || c` over `(a && b) || c`. | |
| 1066 '-Wno-logical-op-parentheses', | |
| 1067 # nss doesn't use exhaustive switches on enums | |
| 1068 '-Wno-switch', | |
| 1069 # nss has some `unsigned < 0` checks. | |
| 1070 '-Wno-tautological-compare', | |
|
wtc
2014/08/04 22:51:48
Most of these should be fixed. I'll try to take a
| |
| 1071 ], | |
| 1072 }, | |
| 1059 'conditions': [ | 1073 'conditions': [ |
| 1060 ['exclude_nss_root_certs==1', { | 1074 ['exclude_nss_root_certs==1', { |
| 1061 'defines': [ | 1075 'defines': [ |
| 1062 'NSS_DISABLE_ROOT_CERTS', | 1076 'NSS_DISABLE_ROOT_CERTS', |
| 1063 ], | 1077 ], |
| 1064 }], | 1078 }], |
| 1065 ['exclude_nss_libpkix==1', { | 1079 ['exclude_nss_libpkix==1', { |
| 1066 'defines': [ | 1080 'defines': [ |
| 1067 'NSS_DISABLE_LIBPKIX', | 1081 'NSS_DISABLE_LIBPKIX', |
| 1068 ], | 1082 ], |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1205 'sources!': [ | 1219 'sources!': [ |
| 1206 'nss/lib/freebl/intel-aes-x64-masm.asm', | 1220 'nss/lib/freebl/intel-aes-x64-masm.asm', |
| 1207 'nss/lib/freebl/intel-aes-x86-masm.asm', | 1221 'nss/lib/freebl/intel-aes-x86-masm.asm', |
| 1208 'nss/lib/freebl/intel-gcm-wrap.c', | 1222 'nss/lib/freebl/intel-gcm-wrap.c', |
| 1209 'nss/lib/freebl/intel-gcm-x64-masm.asm', | 1223 'nss/lib/freebl/intel-gcm-x64-masm.asm', |
| 1210 'nss/lib/freebl/intel-gcm-x86-masm.asm', | 1224 'nss/lib/freebl/intel-gcm-x86-masm.asm', |
| 1211 # mpi_x86_asm.c contains MSVC inline assembly code. | 1225 # mpi_x86_asm.c contains MSVC inline assembly code. |
| 1212 'nss/lib/freebl/mpi/mpi_x86_asm.c', | 1226 'nss/lib/freebl/mpi/mpi_x86_asm.c', |
| 1213 ], | 1227 ], |
| 1214 }], | 1228 }], |
| 1215 ['clang==1', { | |
| 1216 'xcode_settings': { | |
| 1217 'WARNING_CFLAGS': [ | |
| 1218 # nss doesn't explicitly cast between different enum types. | |
| 1219 '-Wno-conversion', | |
| 1220 # nss passes "const char*" through "void*". | |
| 1221 '-Wno-incompatible-pointer-types', | |
| 1222 # nss prefers `a && b || c` over `(a && b) || c`. | |
| 1223 '-Wno-logical-op-parentheses', | |
| 1224 # nss doesn't use exhaustive switches on enums | |
| 1225 '-Wno-switch', | |
| 1226 # nss has some `unsigned < 0` checks. | |
| 1227 '-Wno-tautological-compare', | |
| 1228 ], | |
| 1229 }, | |
| 1230 'cflags': [ | |
| 1231 '-Wno-conversion', | |
| 1232 '-Wno-incompatible-pointer-types', | |
| 1233 '-Wno-logical-op-parentheses', | |
| 1234 '-Wno-switch', | |
| 1235 '-Wno-tautological-compare', | |
| 1236 ], | |
| 1237 }], | |
| 1238 ], | 1229 ], |
| 1239 }, | 1230 }, |
| 1240 ], | 1231 ], |
| 1241 } | 1232 } |
| OLD | NEW |