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

Side by Side Diff: nss.gyp

Issue 493883002: Attempt to let nss's SSSE3 files build with clang-cl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: more defines Created 6 years, 4 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 | « 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) 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 'include_dirs': [ 447 'include_dirs': [
448 'nss/lib/ckfw', 448 'nss/lib/ckfw',
449 ], 449 ],
450 'direct_dependent_settings': { 450 'direct_dependent_settings': {
451 'include_dirs': [ 451 'include_dirs': [
452 'nss/lib/ckfw/builtins', 452 'nss/lib/ckfw/builtins',
453 ], 453 ],
454 }, 454 },
455 }, 455 },
456 { 456 {
457 # This target contains files compiled for AVX. The code calling the
458 # functions in this target has to check if the current CPU supports AVX.
459 'target_name': 'nss_static_avx',
460 'suppress_wildcard': 1,
461 'conditions': [
462 ['OS!="win" or target_arch!="ia32"', {
463 'type': 'none',
464 }, {
465 'type': 'static_library',
466 'sources': [
467 'nss/lib/freebl/intel-gcm-wrap.c',
468 'nss/lib/freebl/intel-gcm-x86-masm.asm',
469 'nss/lib/freebl/intel-gcm.h',
470 ],
471 'defines': [
472 'INTEL_GCM',
473 'NSS_X86_OR_X64',
474 'NSS_X86',
475 'MP_API_COMPATIBLE',
476 'MP_ASSEMBLY_DIV_2DX1D',
477 'MP_ASSEMBLY_MULTIPLY',
478 'MP_ASSEMBLY_SQUARE',
479 'MP_ASSEMBLY_DIV_2DX1D',
480 'MP_USE_UINT_DIGIT',
481 'MP_NO_MP_WORD',
482 'MP_USE_UINT_DIGIT',
483 'NSS_DISABLE_DBM',
484 'NSS_STATIC',
485 'NSS_USE_STATIC_LIBS',
486 'NSS_X86',
487 'NSS_X86_OR_X64',
488 'RIJNDAEL_INCLUDE_TABLES',
489 'SHLIB_PREFIX=\"\"',
490 'SHLIB_SUFFIX=\"dll\"',
491 'SHLIB_VERSION=\"3\"',
492 'SOFTOKEN_LIB_NAME=\"softokn3.dll\"',
493 'SOFTOKEN_SHLIB_VERSION=\"3\"',
494 'USE_HW_AES',
495 'USE_UTIL_DIRECTLY',
496 'WIN32',
497 'WIN95',
498 'XP_PC',
499 '_WINDOWS',
500 '_X86_',
501 ],
502 'include_dirs': [
503 'nspr/pr/include',
504 'nspr/lib/ds',
505 'nspr/lib/libc/include',
506 'nss/lib/freebl/ecl',
507 'nss/lib/util',
508 ],
509 'msvs_disabled_warnings': [4018],
510 'msvs_settings': {
511 'MASM': {
512 'UseSafeExceptionHandlers': 'true',
513 },
514 'VCCLCompilerTool': {
515 'EnableEnhancedInstructionSet': '3', # Enable AVX.
516 },
517 },
518 }],
519 ],
520 },
521 {
457 'target_name': 'nss_static', 522 'target_name': 'nss_static',
458 'type': 'static_library', 523 'type': 'static_library',
459 # This target is an implementation detail - the public dependencies 524 # This target is an implementation detail - the public dependencies
460 # should be on 'nss'. 525 # should be on 'nss'.
461 'suppress_wildcard': 1, 526 'suppress_wildcard': 1,
462 'sources': [ 527 'sources': [
463 'nss/lib/base/arena.c', 528 'nss/lib/base/arena.c',
464 'nss/lib/base/base.h', 529 'nss/lib/base/base.h',
465 'nss/lib/base/baset.h', 530 'nss/lib/base/baset.h',
466 'nss/lib/base/error.c', 531 'nss/lib/base/error.c',
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 'nss/lib/freebl/ecl/ecp_521.c', 641 'nss/lib/freebl/ecl/ecp_521.c',
577 'nss/lib/freebl/ecl/ecp_aff.c', 642 'nss/lib/freebl/ecl/ecp_aff.c',
578 'nss/lib/freebl/ecl/ecp_jac.c', 643 'nss/lib/freebl/ecl/ecp_jac.c',
579 'nss/lib/freebl/ecl/ecp_jm.c', 644 'nss/lib/freebl/ecl/ecp_jm.c',
580 'nss/lib/freebl/ecl/ecp_mont.c', 645 'nss/lib/freebl/ecl/ecp_mont.c',
581 'nss/lib/freebl/ecl/ec_naf.c', 646 'nss/lib/freebl/ecl/ec_naf.c',
582 'nss/lib/freebl/gcm.c', 647 'nss/lib/freebl/gcm.c',
583 'nss/lib/freebl/gcm.h', 648 'nss/lib/freebl/gcm.h',
584 'nss/lib/freebl/intel-aes-x86-masm.asm', 649 'nss/lib/freebl/intel-aes-x86-masm.asm',
585 'nss/lib/freebl/intel-aes.h', 650 'nss/lib/freebl/intel-aes.h',
586 'nss/lib/freebl/intel-gcm-wrap.c',
587 'nss/lib/freebl/intel-gcm-x86-masm.asm',
588 'nss/lib/freebl/intel-gcm.h',
589 'nss/lib/freebl/hmacct.c', 651 'nss/lib/freebl/hmacct.c',
590 'nss/lib/freebl/hmacct.h', 652 'nss/lib/freebl/hmacct.h',
591 'nss/lib/freebl/jpake.c', 653 'nss/lib/freebl/jpake.c',
592 'nss/lib/freebl/md2.c', 654 'nss/lib/freebl/md2.c',
593 'nss/lib/freebl/md5.c', 655 'nss/lib/freebl/md5.c',
594 'nss/lib/freebl/mpi/logtab.h', 656 'nss/lib/freebl/mpi/logtab.h',
595 'nss/lib/freebl/mpi/mpcpucache.c', 657 'nss/lib/freebl/mpi/mpcpucache.c',
596 'nss/lib/freebl/mpi/mpi-config.h', 658 'nss/lib/freebl/mpi/mpi-config.h',
597 'nss/lib/freebl/mpi/mpi-priv.h', 659 'nss/lib/freebl/mpi/mpi-priv.h',
598 'nss/lib/freebl/mpi/mpi.c', 660 'nss/lib/freebl/mpi/mpi.c',
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 # primes.c is included by mpprime.c. 1037 # primes.c is included by mpprime.c.
976 'nss/lib/freebl/mpi/primes.c', 1038 'nss/lib/freebl/mpi/primes.c',
977 # unix_rand.c and win_rand.c are included by sysrand.c. 1039 # unix_rand.c and win_rand.c are included by sysrand.c.
978 'nss/lib/freebl/unix_rand.c', 1040 'nss/lib/freebl/unix_rand.c',
979 'nss/lib/freebl/win_rand.c', 1041 'nss/lib/freebl/win_rand.c',
980 # debug_module.c is included by pk11load.c. 1042 # debug_module.c is included by pk11load.c.
981 'nss/lib/pk11wrap/debug_module.c', 1043 'nss/lib/pk11wrap/debug_module.c',
982 ], 1044 ],
983 'dependencies': [ 1045 'dependencies': [
984 'nspr', 1046 'nspr',
1047 'nss_static_avx',
985 '../sqlite/sqlite.gyp:sqlite', 1048 '../sqlite/sqlite.gyp:sqlite',
986 ], 1049 ],
987 'export_dependent_settings': [ 1050 'export_dependent_settings': [
988 'nspr', 1051 'nspr',
989 ], 1052 ],
990 'defines': [ 1053 'defines': [
991 'MP_API_COMPATIBLE', 1054 'MP_API_COMPATIBLE',
992 'NSS_DISABLE_DBM', 1055 'NSS_DISABLE_DBM',
993 'NSS_STATIC', 1056 'NSS_STATIC',
994 'NSS_USE_STATIC_LIBS', 1057 'NSS_USE_STATIC_LIBS',
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 'NSS_USE_64', 1258 'NSS_USE_64',
1196 'NSS_X86_OR_X64', 1259 'NSS_X86_OR_X64',
1197 'NSS_X64', 1260 'NSS_X64',
1198 '_AMD64_', 1261 '_AMD64_',
1199 'MP_CHAR_STORE_SLOW', 1262 'MP_CHAR_STORE_SLOW',
1200 'MP_IS_LITTLE_ENDIAN', 1263 'MP_IS_LITTLE_ENDIAN',
1201 'WIN64', 1264 'WIN64',
1202 ], 1265 ],
1203 'sources!': [ 1266 'sources!': [
1204 'nss/lib/freebl/intel-aes-x86-masm.asm', 1267 'nss/lib/freebl/intel-aes-x86-masm.asm',
1205 'nss/lib/freebl/intel-gcm-wrap.c',
1206 'nss/lib/freebl/intel-gcm-x86-masm.asm',
1207 'nss/lib/freebl/mpi/mpi_amd64.c', 1268 'nss/lib/freebl/mpi/mpi_amd64.c',
1208 'nss/lib/freebl/mpi/mpi_x86_asm.c', 1269 'nss/lib/freebl/mpi/mpi_x86_asm.c',
1209 ], 1270 ],
1210 }], 1271 }],
1211 ], 1272 ],
1212 }, { # else: OS!="win" 1273 }, { # else: OS!="win"
1213 'sources!': [ 1274 'sources!': [
1214 'nss/lib/freebl/intel-aes-x86-masm.asm', 1275 'nss/lib/freebl/intel-aes-x86-masm.asm',
1215 'nss/lib/freebl/intel-gcm-wrap.c',
1216 'nss/lib/freebl/intel-gcm-x86-masm.asm',
1217 # mpi_x86_asm.c contains MSVC inline assembly code. 1276 # mpi_x86_asm.c contains MSVC inline assembly code.
1218 'nss/lib/freebl/mpi/mpi_x86_asm.c', 1277 'nss/lib/freebl/mpi/mpi_x86_asm.c',
1219 ], 1278 ],
1220 }], 1279 }],
1221 ], 1280 ],
1222 }, 1281 },
1223 ], 1282 ],
1224 } 1283 }
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