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

Side by Side Diff: tools/gn/secondary/third_party/nss/BUILD.gn

Issue 307993010: Add RLZ build file for GN build, fix Windows build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « tools/gn/secondary/third_party/icu/BUILD.gn ('k') | 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) 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/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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 "SOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\"", 1083 "SOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\"",
1084 ] 1084 ]
1085 1085
1086 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ] 1086 configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
1087 } else { 1087 } else {
1088 # Not Mac/iOS. 1088 # Not Mac/iOS.
1089 sources -= [ "nss/lib/freebl/mpi/mpi_arm_mac.c" ] 1089 sources -= [ "nss/lib/freebl/mpi/mpi_arm_mac.c" ]
1090 } 1090 }
1091 1091
1092 if (is_win) { 1092 if (is_win) {
1093 sources -= [
1094 "nss/lib/freebl/mpi/mpi_amd64.c",
1095 "nss/lib/freebl/mpi/mpi_x86_asm.c",
1096 ]
1097 defines += [ 1093 defines += [
1098 "SHLIB_SUFFIX=\"dll\"", 1094 "SHLIB_SUFFIX=\"dll\"",
1099 "SHLIB_PREFIX=\"\"", 1095 "SHLIB_PREFIX=\"\"",
1100 "SOFTOKEN_LIB_NAME=\"softokn3.dll\"", 1096 "SOFTOKEN_LIB_NAME=\"softokn3.dll\"",
1101 "XP_PC", 1097 "XP_PC",
1102 "WIN32", 1098 "WIN32",
1103 "WIN95", 1099 "WIN95",
1104 ] 1100 ]
1105 1101
1106 if (cpu_arch == "x86") { 1102 if (cpu_arch == "x86") {
1103 sources -= [ "nss/lib/freebl/mpi/mpi_amd64.c" ]
1107 defines += [ 1104 defines += [
1108 "NSS_X86_OR_X64", 1105 "NSS_X86_OR_X64",
1109 "NSS_X86", 1106 "NSS_X86",
1110 "_X86_", 1107 "_X86_",
1111 "MP_ASSEMBLY_MULTIPLY", 1108 "MP_ASSEMBLY_MULTIPLY",
1112 "MP_ASSEMBLY_SQUARE", 1109 "MP_ASSEMBLY_SQUARE",
1113 "MP_ASSEMBLY_DIV_2DX1D", 1110 "MP_ASSEMBLY_DIV_2DX1D",
1114 "MP_USE_UINT_DIGIT", 1111 "MP_USE_UINT_DIGIT",
1115 "MP_NO_MP_WORD", 1112 "MP_NO_MP_WORD",
1116 ] 1113 ]
1117 } else if (cpu_arch == "x64") { 1114 } else if (cpu_arch == "x64") {
1115 sources -= [ "nss/lib/freebl/mpi/mpi_x86_asm.c" ]
1118 defines += [ 1116 defines += [
1119 "NSS_USE_64", 1117 "NSS_USE_64",
1120 "NSS_X86_OR_X64", 1118 "NSS_X86_OR_X64",
1121 "NSS_X64", 1119 "NSS_X64",
1122 "_AMD64_", 1120 "_AMD64_",
1123 "MP_CHAR_STORE_SLOW", 1121 "MP_CHAR_STORE_SLOW",
1124 "MP_IS_LITTLE_ENDIAN", 1122 "MP_IS_LITTLE_ENDIAN",
1125 "WIN64", 1123 "WIN64",
1126 ] 1124 ]
1127 } 1125 }
(...skipping 22 matching lines...) Expand all
1150 1148
1151 deps = [ 1149 deps = [
1152 ":nspr", 1150 ":nspr",
1153 "//third_party/sqlite", 1151 "//third_party/sqlite",
1154 ] 1152 ]
1155 1153
1156 forward_dependent_configs_from = [ ":nspr" ] 1154 forward_dependent_configs_from = [ ":nspr" ]
1157 } 1155 }
1158 } # Windows/Mac/iOS. 1156 } # Windows/Mac/iOS.
1159 1157
OLDNEW
« no previous file with comments | « tools/gn/secondary/third_party/icu/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698