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': { | |
7 'conditions': [ | |
8 ['OS=="ios"', { | |
9 'exclude_nss_root_certs%': 0, | |
10 'exclude_nss_libpkix%': 0, | |
11 }, { | |
12 'exclude_nss_root_certs%': 1, | |
13 'exclude_nss_libpkix%': 1, | |
14 }], | |
15 ], | |
16 }, | |
17 'target_defaults': { | 6 'target_defaults': { |
18 'configurations': { | 7 'configurations': { |
19 'Debug': { | 8 'Debug': { |
20 'defines': [ | 9 'defines': [ |
21 'DEBUG', | 10 'DEBUG', |
22 '_DEBUG', | 11 '_DEBUG', |
23 ], | 12 ], |
24 }, | 13 }, |
25 'Release': { | 14 'Release': { |
26 'defines': [ | 15 'defines': [ |
27 'NDEBUG', | 16 'NDEBUG', |
28 ], | 17 ], |
29 }, | 18 }, |
30 }, | 19 }, |
31 'conditions': [ | |
32 ['OS=="win"', { | |
33 'configurations': { | |
34 'Common_Base': { | |
35 'msvs_configuration_attributes': { | |
36 # Do not compile NSPR and NSS with /D _UNICODE /D UNICODE. | |
37 'CharacterSet': '0' | |
38 } | |
39 } | |
40 }, | |
41 'defines!': [ | |
42 'WIN32_LEAN_AND_MEAN', | |
43 ], | |
44 }], | |
45 ], | |
46 }, | 20 }, |
47 'conditions': [ | 21 'conditions': [ |
48 # To ensure no dependency on NSS is accidentally added to a BoringSSL port, | 22 # To ensure no dependency on NSS is accidentally added to a BoringSSL port, |
49 # define the NSS and NSPR targets conditionally. | 23 # define the NSS and NSPR targets conditionally. |
50 ['use_openssl==0', { | 24 ['use_openssl==0', { |
51 'targets': [ | 25 'targets': [ |
52 { | 26 { |
53 'target_name': 'nspr', | 27 'target_name': 'nspr', |
54 'product_name': 'crnspr', | 28 'product_name': 'crnspr', |
55 'type': '<(component)', | 29 'type': '<(component)', |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 'nspr/pr/include/prshm.h', | 103 'nspr/pr/include/prshm.h', |
130 'nspr/pr/include/prshma.h', | 104 'nspr/pr/include/prshma.h', |
131 'nspr/pr/include/prsystem.h', | 105 'nspr/pr/include/prsystem.h', |
132 'nspr/pr/include/prthread.h', | 106 'nspr/pr/include/prthread.h', |
133 'nspr/pr/include/prtime.h', | 107 'nspr/pr/include/prtime.h', |
134 'nspr/pr/include/prtpool.h', | 108 'nspr/pr/include/prtpool.h', |
135 'nspr/pr/include/prtrace.h', | 109 'nspr/pr/include/prtrace.h', |
136 'nspr/pr/include/prtypes.h', | 110 'nspr/pr/include/prtypes.h', |
137 'nspr/pr/include/prvrsion.h', | 111 'nspr/pr/include/prvrsion.h', |
138 'nspr/pr/include/prwin16.h', | 112 'nspr/pr/include/prwin16.h', |
139 'nspr/pr/src/io/prdir.c', | |
140 'nspr/pr/src/io/prfdcach.c', | 113 'nspr/pr/src/io/prfdcach.c', |
141 'nspr/pr/src/io/prfile.c', | |
142 'nspr/pr/src/io/prio.c', | |
143 'nspr/pr/src/io/priometh.c', | 114 'nspr/pr/src/io/priometh.c', |
144 'nspr/pr/src/io/pripv6.c', | 115 'nspr/pr/src/io/pripv6.c', |
145 'nspr/pr/src/io/prlayer.c', | 116 'nspr/pr/src/io/prlayer.c', |
146 'nspr/pr/src/io/prlog.c', | 117 'nspr/pr/src/io/prlog.c', |
147 'nspr/pr/src/io/prmapopt.c', | 118 'nspr/pr/src/io/prmapopt.c', |
148 'nspr/pr/src/io/prmmap.c', | 119 'nspr/pr/src/io/prmmap.c', |
149 'nspr/pr/src/io/prmwait.c', | 120 'nspr/pr/src/io/prmwait.c', |
150 'nspr/pr/src/io/prpolevt.c', | 121 'nspr/pr/src/io/prpolevt.c', |
151 'nspr/pr/src/io/prprf.c', | 122 'nspr/pr/src/io/prprf.c', |
152 'nspr/pr/src/io/prscanf.c', | 123 'nspr/pr/src/io/prscanf.c', |
153 'nspr/pr/src/io/prsocket.c', | |
154 'nspr/pr/src/io/prstdio.c', | 124 'nspr/pr/src/io/prstdio.c', |
155 'nspr/pr/src/linking/prlink.c', | 125 'nspr/pr/src/linking/prlink.c', |
156 'nspr/pr/src/malloc/prmalloc.c', | 126 'nspr/pr/src/malloc/prmalloc.c', |
157 'nspr/pr/src/malloc/prmem.c', | 127 'nspr/pr/src/malloc/prmem.c', |
158 'nspr/pr/src/md/prosdep.c', | 128 'nspr/pr/src/md/prosdep.c', |
159 'nspr/pr/src/md/unix/darwin.c', | 129 'nspr/pr/src/md/unix/darwin.c', |
160 'nspr/pr/src/md/unix/os_Darwin.s', | 130 'nspr/pr/src/md/unix/os_Darwin.s', |
161 'nspr/pr/src/md/unix/os_Darwin_x86.s', | 131 'nspr/pr/src/md/unix/os_Darwin_x86.s', |
162 'nspr/pr/src/md/unix/os_Darwin_x86_64.s', | 132 'nspr/pr/src/md/unix/os_Darwin_x86_64.s', |
163 'nspr/pr/src/md/unix/unix.c', | 133 'nspr/pr/src/md/unix/unix.c', |
164 'nspr/pr/src/md/unix/unix_errors.c', | 134 'nspr/pr/src/md/unix/unix_errors.c', |
165 'nspr/pr/src/md/unix/uxproces.c', | 135 'nspr/pr/src/md/unix/uxproces.c', |
166 'nspr/pr/src/md/unix/uxrng.c', | 136 'nspr/pr/src/md/unix/uxrng.c', |
167 'nspr/pr/src/md/unix/uxshm.c', | 137 'nspr/pr/src/md/unix/uxshm.c', |
168 'nspr/pr/src/md/unix/uxwrap.c', | 138 'nspr/pr/src/md/unix/uxwrap.c', |
169 'nspr/pr/src/md/windows/ntgc.c', | |
170 'nspr/pr/src/md/windows/ntinrval.c', | |
171 'nspr/pr/src/md/windows/ntmisc.c', | |
172 'nspr/pr/src/md/windows/ntsec.c', | |
173 'nspr/pr/src/md/windows/ntsem.c', | |
174 'nspr/pr/src/md/windows/w32ipcsem.c', | |
175 'nspr/pr/src/md/windows/w32poll.c', | |
176 'nspr/pr/src/md/windows/w32rng.c', | |
177 'nspr/pr/src/md/windows/w32shm.c', | |
178 'nspr/pr/src/md/windows/w95cv.c', | |
179 'nspr/pr/src/md/windows/w95dllmain.c', | |
180 'nspr/pr/src/md/windows/w95io.c', | |
181 'nspr/pr/src/md/windows/w95sock.c', | |
182 'nspr/pr/src/md/windows/w95thred.c', | |
183 'nspr/pr/src/md/windows/win32_errors.c', | |
184 'nspr/pr/src/memory/prseg.c', | 139 'nspr/pr/src/memory/prseg.c', |
185 'nspr/pr/src/memory/prshm.c', | 140 'nspr/pr/src/memory/prshm.c', |
186 'nspr/pr/src/memory/prshma.c', | 141 'nspr/pr/src/memory/prshma.c', |
187 'nspr/pr/src/misc/pralarm.c', | 142 'nspr/pr/src/misc/pralarm.c', |
188 'nspr/pr/src/misc/pratom.c', | 143 'nspr/pr/src/misc/pratom.c', |
189 'nspr/pr/src/misc/praton.c', | 144 'nspr/pr/src/misc/praton.c', |
190 'nspr/pr/src/misc/prcountr.c', | 145 'nspr/pr/src/misc/prcountr.c', |
191 'nspr/pr/src/misc/prdtoa.c', | 146 'nspr/pr/src/misc/prdtoa.c', |
192 'nspr/pr/src/misc/prenv.c', | 147 'nspr/pr/src/misc/prenv.c', |
193 'nspr/pr/src/misc/prerr.c', | 148 'nspr/pr/src/misc/prerr.c', |
194 'nspr/pr/src/misc/prerror.c', | 149 'nspr/pr/src/misc/prerror.c', |
195 'nspr/pr/src/misc/prerrortable.c', | 150 'nspr/pr/src/misc/prerrortable.c', |
196 'nspr/pr/src/misc/prinit.c', | 151 'nspr/pr/src/misc/prinit.c', |
197 'nspr/pr/src/misc/prinrval.c', | 152 'nspr/pr/src/misc/prinrval.c', |
198 'nspr/pr/src/misc/pripc.c', | 153 'nspr/pr/src/misc/pripc.c', |
199 'nspr/pr/src/misc/pripcsem.c', | |
200 'nspr/pr/src/misc/prlog2.c', | 154 'nspr/pr/src/misc/prlog2.c', |
201 'nspr/pr/src/misc/prlong.c', | 155 'nspr/pr/src/misc/prlong.c', |
202 'nspr/pr/src/misc/prnetdb.c', | 156 'nspr/pr/src/misc/prnetdb.c', |
203 'nspr/pr/src/misc/prolock.c', | 157 'nspr/pr/src/misc/prolock.c', |
204 'nspr/pr/src/misc/prrng.c', | 158 'nspr/pr/src/misc/prrng.c', |
205 'nspr/pr/src/misc/prsystem.c', | 159 'nspr/pr/src/misc/prsystem.c', |
206 'nspr/pr/src/misc/prthinfo.c', | 160 'nspr/pr/src/misc/prthinfo.c', |
207 'nspr/pr/src/misc/prtime.c', | 161 'nspr/pr/src/misc/prtime.c', |
208 'nspr/pr/src/misc/prtpool.c', | 162 'nspr/pr/src/misc/prtpool.c', |
209 'nspr/pr/src/misc/prtrace.c', | 163 'nspr/pr/src/misc/prtrace.c', |
210 'nspr/pr/src/pthreads/ptio.c', | 164 'nspr/pr/src/pthreads/ptio.c', |
211 'nspr/pr/src/pthreads/ptmisc.c', | 165 'nspr/pr/src/pthreads/ptmisc.c', |
212 'nspr/pr/src/pthreads/ptsynch.c', | 166 'nspr/pr/src/pthreads/ptsynch.c', |
213 'nspr/pr/src/pthreads/ptthread.c', | 167 'nspr/pr/src/pthreads/ptthread.c', |
214 'nspr/pr/src/threads/combined/prucpu.c', | |
215 'nspr/pr/src/threads/combined/prucv.c', | |
216 'nspr/pr/src/threads/combined/prulock.c', | |
217 'nspr/pr/src/threads/combined/prustack.c', | |
218 'nspr/pr/src/threads/combined/pruthr.c', | |
219 'nspr/pr/src/threads/prcmon.c', | 168 'nspr/pr/src/threads/prcmon.c', |
220 'nspr/pr/src/threads/prcthr.c', | |
221 'nspr/pr/src/threads/prdump.c', | |
222 'nspr/pr/src/threads/prmon.c', | |
223 'nspr/pr/src/threads/prrwlock.c', | 169 'nspr/pr/src/threads/prrwlock.c', |
224 'nspr/pr/src/threads/prsem.c', | |
225 'nspr/pr/src/threads/prtpd.c', | 170 'nspr/pr/src/threads/prtpd.c', |
226 ], | 171 ], |
227 'defines': [ | 172 'defines': [ |
228 '_NSPR_BUILD_', | 173 '_NSPR_BUILD_', |
229 'FORCE_PR_LOG', | 174 'FORCE_PR_LOG', |
230 ], | 175 ], |
231 'include_dirs': [ | 176 'include_dirs': [ |
232 'nspr/pr/include', | 177 'nspr/pr/include', |
233 'nspr/pr/include/private', | 178 'nspr/pr/include/private', |
234 'nspr/lib/ds', | 179 'nspr/lib/ds', |
235 'nspr/lib/libc/include', | 180 'nspr/lib/libc/include', |
236 ], | 181 ], |
237 'direct_dependent_settings': { | 182 'direct_dependent_settings': { |
238 'defines': [ | 183 'defines': [ |
239 'NO_NSPR_10_SUPPORT', | 184 'NO_NSPR_10_SUPPORT', |
240 ], | 185 ], |
241 'include_dirs': [ | 186 'include_dirs': [ |
242 'nspr/pr/include', | 187 'nspr/pr/include', |
243 'nspr/lib/ds', | 188 'nspr/lib/ds', |
244 'nspr/lib/libc/include', | 189 'nspr/lib/libc/include', |
245 ], | 190 ], |
246 }, | 191 }, |
247 # TODO(wtc): suppress C4244 and C4554 in prdtoa.c. | |
248 'msvs_disabled_warnings': [4018, 4244, 4554, 4267,], | |
249 'variables': { | 192 'variables': { |
250 'clang_warning_flags': [ | 193 'clang_warning_flags': [ |
251 # nspr passes "const char*" through "void*". | 194 # nspr passes "const char*" through "void*". |
252 '-Wno-incompatible-pointer-types', | 195 '-Wno-incompatible-pointer-types', |
253 # nspr passes "int*" through "unsigned int*". | 196 # nspr passes "int*" through "unsigned int*". |
254 '-Wno-pointer-sign', | 197 '-Wno-pointer-sign', |
255 ], | 198 ], |
256 'clang_warning_flags_unset': [ | 199 'clang_warning_flags_unset': [ |
257 # nspr uses assert(!"foo") instead of assert(false && "foo"). | 200 # nspr uses assert(!"foo") instead of assert(false && "foo"). |
258 '-Wstring-conversion', | 201 '-Wstring-conversion', |
259 ], | 202 ], |
260 }, | 203 }, |
261 'conditions': [ | 204 'conditions': [ |
262 ['OS=="mac" or OS=="ios"', { | 205 ['OS=="ios"', { |
263 'defines': [ | 206 'defines': [ |
264 'XP_UNIX', | 207 'XP_UNIX', |
265 'DARWIN', | 208 'DARWIN', |
266 'XP_MACOSX', | 209 'XP_MACOSX', |
267 '_PR_PTHREADS', | 210 '_PR_PTHREADS', |
268 'HAVE_BSD_FLOCK', | 211 'HAVE_BSD_FLOCK', |
269 'HAVE_CRT_EXTERNS_H', | |
270 'HAVE_DLADDR', | 212 'HAVE_DLADDR', |
271 'HAVE_LCHOWN', | 213 'HAVE_LCHOWN', |
272 'HAVE_SOCKLEN_T', | 214 'HAVE_SOCKLEN_T', |
273 'HAVE_STRERROR', | 215 'HAVE_STRERROR', |
274 ], | 216 ], |
275 'sources/': [ | |
276 ['exclude', '^nspr/pr/src/md/windows/'], | |
277 ['exclude', '^nspr/pr/src/threads/combined/'], | |
278 ], | |
279 'sources!': [ | |
280 'nspr/pr/src/io/prdir.c', | |
281 'nspr/pr/src/io/prfile.c', | |
282 'nspr/pr/src/io/prio.c', | |
283 'nspr/pr/src/io/prsocket.c', | |
284 # os_Darwin_x86.s and os_Darwin_x86_64.s are included by | |
285 # os_Darwin.s. | |
286 'nspr/pr/src/md/unix/os_Darwin_x86.s', | |
287 'nspr/pr/src/md/unix/os_Darwin_x86_64.s', | |
288 'nspr/pr/src/misc/pripcsem.c', | |
289 'nspr/pr/src/threads/prcthr.c', | |
290 'nspr/pr/src/threads/prdump.c', | |
291 'nspr/pr/src/threads/prmon.c', | |
292 'nspr/pr/src/threads/prsem.c', | |
293 ], | |
294 }], | |
295 ['OS=="mac"', { | |
296 'link_settings': { | |
297 'libraries': [ | |
298 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework
', | |
299 '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework', | |
300 ], | |
301 }, | |
302 }], | |
303 ['OS=="ios"', { | |
304 'defines!': [ | |
305 'HAVE_CRT_EXTERNS_H', | |
306 ], | |
307 }], | |
308 ['OS=="win"', { | |
309 'defines': [ | |
310 'XP_PC', | |
311 'WIN32', | |
312 'WIN95', | |
313 '_PR_GLOBAL_THREADS_ONLY', | |
314 '_CRT_SECURE_NO_WARNINGS', | |
315 '_CRT_NONSTDC_NO_WARNINGS', | |
316 ], | |
317 'sources/': [ | |
318 ['exclude', '^nspr/pr/src/md/unix/'], | |
319 ['exclude', '^nspr/pr/src/pthreads/'], | |
320 ], | |
321 'conditions': [ | |
322 ['target_arch=="ia32"', { | |
323 'defines': [ | |
324 '_X86_', | |
325 ], | |
326 }], | |
327 ], | |
328 }], | 217 }], |
329 ['component == "static_library"', { | 218 ['component == "static_library"', { |
330 'defines': [ | 219 'defines': [ |
331 'NSPR_STATIC', | 220 'NSPR_STATIC', |
332 ], | 221 ], |
333 'direct_dependent_settings': { | 222 'direct_dependent_settings': { |
334 'defines': [ | 223 'defines': [ |
335 'NSPR_STATIC', | 224 'NSPR_STATIC', |
336 ], | 225 ], |
337 }, | 226 }, |
338 }], | 227 }], |
339 ['clang==1', { | 228 ['clang==1', { |
340 'xcode_settings': { | 229 'xcode_settings': { |
341 'WARNING_CFLAGS': [ | 230 'WARNING_CFLAGS': [ |
342 # nspr uses a bunch of deprecated functions (NSLinkModule etc)
in | 231 # nspr uses a bunch of deprecated functions (NSLinkModule etc)
in |
343 # prlink.c on mac. | 232 # prlink.c on mac. |
344 '-Wno-deprecated-declarations', | 233 '-Wno-deprecated-declarations', |
345 ], | 234 ], |
346 }, | 235 }, |
347 }], | 236 }], |
348 ], | 237 ], |
349 }, | 238 }, |
350 { | 239 { |
351 'target_name': 'nss', | 240 'target_name': 'nss', |
352 'product_name': 'crnss', | 241 'product_name': 'crnss', |
353 'type': '<(component)', | 242 'type': '<(component)', |
354 'dependencies': [ | 243 'dependencies': [ |
355 'nss_static', | 244 'nss_static', |
| 245 'nssckbi', |
356 ], | 246 ], |
357 'export_dependent_settings': [ | 247 'export_dependent_settings': [ |
358 'nss_static', | 248 'nss_static', |
| 249 'nssckbi', |
359 ], | 250 ], |
360 'sources': [ | 251 'sources': [ |
361 # Ensure at least one object file is produced, so that MSVC does not | 252 # Ensure at least one object file is produced, so that MSVC does not |
362 # warn when creating the static/shared library. See the note for | 253 # warn when creating the static/shared library. See the note for |
363 # the 'nssckbi' target for why the 'nss' target was split as such. | 254 # the 'nssckbi' target for why the 'nss' target was split as such. |
364 'nss/lib/nss/nssver.c', | 255 'nss/lib/nss/nssver.c', |
365 ], | 256 ], |
366 'conditions': [ | |
367 ['exclude_nss_root_certs==0', { | |
368 'dependencies': [ | |
369 'nssckbi', | |
370 ], | |
371 'export_dependent_settings': [ | |
372 'nssckbi', | |
373 ], | |
374 }], | |
375 ['OS == "mac" and component == "shared_library"', { | |
376 'xcode_settings': { | |
377 'OTHER_LDFLAGS': ['-all_load'], | |
378 }, | |
379 }], | |
380 ['OS == "win" and component == "shared_library"', { | |
381 'sources': [ | |
382 'nss/exports_win.def', | |
383 ], | |
384 }], | |
385 ], | |
386 }, | 257 }, |
387 { | 258 { |
388 # This is really more of a pseudo-target to work around the fact that | 259 # This is really more of a pseudo-target to work around the fact that |
389 # a single static_library target cannot contain two object files of th
e | 260 # a single static_library target cannot contain two object files of th
e |
390 # same name (hash.o / hash.obj). Logically, this is part of the | 261 # same name (hash.o / hash.obj). Logically, this is part of the |
391 # 'nss_static' target. By separating it out, it creates a possible | 262 # 'nss_static' target. By separating it out, it creates a possible |
392 # circular dependency between 'nss_static' and 'nssckbi' when | 263 # circular dependency between 'nss_static' and 'nssckbi' when |
393 # 'exclude_nss_root_certs' is not specified, as 'nss_static' depends o
n | 264 # 'exclude_nss_root_certs' is not specified, as 'nss_static' depends o
n |
394 # the 'builtinsC_GetFunctionList' exported by this target. This is an | 265 # the 'builtinsC_GetFunctionList' exported by this target. This is an |
395 # artifact of how NSS is being statically built, which is not an | 266 # artifact of how NSS is being statically built, which is not an |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 'include_dirs': [ | 326 'include_dirs': [ |
456 'nss/lib/ckfw', | 327 'nss/lib/ckfw', |
457 ], | 328 ], |
458 'direct_dependent_settings': { | 329 'direct_dependent_settings': { |
459 'include_dirs': [ | 330 'include_dirs': [ |
460 'nss/lib/ckfw/builtins', | 331 'nss/lib/ckfw/builtins', |
461 ], | 332 ], |
462 }, | 333 }, |
463 }, | 334 }, |
464 { | 335 { |
465 # This target contains files compiled for AVX. The code calling the | |
466 # functions in this target has to check if the current CPU supports AV
X. | |
467 'target_name': 'nss_static_avx', | |
468 'suppress_wildcard': 1, | |
469 'conditions': [ | |
470 ['OS!="win" or target_arch!="ia32"', { | |
471 'type': 'none', | |
472 }, { | |
473 'type': 'static_library', | |
474 'sources': [ | |
475 'nss/lib/freebl/intel-gcm-wrap.c', | |
476 'nss/lib/freebl/intel-gcm-x86-masm.asm', | |
477 'nss/lib/freebl/intel-gcm.h', | |
478 ], | |
479 'defines': [ | |
480 'INTEL_GCM', | |
481 'NSS_X86_OR_X64', | |
482 'NSS_X86', | |
483 'MP_API_COMPATIBLE', | |
484 'MP_ASSEMBLY_DIV_2DX1D', | |
485 'MP_ASSEMBLY_MULTIPLY', | |
486 'MP_ASSEMBLY_SQUARE', | |
487 'MP_ASSEMBLY_DIV_2DX1D', | |
488 'MP_USE_UINT_DIGIT', | |
489 'MP_NO_MP_WORD', | |
490 'MP_USE_UINT_DIGIT', | |
491 'NSS_DISABLE_DBM', | |
492 'NSS_STATIC', | |
493 'NSS_USE_STATIC_LIBS', | |
494 'NSS_X86', | |
495 'NSS_X86_OR_X64', | |
496 'RIJNDAEL_INCLUDE_TABLES', | |
497 'SHLIB_PREFIX=\"\"', | |
498 'SHLIB_SUFFIX=\"dll\"', | |
499 'SHLIB_VERSION=\"3\"', | |
500 'SOFTOKEN_LIB_NAME=\"softokn3.dll\"', | |
501 'SOFTOKEN_SHLIB_VERSION=\"3\"', | |
502 'USE_HW_AES', | |
503 'USE_UTIL_DIRECTLY', | |
504 'WIN32', | |
505 'WIN95', | |
506 'XP_PC', | |
507 '_WINDOWS', | |
508 '_X86_', | |
509 ], | |
510 'include_dirs': [ | |
511 'nspr/pr/include', | |
512 'nspr/lib/ds', | |
513 'nspr/lib/libc/include', | |
514 'nss/lib/freebl/ecl', | |
515 'nss/lib/util', | |
516 ], | |
517 'msvs_disabled_warnings': [4018], | |
518 'msvs_settings': { | |
519 'MASM': { | |
520 'UseSafeExceptionHandlers': 'true', | |
521 }, | |
522 'VCCLCompilerTool': { | |
523 'EnableEnhancedInstructionSet': '3', # Enable AVX. | |
524 }, | |
525 }, | |
526 }], | |
527 ], | |
528 }, | |
529 { | |
530 'target_name': 'nss_static', | 336 'target_name': 'nss_static', |
531 'type': 'static_library', | 337 'type': 'static_library', |
532 # This target is an implementation detail - the public dependencies | 338 # This target is an implementation detail - the public dependencies |
533 # should be on 'nss'. | 339 # should be on 'nss'. |
534 'suppress_wildcard': 1, | 340 'suppress_wildcard': 1, |
535 'sources': [ | 341 'sources': [ |
536 'nss/lib/base/arena.c', | 342 'nss/lib/base/arena.c', |
537 'nss/lib/base/base.h', | 343 'nss/lib/base/base.h', |
538 'nss/lib/base/baset.h', | 344 'nss/lib/base/baset.h', |
539 'nss/lib/base/error.c', | 345 'nss/lib/base/error.c', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 'nss/lib/freebl/alg2268.c', | 413 'nss/lib/freebl/alg2268.c', |
608 'nss/lib/freebl/alghmac.c', | 414 'nss/lib/freebl/alghmac.c', |
609 'nss/lib/freebl/alghmac.h', | 415 'nss/lib/freebl/alghmac.h', |
610 'nss/lib/freebl/arcfive.c', | 416 'nss/lib/freebl/arcfive.c', |
611 'nss/lib/freebl/arcfour.c', | 417 'nss/lib/freebl/arcfour.c', |
612 'nss/lib/freebl/blapi.h', | 418 'nss/lib/freebl/blapi.h', |
613 'nss/lib/freebl/blapii.h', | 419 'nss/lib/freebl/blapii.h', |
614 'nss/lib/freebl/blapit.h', | 420 'nss/lib/freebl/blapit.h', |
615 'nss/lib/freebl/camellia.c', | 421 'nss/lib/freebl/camellia.c', |
616 'nss/lib/freebl/camellia.h', | 422 'nss/lib/freebl/camellia.h', |
617 'nss/lib/freebl/chacha20/chacha20.c', | 423 'nss/lib/freebl/chacha20.c', |
618 'nss/lib/freebl/chacha20/chacha20.h', | 424 'nss/lib/freebl/chacha20.h', |
619 'nss/lib/freebl/chacha20/chacha20_vec.c', | 425 'nss/lib/freebl/chacha20_vec.c', |
620 'nss/lib/freebl/chacha20poly1305.c', | 426 'nss/lib/freebl/chacha20poly1305.c', |
621 'nss/lib/freebl/chacha20poly1305.h', | 427 'nss/lib/freebl/chacha20poly1305.h', |
622 'nss/lib/freebl/ctr.c', | 428 'nss/lib/freebl/ctr.c', |
623 'nss/lib/freebl/ctr.h', | 429 'nss/lib/freebl/ctr.h', |
624 'nss/lib/freebl/cts.c', | 430 'nss/lib/freebl/cts.c', |
625 'nss/lib/freebl/cts.h', | 431 'nss/lib/freebl/cts.h', |
626 'nss/lib/freebl/des.c', | 432 'nss/lib/freebl/des.c', |
627 'nss/lib/freebl/des.h', | 433 'nss/lib/freebl/des.h', |
628 'nss/lib/freebl/desblapi.c', | 434 'nss/lib/freebl/desblapi.c', |
629 'nss/lib/freebl/dh.c', | 435 'nss/lib/freebl/dh.c', |
(...skipping 16 matching lines...) Expand all Loading... |
646 'nss/lib/freebl/ecl/ecp_256_32.c', | 452 'nss/lib/freebl/ecl/ecp_256_32.c', |
647 'nss/lib/freebl/ecl/ecp_384.c', | 453 'nss/lib/freebl/ecl/ecp_384.c', |
648 'nss/lib/freebl/ecl/ecp_521.c', | 454 'nss/lib/freebl/ecl/ecp_521.c', |
649 'nss/lib/freebl/ecl/ecp_aff.c', | 455 'nss/lib/freebl/ecl/ecp_aff.c', |
650 'nss/lib/freebl/ecl/ecp_jac.c', | 456 'nss/lib/freebl/ecl/ecp_jac.c', |
651 'nss/lib/freebl/ecl/ecp_jm.c', | 457 'nss/lib/freebl/ecl/ecp_jm.c', |
652 'nss/lib/freebl/ecl/ecp_mont.c', | 458 'nss/lib/freebl/ecl/ecp_mont.c', |
653 'nss/lib/freebl/ecl/ec_naf.c', | 459 'nss/lib/freebl/ecl/ec_naf.c', |
654 'nss/lib/freebl/gcm.c', | 460 'nss/lib/freebl/gcm.c', |
655 'nss/lib/freebl/gcm.h', | 461 'nss/lib/freebl/gcm.h', |
656 'nss/lib/freebl/intel-aes-x86-masm.asm', | |
657 'nss/lib/freebl/intel-aes.h', | 462 'nss/lib/freebl/intel-aes.h', |
658 'nss/lib/freebl/hmacct.c', | 463 'nss/lib/freebl/hmacct.c', |
659 'nss/lib/freebl/hmacct.h', | 464 'nss/lib/freebl/hmacct.h', |
660 'nss/lib/freebl/jpake.c', | 465 'nss/lib/freebl/jpake.c', |
661 'nss/lib/freebl/md2.c', | 466 'nss/lib/freebl/md2.c', |
662 'nss/lib/freebl/md5.c', | 467 'nss/lib/freebl/md5.c', |
663 'nss/lib/freebl/mpi/logtab.h', | 468 'nss/lib/freebl/mpi/logtab.h', |
664 'nss/lib/freebl/mpi/mpcpucache.c', | 469 'nss/lib/freebl/mpi/mpcpucache.c', |
665 'nss/lib/freebl/mpi/mpi-config.h', | 470 'nss/lib/freebl/mpi/mpi-config.h', |
666 'nss/lib/freebl/mpi/mpi-priv.h', | 471 'nss/lib/freebl/mpi/mpi-priv.h', |
667 'nss/lib/freebl/mpi/mpi.c', | 472 'nss/lib/freebl/mpi/mpi.c', |
668 'nss/lib/freebl/mpi/mpi.h', | 473 'nss/lib/freebl/mpi/mpi.h', |
669 'nss/lib/freebl/mpi/mpi_amd64.c', | |
670 'nss/lib/freebl/mpi/mpi_arm.c', | 474 'nss/lib/freebl/mpi/mpi_arm.c', |
671 'nss/lib/freebl/mpi/mpi_arm_mac.c', | 475 'nss/lib/freebl/mpi/mpi_arm_mac.c', |
672 'nss/lib/freebl/mpi/mpi_x86_asm.c', | |
673 'nss/lib/freebl/mpi/mplogic.c', | 476 'nss/lib/freebl/mpi/mplogic.c', |
674 'nss/lib/freebl/mpi/mplogic.h', | 477 'nss/lib/freebl/mpi/mplogic.h', |
675 'nss/lib/freebl/mpi/mpmontg.c', | 478 'nss/lib/freebl/mpi/mpmontg.c', |
676 'nss/lib/freebl/mpi/mpprime.c', | 479 'nss/lib/freebl/mpi/mpprime.c', |
677 'nss/lib/freebl/mpi/mpprime.h', | 480 'nss/lib/freebl/mpi/mpprime.h', |
678 'nss/lib/freebl/mpi/mp_gf2m-priv.h', | 481 'nss/lib/freebl/mpi/mp_gf2m-priv.h', |
679 'nss/lib/freebl/mpi/mp_gf2m.c', | 482 'nss/lib/freebl/mpi/mp_gf2m.c', |
680 'nss/lib/freebl/mpi/mp_gf2m.h', | 483 'nss/lib/freebl/mpi/mp_gf2m.h', |
681 'nss/lib/freebl/mpi/primes.c', | 484 'nss/lib/freebl/mpi/primes.c', |
682 'nss/lib/freebl/nss_build_config_mac.h', | 485 'nss/lib/freebl/nss_build_config_mac.h', |
683 'nss/lib/freebl/poly1305/poly1305-donna-x64-sse2-incremental-source.
c', | 486 'nss/lib/freebl/poly1305-donna-x64-sse2-incremental-source.c', |
684 'nss/lib/freebl/poly1305/poly1305.c', | 487 'nss/lib/freebl/poly1305.c', |
685 'nss/lib/freebl/poly1305/poly1305.h', | 488 'nss/lib/freebl/poly1305.h', |
686 'nss/lib/freebl/pqg.c', | 489 'nss/lib/freebl/pqg.c', |
687 'nss/lib/freebl/pqg.h', | 490 'nss/lib/freebl/pqg.h', |
688 'nss/lib/freebl/rawhash.c', | 491 'nss/lib/freebl/rawhash.c', |
689 'nss/lib/freebl/rijndael.c', | 492 'nss/lib/freebl/rijndael.c', |
690 'nss/lib/freebl/rijndael.h', | 493 'nss/lib/freebl/rijndael.h', |
691 'nss/lib/freebl/rijndael32.tab', | 494 'nss/lib/freebl/rijndael32.tab', |
692 'nss/lib/freebl/rsa.c', | 495 'nss/lib/freebl/rsa.c', |
693 'nss/lib/freebl/rsapkcs.c', | 496 'nss/lib/freebl/rsapkcs.c', |
694 'nss/lib/freebl/secmpi.h', | 497 'nss/lib/freebl/secmpi.h', |
695 'nss/lib/freebl/secrng.h', | 498 'nss/lib/freebl/secrng.h', |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 'nss/lib/libpkix/pkix/util/pkix_tools.c', | 590 'nss/lib/libpkix/pkix/util/pkix_tools.c', |
788 'nss/lib/libpkix/pkix/util/pkix_tools.h', | 591 'nss/lib/libpkix/pkix/util/pkix_tools.h', |
789 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.c', | 592 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.c', |
790 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.h', | 593 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.h', |
791 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_colcertstore.c', | 594 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_colcertstore.c', |
792 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_colcertstore.h', | 595 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_colcertstore.h', |
793 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c', | 596 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c', |
794 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.h', | 597 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.h', |
795 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.c', | 598 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.c', |
796 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.h', | 599 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.h', |
797 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapcertstore.c', | |
798 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapcertstore.h', | |
799 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapdefaultclient.c', | |
800 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapdefaultclient.h', | |
801 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaprequest.c', | |
802 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaprequest.h', | |
803 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapresponse.c', | |
804 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapresponse.h', | |
805 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapt.h', | |
806 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaptemplates.c', | |
807 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.c', | 600 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.c', |
808 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.h', | 601 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.h', |
809 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_pk11certstore.c', | 602 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_pk11certstore.c', |
810 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_pk11certstore.h', | 603 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_pk11certstore.h', |
811 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_socket.c', | 604 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_socket.c', |
812 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_socket.h', | 605 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_socket.h', |
813 'nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_basicconstraints.c', | 606 'nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_basicconstraints.c', |
814 'nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_basicconstraints.h', | 607 'nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_basicconstraints.h', |
815 'nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c', | 608 'nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c', |
816 'nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.h', | 609 'nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.h', |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 # primes.c is included by mpprime.c. | 842 # primes.c is included by mpprime.c. |
1050 'nss/lib/freebl/mpi/primes.c', | 843 'nss/lib/freebl/mpi/primes.c', |
1051 # unix_rand.c and win_rand.c are included by sysrand.c. | 844 # unix_rand.c and win_rand.c are included by sysrand.c. |
1052 'nss/lib/freebl/unix_rand.c', | 845 'nss/lib/freebl/unix_rand.c', |
1053 'nss/lib/freebl/win_rand.c', | 846 'nss/lib/freebl/win_rand.c', |
1054 # debug_module.c is included by pk11load.c. | 847 # debug_module.c is included by pk11load.c. |
1055 'nss/lib/pk11wrap/debug_module.c', | 848 'nss/lib/pk11wrap/debug_module.c', |
1056 ], | 849 ], |
1057 'dependencies': [ | 850 'dependencies': [ |
1058 'nspr', | 851 'nspr', |
1059 'nss_static_avx', | |
1060 '../sqlite/sqlite.gyp:sqlite', | 852 '../sqlite/sqlite.gyp:sqlite', |
1061 ], | 853 ], |
1062 'export_dependent_settings': [ | 854 'export_dependent_settings': [ |
1063 'nspr', | 855 'nspr', |
1064 ], | 856 ], |
1065 'defines': [ | 857 'defines': [ |
1066 'MP_API_COMPATIBLE', | 858 'MP_API_COMPATIBLE', |
1067 'NSS_DISABLE_DBM', | 859 'NSS_DISABLE_DBM', |
1068 'NSS_STATIC', | 860 'NSS_STATIC', |
1069 'NSS_USE_STATIC_LIBS', | 861 'NSS_USE_STATIC_LIBS', |
1070 'RIJNDAEL_INCLUDE_TABLES', | 862 'RIJNDAEL_INCLUDE_TABLES', |
1071 'SHLIB_VERSION=\"3\"', | 863 'SHLIB_VERSION=\"3\"', |
1072 'SOFTOKEN_SHLIB_VERSION=\"3\"', | 864 'SOFTOKEN_SHLIB_VERSION=\"3\"', |
1073 'USE_UTIL_DIRECTLY', | 865 'USE_UTIL_DIRECTLY', |
| 866 'NSS_PKIX_NO_LDAP', |
1074 ], | 867 ], |
1075 'include_dirs': [ | 868 'include_dirs': [ |
1076 'nss/lib/base', | 869 'nss/lib/base', |
1077 'nss/lib/certdb', | 870 'nss/lib/certdb', |
1078 'nss/lib/certhigh', | 871 'nss/lib/certhigh', |
1079 'nss/lib/cryptohi', | 872 'nss/lib/cryptohi', |
1080 'nss/lib/dev', | 873 'nss/lib/dev', |
1081 'nss/lib/freebl', | 874 'nss/lib/freebl', |
1082 'nss/lib/freebl/ecl', | 875 'nss/lib/freebl/ecl', |
1083 'nss/lib/freebl/mpi', | 876 'nss/lib/freebl/mpi', |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 'nss/lib/freebl/ecl', | 914 'nss/lib/freebl/ecl', |
1122 'nss/lib/nss', | 915 'nss/lib/nss', |
1123 'nss/lib/pk11wrap', | 916 'nss/lib/pk11wrap', |
1124 'nss/lib/pkcs7', | 917 'nss/lib/pkcs7', |
1125 'nss/lib/pki', | 918 'nss/lib/pki', |
1126 'nss/lib/smime', | 919 'nss/lib/smime', |
1127 'nss/lib/softoken', | 920 'nss/lib/softoken', |
1128 'nss/lib/util', | 921 'nss/lib/util', |
1129 ], | 922 ], |
1130 }, | 923 }, |
1131 'msvs_disabled_warnings': [4018, 4101, 4267, ], | |
1132 'variables': { | 924 'variables': { |
1133 'clang_warning_flags': [ | 925 'clang_warning_flags': [ |
1134 # nss doesn't explicitly cast between different enum types. | 926 # nss doesn't explicitly cast between different enum types. |
1135 '-Wno-conversion', | 927 '-Wno-conversion', |
1136 # nss passes "const char*" through "void*". | 928 # nss passes "const char*" through "void*". |
1137 '-Wno-incompatible-pointer-types', | 929 '-Wno-incompatible-pointer-types', |
1138 # nss prefers `a && b || c` over `(a && b) || c`. | 930 # nss prefers `a && b || c` over `(a && b) || c`. |
1139 '-Wno-logical-op-parentheses', | 931 '-Wno-logical-op-parentheses', |
1140 # nss doesn't use exhaustive switches on enums | 932 # nss doesn't use exhaustive switches on enums |
1141 '-Wno-switch', | 933 '-Wno-switch', |
1142 # nss has some `unsigned < 0` checks. | 934 # nss has some `unsigned < 0` checks. |
1143 '-Wno-tautological-compare', | 935 '-Wno-tautological-compare', |
1144 # nss-urandom-abort.patch removed the only call to | 936 # nss-urandom-abort.patch removed the only call to |
1145 # rng_systemFromNoise | 937 # rng_systemFromNoise |
1146 '-Wno-unused-function', | 938 '-Wno-unused-function', |
1147 ], | 939 ], |
1148 }, | 940 }, |
1149 'conditions': [ | 941 'conditions': [ |
1150 ['exclude_nss_root_certs==1', { | |
1151 'defines': [ | |
1152 'NSS_DISABLE_ROOT_CERTS', | |
1153 ], | |
1154 }], | |
1155 ['exclude_nss_libpkix==1', { | |
1156 'defines': [ | |
1157 'NSS_DISABLE_LIBPKIX', | |
1158 ], | |
1159 'sources/': [ | |
1160 ['exclude', '^nss/lib/libpkix/'], | |
1161 ], | |
1162 'sources!': [ | |
1163 'nss/lib/certhigh/certvfypkix.c', | |
1164 'nss/lib/certhigh/certvfypkixprint.c', | |
1165 ], | |
1166 'include_dirs/': [ | |
1167 ['exclude', '^nss/lib/libpkix/'], | |
1168 ], | |
1169 }, { # else: exclude_nss_libpkix==0 | |
1170 # Disable the LDAP code in libpkix. | |
1171 'defines': [ | |
1172 'NSS_PKIX_NO_LDAP', | |
1173 ], | |
1174 'sources!': [ | |
1175 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapcertstore.c', | |
1176 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapcertstore.h', | |
1177 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapdefaultclient.c'
, | |
1178 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapdefaultclient.h'
, | |
1179 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaprequest.c', | |
1180 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaprequest.h', | |
1181 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapresponse.c', | |
1182 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapresponse.h', | |
1183 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapt.h', | |
1184 'nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaptemplates.c', | |
1185 ], | |
1186 }], | |
1187 ['target_arch=="ia32"', { | |
1188 'sources!': [ | |
1189 'nss/lib/freebl/mpi/mpi_amd64.c', | |
1190 ], | |
1191 }], | |
1192 ['target_arch=="x64" and OS!="win"', { | 942 ['target_arch=="x64" and OS!="win"', { |
1193 'sources!': [ | 943 'sources!': [ |
1194 'nss/lib/freebl/chacha20/chacha20.c', | 944 'nss/lib/freebl/chacha20/chacha20.c', |
1195 'nss/lib/freebl/poly1305/poly1305.c', | 945 'nss/lib/freebl/poly1305/poly1305.c', |
1196 ], | 946 ], |
1197 }, { # else: target_arch!="x64" or OS=="win" | 947 }, { # else: target_arch!="x64" or OS=="win" |
1198 'sources!': [ | 948 'sources!': [ |
1199 'nss/lib/freebl/chacha20/chacha20_vec.c', | 949 'nss/lib/freebl/chacha20/chacha20_vec.c', |
1200 'nss/lib/freebl/poly1305/poly1305-donna-x64-sse2-incremental-sou
rce.c', | 950 'nss/lib/freebl/poly1305/poly1305-donna-x64-sse2-incremental-sou
rce.c', |
1201 ], | 951 ], |
1202 }], | 952 }], |
1203 ['OS=="mac" or OS=="ios"', { | 953 ['OS=="ios"', { |
1204 'defines': [ | 954 'defines': [ |
1205 'XP_UNIX', | 955 'XP_UNIX', |
1206 'DARWIN', | 956 'DARWIN', |
1207 'HAVE_STRERROR', | 957 'HAVE_STRERROR', |
1208 'HAVE_BSD_FLOCK', | 958 'HAVE_BSD_FLOCK', |
1209 'SHLIB_SUFFIX=\"dylib\"', | 959 'SHLIB_SUFFIX=\"dylib\"', |
1210 'SHLIB_PREFIX=\"lib\"', | 960 'SHLIB_PREFIX=\"lib\"', |
1211 'SOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\"', | 961 'SOFTOKEN_LIB_NAME=\"libsoftokn3.dylib\"', |
1212 ], | 962 ], |
1213 'sources!': [ | |
1214 'nss/lib/freebl/mpi/mpi_amd64.c', | |
1215 ], | |
1216 'variables': { | 963 'variables': { |
1217 'forced_include_file': 'nss_build_config_mac.h', | 964 'forced_include_file': 'nss_build_config_mac.h', |
1218 }, | 965 }, |
1219 'xcode_settings': { | 966 'xcode_settings': { |
1220 'conditions': [ | 967 'conditions': [ |
1221 ['component == "shared_library"', { | 968 ['component == "shared_library"', { |
1222 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # no -fvisibility=hidde
n | 969 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # no -fvisibility=hidde
n |
1223 }], | 970 }], |
1224 ], | 971 ], |
1225 # Define processor architecture specific macros in | 972 # Define processor architecture specific macros in |
1226 # <(forced_include_file). | 973 # <(forced_include_file). |
1227 'OTHER_CFLAGS': [ | 974 'OTHER_CFLAGS': [ |
1228 '-include', '<(forced_include_file)', | 975 '-include', '<(forced_include_file)', |
1229 ], | 976 ], |
1230 }, | 977 }, |
1231 }, { # else: OS!="mac" and OS!="ios" | |
1232 'sources!': [ | |
1233 'nss/lib/freebl/mpi/mpi_arm_mac.c', | |
1234 ], | |
1235 }], | |
1236 ['OS=="win"', { | |
1237 'defines': [ | |
1238 'SHLIB_SUFFIX=\"dll\"', | |
1239 'SHLIB_PREFIX=\"\"', | |
1240 'SOFTOKEN_LIB_NAME=\"softokn3.dll\"', | |
1241 'XP_PC', | |
1242 'WIN32', | |
1243 'WIN95', | |
1244 '_WINDOWS', | |
1245 ], | |
1246 'direct_dependent_settings': { | |
1247 'defines': [ | |
1248 '_WINDOWS', | |
1249 ], | |
1250 }, | |
1251 'conditions': [ | |
1252 ['target_arch=="ia32"', { | |
1253 'defines': [ | |
1254 'NSS_X86_OR_X64', | |
1255 'NSS_X86', | |
1256 '_X86_', | |
1257 'MP_ASSEMBLY_MULTIPLY', | |
1258 'MP_ASSEMBLY_SQUARE', | |
1259 'MP_ASSEMBLY_DIV_2DX1D', | |
1260 'MP_USE_UINT_DIGIT', | |
1261 'MP_NO_MP_WORD', | |
1262 'USE_HW_AES', | |
1263 'INTEL_GCM', | |
1264 ], | |
1265 'msvs_settings': { | |
1266 'MASM': { | |
1267 'UseSafeExceptionHandlers': 'true', | |
1268 }, | |
1269 }, | |
1270 }], | |
1271 ['target_arch=="x64"', { | |
1272 'defines': [ | |
1273 'NSS_USE_64', | |
1274 'NSS_X86_OR_X64', | |
1275 'NSS_X64', | |
1276 '_AMD64_', | |
1277 'MP_CHAR_STORE_SLOW', | |
1278 'MP_IS_LITTLE_ENDIAN', | |
1279 'WIN64', | |
1280 ], | |
1281 'sources!': [ | |
1282 'nss/lib/freebl/intel-aes-x86-masm.asm', | |
1283 'nss/lib/freebl/mpi/mpi_amd64.c', | |
1284 'nss/lib/freebl/mpi/mpi_x86_asm.c', | |
1285 ], | |
1286 }], | |
1287 ], | |
1288 }, { # else: OS!="win" | |
1289 'sources!': [ | |
1290 'nss/lib/freebl/intel-aes-x86-masm.asm', | |
1291 # mpi_x86_asm.c contains MSVC inline assembly code. | |
1292 'nss/lib/freebl/mpi/mpi_x86_asm.c', | |
1293 ], | |
1294 }], | 978 }], |
1295 ], | 979 ], |
1296 }, | 980 }, |
1297 ], | 981 ], |
1298 }], | 982 }], |
1299 ], | 983 ], |
1300 } | 984 } |
OLD | NEW |