OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
6 | 6 |
7 if (is_linux) { | 7 if (is_linux) { |
8 # This is a dependency on NSS with no libssl. On Linux we use a built-in SSL | 8 # This is a dependency on NSS with no libssl. On Linux we use a built-in SSL |
9 # library but the system NSS libraries. Non-Linux platforms using NSS use the | 9 # library but the system NSS libraries. Non-Linux platforms using NSS use the |
10 # hermetic one in //third_party/nss. | 10 # hermetic one in //third_party/nss. |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 if (is_win) { | 213 if (is_win) { |
214 configs -= [ | 214 configs -= [ |
215 "//build/config/win:unicode", # Requires 8-bit mode. | 215 "//build/config/win:unicode", # Requires 8-bit mode. |
216 "//build/config/win:lean_and_mean", # Won"t compile with lean and mean. | 216 "//build/config/win:lean_and_mean", # Won"t compile with lean and mean. |
217 ] | 217 ] |
218 } | 218 } |
219 configs += [ "//build/config/compiler:no_chromium_code" ] | 219 configs += [ "//build/config/compiler:no_chromium_code" ] |
220 | 220 |
221 cflags = [] | 221 cflags = [] |
222 defines = [ | 222 defines = [ |
223 "_NSPR_BUILD", | 223 "_NSPR_BUILD_", |
224 "FORCE_PR_LOG", | 224 "FORCE_PR_LOG", |
225 ] | 225 ] |
226 | 226 |
227 include_dirs = [ | 227 include_dirs = [ |
228 "nspr/pr/include/private", | 228 "nspr/pr/include/private", |
229 ] | 229 ] |
230 | 230 |
231 if (is_win) { | 231 if (is_win) { |
232 cflags = [ | 232 cflags = [ |
233 "/wd4554", # Check precidence. | 233 "/wd4554", # Check precidence. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 352 |
353 if (include_nss_root_certs) { | 353 if (include_nss_root_certs) { |
354 public_deps += [ ":nssckbi" ] | 354 public_deps += [ ":nssckbi" ] |
355 } | 355 } |
356 | 356 |
357 if (component_mode == "shared_library") { | 357 if (component_mode == "shared_library") { |
358 if (is_mac) { | 358 if (is_mac) { |
359 ldflags = [ "-all_load" ] | 359 ldflags = [ "-all_load" ] |
360 } else if (is_win) { | 360 } else if (is_win) { |
361 # Pass the def file to the linker. | 361 # Pass the def file to the linker. |
362 ldflags = [ rebase_path("nss/exports_win.def", root_build_dir) ] | 362 ldflags = [ |
| 363 "/DEF:" + rebase_path("nss/exports_win.def", root_build_dir) |
| 364 ] |
363 } | 365 } |
364 } | 366 } |
365 } | 367 } |
366 | 368 |
367 config("nssckbi_config") { | 369 config("nssckbi_config") { |
368 include_dirs = [ "nss/lib/ckfw/builtins" ] | 370 include_dirs = [ "nss/lib/ckfw/builtins" ] |
369 } | 371 } |
370 | 372 |
371 # This is really more of a pseudo-target to work around the fact that | 373 # This is really more of a pseudo-target to work around the fact that |
372 # a single static_library target cannot contain two object files of the | 374 # a single static_library target cannot contain two object files of the |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 "nss/lib/nss", | 471 "nss/lib/nss", |
470 "nss/lib/pk11wrap", | 472 "nss/lib/pk11wrap", |
471 "nss/lib/pkcs7", | 473 "nss/lib/pkcs7", |
472 "nss/lib/pki", | 474 "nss/lib/pki", |
473 "nss/lib/smime", | 475 "nss/lib/smime", |
474 "nss/lib/softoken", | 476 "nss/lib/softoken", |
475 "nss/lib/util", | 477 "nss/lib/util", |
476 ] | 478 ] |
477 } | 479 } |
478 | 480 |
| 481 if (is_win && cpu_arch == "x86") { |
| 482 source_set("nss_static_avx") { |
| 483 sources = [ |
| 484 "nss/lib/freebl/intel-gcm-wrap.c", |
| 485 "nss/lib/freebl/intel-gcm-x86-masm.asm", |
| 486 "nss/lib/freebl/intel-gcm.h", |
| 487 ] |
| 488 defines = [ |
| 489 "_WINDOWS", |
| 490 "_X86_", |
| 491 "INTEL_GCM", |
| 492 "MP_API_COMPATIBLE", |
| 493 "MP_ASSEMBLY_DIV_2DX1D", |
| 494 "MP_ASSEMBLY_MULTIPLY", |
| 495 "MP_ASSEMBLY_SQUARE", |
| 496 "MP_NO_MP_WORD", |
| 497 "MP_USE_UINT_DIGIT", |
| 498 "NSS_DISABLE_DBM", |
| 499 "NSS_STATIC", |
| 500 "NSS_USE_STATIC_LIBS", |
| 501 "NSS_X86", |
| 502 "NSS_X86_OR_X64", |
| 503 "RIJNDAEL_INCLUDE_TABLES", |
| 504 "SHLIB_PREFIX=\"\"", |
| 505 "SHLIB_SUFFIX=\"dll\"", |
| 506 "SHLIB_VERSION=\"3\"", |
| 507 "SOFTOKEN_LIB_NAME=\"softokn3.dll\"", |
| 508 "SOFTOKEN_SHLIB_VERSION=\"3\"", |
| 509 "USE_HW_AES", |
| 510 "USE_UTIL_DIRECTLY", |
| 511 "WIN32", |
| 512 "WIN95", |
| 513 "XP_PC", |
| 514 ] |
| 515 include_dirs = [ |
| 516 "nspr/pr/include", |
| 517 "nspr/lib/ds", |
| 518 "nspr/lib/libc/include", |
| 519 "nss/lib/freebl/ecl", |
| 520 "nss/lib/util", |
| 521 ] |
| 522 } |
| 523 } |
| 524 |
479 source_set("nss_static") { | 525 source_set("nss_static") { |
480 visibility = [ ":*" ] # Internal implementation detail. | 526 visibility = [ ":*" ] # Internal implementation detail. |
481 | 527 |
482 sources = [ | 528 sources = [ |
483 "nss/lib/base/arena.c", | 529 "nss/lib/base/arena.c", |
484 "nss/lib/base/base.h", | 530 "nss/lib/base/base.h", |
485 "nss/lib/base/baset.h", | 531 "nss/lib/base/baset.h", |
486 "nss/lib/base/error.c", | 532 "nss/lib/base/error.c", |
487 "nss/lib/base/errorval.c", | 533 "nss/lib/base/errorval.c", |
488 "nss/lib/base/hash.c", | 534 "nss/lib/base/hash.c", |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 "nss/lib/freebl/ecl/ecp_256_32.c", | 638 "nss/lib/freebl/ecl/ecp_256_32.c", |
593 "nss/lib/freebl/ecl/ecp_384.c", | 639 "nss/lib/freebl/ecl/ecp_384.c", |
594 "nss/lib/freebl/ecl/ecp_521.c", | 640 "nss/lib/freebl/ecl/ecp_521.c", |
595 "nss/lib/freebl/ecl/ecp_aff.c", | 641 "nss/lib/freebl/ecl/ecp_aff.c", |
596 "nss/lib/freebl/ecl/ecp_jac.c", | 642 "nss/lib/freebl/ecl/ecp_jac.c", |
597 "nss/lib/freebl/ecl/ecp_jm.c", | 643 "nss/lib/freebl/ecl/ecp_jm.c", |
598 "nss/lib/freebl/ecl/ecp_mont.c", | 644 "nss/lib/freebl/ecl/ecp_mont.c", |
599 "nss/lib/freebl/ecl/ec_naf.c", | 645 "nss/lib/freebl/ecl/ec_naf.c", |
600 "nss/lib/freebl/gcm.c", | 646 "nss/lib/freebl/gcm.c", |
601 "nss/lib/freebl/gcm.h", | 647 "nss/lib/freebl/gcm.h", |
| 648 "nss/lib/freebl/intel-aes-x86-masm.asm", |
| 649 "nss/lib/freebl/intel-aes.h", |
602 "nss/lib/freebl/hmacct.c", | 650 "nss/lib/freebl/hmacct.c", |
603 "nss/lib/freebl/hmacct.h", | 651 "nss/lib/freebl/hmacct.h", |
604 "nss/lib/freebl/jpake.c", | 652 "nss/lib/freebl/jpake.c", |
605 "nss/lib/freebl/md2.c", | 653 "nss/lib/freebl/md2.c", |
606 "nss/lib/freebl/md5.c", | 654 "nss/lib/freebl/md5.c", |
607 "nss/lib/freebl/mpi/logtab.h", | 655 "nss/lib/freebl/mpi/logtab.h", |
608 "nss/lib/freebl/mpi/mpcpucache.c", | 656 "nss/lib/freebl/mpi/mpcpucache.c", |
609 "nss/lib/freebl/mpi/mpi-config.h", | 657 "nss/lib/freebl/mpi/mpi-config.h", |
610 "nss/lib/freebl/mpi/mpi-priv.h", | 658 "nss/lib/freebl/mpi/mpi-priv.h", |
611 "nss/lib/freebl/mpi/mpi.c", | 659 "nss/lib/freebl/mpi/mpi.c", |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 ] | 1193 ] |
1146 } | 1194 } |
1147 | 1195 |
1148 public_deps = [ | 1196 public_deps = [ |
1149 ":nspr", | 1197 ":nspr", |
1150 ] | 1198 ] |
1151 deps = [ | 1199 deps = [ |
1152 ":nspr", | 1200 ":nspr", |
1153 "//third_party/sqlite", | 1201 "//third_party/sqlite", |
1154 ] | 1202 ] |
| 1203 |
| 1204 if (is_win && cpu_arch == "x86") { |
| 1205 deps += [ ":nss_static_avx" ] |
| 1206 } |
1155 } | 1207 } |
1156 } # Windows/Mac/iOS. | 1208 } # Windows/Mac/iOS. |
1157 | 1209 |
OLD | NEW |