| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 "nspr/pr/src/md/unix/uxrng.c", | 274 "nspr/pr/src/md/unix/uxrng.c", |
| 275 "nspr/pr/src/md/unix/uxshm.c", | 275 "nspr/pr/src/md/unix/uxshm.c", |
| 276 "nspr/pr/src/md/unix/uxwrap.c", | 276 "nspr/pr/src/md/unix/uxwrap.c", |
| 277 "nspr/pr/src/pthreads/ptio.c", | 277 "nspr/pr/src/pthreads/ptio.c", |
| 278 "nspr/pr/src/pthreads/ptmisc.c", | 278 "nspr/pr/src/pthreads/ptmisc.c", |
| 279 "nspr/pr/src/pthreads/ptsynch.c", | 279 "nspr/pr/src/pthreads/ptsynch.c", |
| 280 "nspr/pr/src/pthreads/ptthread.c", | 280 "nspr/pr/src/pthreads/ptthread.c", |
| 281 ] | 281 ] |
| 282 } | 282 } |
| 283 | 283 |
| 284 if (cpu_arch == "x86") { | 284 if (current_cpu == "x86") { |
| 285 defines += [ "_X86_" ] | 285 defines += [ "_X86_" ] |
| 286 } else if (cpu_arch == "x64") { | 286 } else if (current_cpu == "x64") { |
| 287 defines += [ "_AMD64_" ] | 287 defines += [ "_AMD64_" ] |
| 288 } | 288 } |
| 289 | 289 |
| 290 if (is_mac || is_ios) { | 290 if (is_mac || is_ios) { |
| 291 sources -= [ | 291 sources -= [ |
| 292 "nspr/pr/src/io/prdir.c", | 292 "nspr/pr/src/io/prdir.c", |
| 293 "nspr/pr/src/io/prfile.c", | 293 "nspr/pr/src/io/prfile.c", |
| 294 "nspr/pr/src/io/prio.c", | 294 "nspr/pr/src/io/prio.c", |
| 295 "nspr/pr/src/io/prsocket.c", | 295 "nspr/pr/src/io/prsocket.c", |
| 296 "nspr/pr/src/misc/pripcsem.c", | 296 "nspr/pr/src/misc/pripcsem.c", |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 "nss/lib/nss", | 467 "nss/lib/nss", |
| 468 "nss/lib/pk11wrap", | 468 "nss/lib/pk11wrap", |
| 469 "nss/lib/pkcs7", | 469 "nss/lib/pkcs7", |
| 470 "nss/lib/pki", | 470 "nss/lib/pki", |
| 471 "nss/lib/smime", | 471 "nss/lib/smime", |
| 472 "nss/lib/softoken", | 472 "nss/lib/softoken", |
| 473 "nss/lib/util", | 473 "nss/lib/util", |
| 474 ] | 474 ] |
| 475 } | 475 } |
| 476 | 476 |
| 477 if (is_win && cpu_arch == "x86") { | 477 if (is_win && current_cpu == "x86") { |
| 478 source_set("nss_static_avx") { | 478 source_set("nss_static_avx") { |
| 479 sources = [ | 479 sources = [ |
| 480 "nss/lib/freebl/intel-gcm-wrap.c", | 480 "nss/lib/freebl/intel-gcm-wrap.c", |
| 481 "nss/lib/freebl/intel-gcm-x86-masm.asm", | 481 "nss/lib/freebl/intel-gcm-x86-masm.asm", |
| 482 "nss/lib/freebl/intel-gcm.h", | 482 "nss/lib/freebl/intel-gcm.h", |
| 483 ] | 483 ] |
| 484 defines = [ | 484 defines = [ |
| 485 "_WINDOWS", | 485 "_WINDOWS", |
| 486 "_X86_", | 486 "_X86_", |
| 487 "INTEL_GCM", | 487 "INTEL_GCM", |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 "nss/lib/libpkix/pkix_pl_nss/system", | 1087 "nss/lib/libpkix/pkix_pl_nss/system", |
| 1088 ] | 1088 ] |
| 1089 } else { | 1089 } else { |
| 1090 defines += [ "NSS_DISABLE_LIBPKIX" ] | 1090 defines += [ "NSS_DISABLE_LIBPKIX" ] |
| 1091 } | 1091 } |
| 1092 | 1092 |
| 1093 if (!include_nss_root_certs) { | 1093 if (!include_nss_root_certs) { |
| 1094 defines += [ "NSS_DISABLE_ROOT_CERTS" ] | 1094 defines += [ "NSS_DISABLE_ROOT_CERTS" ] |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 if (cpu_arch == "x64" && !is_win) { | 1097 if (current_cpu == "x64" && !is_win) { |
| 1098 sources -= [ | 1098 sources -= [ |
| 1099 "nss/lib/freebl/chacha20/chacha20.c", | 1099 "nss/lib/freebl/chacha20/chacha20.c", |
| 1100 "nss/lib/freebl/poly1305/poly1305.c", | 1100 "nss/lib/freebl/poly1305/poly1305.c", |
| 1101 ] | 1101 ] |
| 1102 } else { | 1102 } else { |
| 1103 sources -= [ | 1103 sources -= [ |
| 1104 "nss/lib/freebl/chacha20/chacha20_vec.c", | 1104 "nss/lib/freebl/chacha20/chacha20_vec.c", |
| 1105 "nss/lib/freebl/poly1305/poly1305-donna-x64-sse2-incremental-source.c", | 1105 "nss/lib/freebl/poly1305/poly1305-donna-x64-sse2-incremental-source.c", |
| 1106 ] | 1106 ] |
| 1107 } | 1107 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1132 if (is_win) { | 1132 if (is_win) { |
| 1133 defines += [ | 1133 defines += [ |
| 1134 "SHLIB_SUFFIX=\"dll\"", | 1134 "SHLIB_SUFFIX=\"dll\"", |
| 1135 "SHLIB_PREFIX=\"\"", | 1135 "SHLIB_PREFIX=\"\"", |
| 1136 "SOFTOKEN_LIB_NAME=\"softokn3.dll\"", | 1136 "SOFTOKEN_LIB_NAME=\"softokn3.dll\"", |
| 1137 "XP_PC", | 1137 "XP_PC", |
| 1138 "WIN32", | 1138 "WIN32", |
| 1139 "WIN95", | 1139 "WIN95", |
| 1140 ] | 1140 ] |
| 1141 | 1141 |
| 1142 if (cpu_arch == "x86") { | 1142 if (current_cpu == "x86") { |
| 1143 defines += [ | 1143 defines += [ |
| 1144 "NSS_X86_OR_X64", | 1144 "NSS_X86_OR_X64", |
| 1145 "NSS_X86", | 1145 "NSS_X86", |
| 1146 "_X86_", | 1146 "_X86_", |
| 1147 "MP_ASSEMBLY_MULTIPLY", | 1147 "MP_ASSEMBLY_MULTIPLY", |
| 1148 "MP_ASSEMBLY_SQUARE", | 1148 "MP_ASSEMBLY_SQUARE", |
| 1149 "MP_ASSEMBLY_DIV_2DX1D", | 1149 "MP_ASSEMBLY_DIV_2DX1D", |
| 1150 "MP_USE_UINT_DIGIT", | 1150 "MP_USE_UINT_DIGIT", |
| 1151 "MP_NO_MP_WORD", | 1151 "MP_NO_MP_WORD", |
| 1152 "USE_HW_AES", | 1152 "USE_HW_AES", |
| 1153 "INTEL_GCM", | 1153 "INTEL_GCM", |
| 1154 ] | 1154 ] |
| 1155 sources -= [ "nss/lib/freebl/mpi/mpi_amd64.c" ] | 1155 sources -= [ "nss/lib/freebl/mpi/mpi_amd64.c" ] |
| 1156 } else if (cpu_arch == "x64") { | 1156 } else if (current_cpu == "x64") { |
| 1157 sources -= [ | 1157 sources -= [ |
| 1158 "nss/lib/freebl/intel-aes-x86-masm.asm", | 1158 "nss/lib/freebl/intel-aes-x86-masm.asm", |
| 1159 "nss/lib/freebl/mpi/mpi_amd64.c", | 1159 "nss/lib/freebl/mpi/mpi_amd64.c", |
| 1160 "nss/lib/freebl/mpi/mpi_x86_asm.c", | 1160 "nss/lib/freebl/mpi/mpi_x86_asm.c", |
| 1161 ] | 1161 ] |
| 1162 defines += [ | 1162 defines += [ |
| 1163 "NSS_USE_64", | 1163 "NSS_USE_64", |
| 1164 "NSS_X86_OR_X64", | 1164 "NSS_X86_OR_X64", |
| 1165 "NSS_X64", | 1165 "NSS_X64", |
| 1166 "_AMD64_", | 1166 "_AMD64_", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1197 } | 1197 } |
| 1198 | 1198 |
| 1199 public_deps = [ | 1199 public_deps = [ |
| 1200 ":nspr", | 1200 ":nspr", |
| 1201 ] | 1201 ] |
| 1202 deps = [ | 1202 deps = [ |
| 1203 ":nspr", | 1203 ":nspr", |
| 1204 "//third_party/sqlite", | 1204 "//third_party/sqlite", |
| 1205 ] | 1205 ] |
| 1206 | 1206 |
| 1207 if (is_win && cpu_arch == "x86") { | 1207 if (is_win && current_cpu == "x86") { |
| 1208 deps += [ ":nss_static_avx" ] | 1208 deps += [ ":nss_static_avx" ] |
| 1209 } | 1209 } |
| 1210 } | 1210 } |
| 1211 } # Windows/Mac/iOS. | 1211 } # Windows/Mac/iOS. |
| OLD | NEW |