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 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6 # for details. All rights reserved. Use of this source code is governed by a | 6 # for details. All rights reserved. Use of this source code is governed by a |
7 # BSD-style license that can be found in the LICENSE file. | 7 # BSD-style license that can be found in the LICENSE file. |
8 | 8 |
9 # This file is a modified copy of Chromium's deps/third_party/nss/nss.gyp. | 9 # This file is a modified copy of Chromium's deps/third_party/nss/nss.gyp. |
10 # Revision 257452 (this should agree with "nss_rev" in DEPS). | 10 # Revision 257452 (this should agree with "nss_rev" in DEPS). |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 # Added by Dart. | 43 # Added by Dart. |
44 'Dart_ia32_Base': { | 44 'Dart_ia32_Base': { |
45 'defines': [ | 45 'defines': [ |
46 'NSS_X86_OR_X64', | 46 'NSS_X86_OR_X64', |
47 'NSS_X86', | 47 'NSS_X86', |
48 '_X86_', | 48 '_X86_', |
49 ], | 49 ], |
50 }, | 50 }, |
51 # Added by Dart. | 51 # Added by Dart. |
52 'Dart_x64_Base': { | 52 'Dart_x64_Base': { |
53 'conditions': [ | 53 'defines': [ |
54 # On Windows, Dart is always built as a 32-bit version, | 54 'NSS_X86_OR_X64', |
55 # even if a 64-bit build is requested. | 55 'NSS_X64', |
56 ['OS=="win"', { | 56 'NSS_USE_64', |
57 'defines': [ | |
58 'NSS_X86_OR_X64', | |
59 'NSS_X86', | |
60 '_X86_', | |
61 ], | |
62 }, { | |
63 'defines': [ | |
64 'NSS_X86_OR_X64', | |
65 'NSS_X64', | |
66 'NSS_USE_64', | |
67 ]}], | |
68 ], | 57 ], |
69 }, | 58 }, |
70 # Added by Dart. | 59 # Added by Dart. |
71 'Dart_simarm64_Base': { | 60 'Dart_simarm64_Base': { |
72 'defines': [ | 61 'defines': [ |
73 'NSS_X86_OR_X64', | 62 'NSS_X86_OR_X64', |
74 'NSS_X64', | 63 'NSS_X64', |
75 'NSS_USE_64', | 64 'NSS_USE_64', |
76 ], | 65 ], |
77 }, | 66 }, |
78 'Dart_arm64_Base': { | 67 'Dart_arm64_Base': { |
79 'defines': [ | 68 'defines': [ |
80 'NSS_USE_64', | 69 'NSS_USE_64', |
81 ], | 70 ], |
82 }, | 71 }, |
83 }, | 72 }, |
84 'conditions': [ | 73 'conditions': [ |
85 ['OS=="win"', { | 74 ['OS=="win"', { |
86 'configurations': { | 75 'configurations': { |
87 'Common_Base': { | 76 'Common_Base': { |
88 'msvs_configuration_attributes': { | 77 'msvs_configuration_attributes': { |
89 # Do not compile NSPR and NSS with /D _UNICODE /D UNICODE. | 78 # Do not compile NSPR and NSS with /D _UNICODE /D UNICODE. |
90 'CharacterSet': '0' | 79 'CharacterSet': '0' |
91 } | 80 } |
92 } | 81 }, |
ricow1
2014/06/05 14:41:42
place
# Added by Dart.
here as well to easily dis
Vyacheslav Egorov (Google)
2014/06/05 18:05:54
Done.
| |
82 'Dart_ia32_Base': { | |
83 'defines': [ | |
84 'NSS_X86_OR_X64', | |
85 'NSS_X86', | |
86 '_X86_', | |
87 'MP_ASSEMBLY_MULTIPLY', | |
88 'MP_ASSEMBLY_SQUARE', | |
89 'MP_ASSEMBLY_DIV_2DX1D', | |
90 'MP_USE_UINT_DIGIT', | |
91 'MP_NO_MP_WORD', | |
92 ], | |
93 }, | |
94 'Dart_x64_Base': { | |
95 'defines': [ | |
96 'NSS_USE_64', | |
97 'NSS_X86_OR_X64', | |
98 'NSS_X64', | |
99 '_AMD64_', | |
100 'MP_CHAR_STORE_SLOW', | |
101 'MP_IS_LITTLE_ENDIAN', | |
102 'WIN64', | |
103 ], | |
104 }, | |
93 }, | 105 }, |
94 'defines!': [ | 106 'defines!': [ |
95 'WIN32_LEAN_AND_MEAN', | 107 'WIN32_LEAN_AND_MEAN', |
96 ], | 108 ], |
97 }], | 109 }], |
98 ], | 110 ], |
99 }, | 111 }, |
100 # Added by Dart. We do not indent, so diffs with the original are clearer. | 112 # Added by Dart. We do not indent, so diffs with the original are clearer. |
101 'conditions': [[ 'dart_io_support==1', { | 113 'conditions': [[ 'dart_io_support==1', { |
102 'targets': [ | 114 'targets': [ |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
426 # Added by Dart. | 438 # Added by Dart. |
427 'os_linux.S', | 439 'os_linux.S', |
428 ], | 440 ], |
429 # Changed by Dart: | 441 # Changed by Dart: |
430 # nss_directory contains .., which is bad in a regular expression. | 442 # nss_directory contains .., which is bad in a regular expression. |
431 # So we use the partial match by dropping '^' from '^nspr/... | 443 # So we use the partial match by dropping '^' from '^nspr/... |
432 'sources/': [ | 444 'sources/': [ |
433 ['exclude', 'nspr/pr/src/md/unix/'], | 445 ['exclude', 'nspr/pr/src/md/unix/'], |
434 ['exclude', 'nspr/pr/src/pthreads/'], | 446 ['exclude', 'nspr/pr/src/pthreads/'], |
435 ], | 447 ], |
436 'conditions': [ | 448 # Changed by Dart. We don't use target_arch. |
437 ['target_arch=="ia32"', { | 449 # 'conditions': [ |
438 'defines': [ | 450 # ['target_arch=="ia32"', { |
439 '_X86_', | 451 # 'defines': [ |
440 ], | 452 # '_X86_', |
441 }], | 453 # ], |
442 ], | 454 # }], |
455 # ], | |
srdjan
2014/06/05 17:00:46
Is the above dead code that should be removed?
Vyacheslav Egorov (Google)
2014/06/05 18:05:55
Apparently we only comment things, but don't remov
| |
443 }], | 456 }], |
444 ['component == "static_library"', { | 457 ['component == "static_library"', { |
445 'defines': [ | 458 'defines': [ |
446 'NSPR_STATIC', | 459 'NSPR_STATIC', |
447 ], | 460 ], |
448 'direct_dependent_settings': { | 461 'direct_dependent_settings': { |
449 'defines': [ | 462 'defines': [ |
450 'NSPR_STATIC', | 463 'NSPR_STATIC', |
451 ], | 464 ], |
452 }, | 465 }, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
587 }, | 600 }, |
588 }, | 601 }, |
589 { | 602 { |
590 'target_name': 'nss_static_dart', # Added by Dart (the _dart postfix) | 603 'target_name': 'nss_static_dart', # Added by Dart (the _dart postfix) |
591 'type': 'static_library', | 604 'type': 'static_library', |
592 'toolsets':['host','target'], | 605 'toolsets':['host','target'], |
593 # This target is an implementation detail - the public dependencies | 606 # This target is an implementation detail - the public dependencies |
594 # should be on 'nss'. | 607 # should be on 'nss'. |
595 'suppress_wildcard': 1, | 608 'suppress_wildcard': 1, |
596 'sources': [ | 609 'sources': [ |
610 'os_windows.c', | |
597 '<(nss_directory)/nss/lib/base/arena.c', | 611 '<(nss_directory)/nss/lib/base/arena.c', |
598 '<(nss_directory)/nss/lib/base/base.h', | 612 '<(nss_directory)/nss/lib/base/base.h', |
599 '<(nss_directory)/nss/lib/base/baset.h', | 613 '<(nss_directory)/nss/lib/base/baset.h', |
600 '<(nss_directory)/nss/lib/base/error.c', | 614 '<(nss_directory)/nss/lib/base/error.c', |
601 '<(nss_directory)/nss/lib/base/errorval.c', | 615 '<(nss_directory)/nss/lib/base/errorval.c', |
602 '<(nss_directory)/nss/lib/base/hash.c', | 616 '<(nss_directory)/nss/lib/base/hash.c', |
603 '<(nss_directory)/nss/lib/base/hashops.c', | 617 '<(nss_directory)/nss/lib/base/hashops.c', |
604 '<(nss_directory)/nss/lib/base/item.c', | 618 '<(nss_directory)/nss/lib/base/item.c', |
605 '<(nss_directory)/nss/lib/base/libc.c', | 619 '<(nss_directory)/nss/lib/base/libc.c', |
606 '<(nss_directory)/nss/lib/base/list.c', | 620 '<(nss_directory)/nss/lib/base/list.c', |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1299 'WIN95', | 1313 'WIN95', |
1300 '_WINDOWS', | 1314 '_WINDOWS', |
1301 ], | 1315 ], |
1302 'direct_dependent_settings': { | 1316 'direct_dependent_settings': { |
1303 'defines': [ | 1317 'defines': [ |
1304 '_WINDOWS', | 1318 '_WINDOWS', |
1305 ], | 1319 ], |
1306 }, | 1320 }, |
1307 'sources!': [ | 1321 'sources!': [ |
1308 '<(nss_directory)/nss/lib/freebl/mpi/mpi_amd64.c', | 1322 '<(nss_directory)/nss/lib/freebl/mpi/mpi_amd64.c', |
1323 # If needed it will be included by os_windows.c. | |
1324 '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c', | |
1309 ], | 1325 ], |
1310 'conditions': [ | 1326 # Changed by Dart. We don't use target_arch. This was moved into |
1311 ['target_arch=="ia32"', { | 1327 # configurations instead. |
1312 'defines': [ | 1328 # 'conditions': [ |
1313 'NSS_X86_OR_X64', | 1329 # ['target_arch=="ia32"', { |
1314 'NSS_X86', | 1330 # 'defines': [ |
1315 '_X86_', | 1331 # 'NSS_X86_OR_X64', |
1316 'MP_ASSEMBLY_MULTIPLY', | 1332 # 'NSS_X86', |
1317 'MP_ASSEMBLY_SQUARE', | 1333 # '_X86_', |
1318 'MP_ASSEMBLY_DIV_2DX1D', | 1334 # 'MP_ASSEMBLY_MULTIPLY', |
1319 'MP_USE_UINT_DIGIT', | 1335 # 'MP_ASSEMBLY_SQUARE', |
1320 'MP_NO_MP_WORD', | 1336 # 'MP_ASSEMBLY_DIV_2DX1D', |
1321 ], | 1337 # 'MP_USE_UINT_DIGIT', |
1322 }], | 1338 # 'MP_NO_MP_WORD', |
1323 ['target_arch=="x64"', { | 1339 # ], |
1324 'defines': [ | 1340 # }], |
1325 'NSS_USE_64', | 1341 # ['target_arch=="x64"', { |
1326 'NSS_X86_OR_X64', | 1342 # 'defines': [ |
1327 'NSS_X64', | 1343 # 'NSS_USE_64', |
1328 '_AMD64_', | 1344 # 'NSS_X86_OR_X64', |
1329 'MP_CHAR_STORE_SLOW', | 1345 # 'NSS_X64', |
1330 'MP_IS_LITTLE_ENDIAN', | 1346 # '_AMD64_', |
1331 'WIN64', | 1347 # 'MP_CHAR_STORE_SLOW', |
1332 ], | 1348 # 'MP_IS_LITTLE_ENDIAN', |
1333 'sources!': [ | 1349 # 'WIN64', |
1334 '<(nss_directory)/nss/lib/freebl/mpi/mpi_amd64.c', | 1350 # ], |
1335 '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c', | 1351 # 'sources!': [ |
1336 ], | 1352 # '<(nss_directory)/nss/lib/freebl/mpi/mpi_amd64.c', |
1337 }], | 1353 # '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c', |
1338 ], | 1354 # ], |
1355 # }], | |
1356 # ], | |
srdjan
2014/06/05 17:00:46
ditto?
Vyacheslav Egorov (Google)
2014/06/05 18:05:55
see the reasoning above.
| |
1339 }, { # else: OS!="win" | 1357 }, { # else: OS!="win" |
1340 'sources!': [ | 1358 'sources!': [ |
1359 'os_windows.c', | |
1341 # mpi_x86_asm.c contains MSVC inline assembly code. | 1360 # mpi_x86_asm.c contains MSVC inline assembly code. |
1342 '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c', | 1361 '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c', |
1343 ], | 1362 ], |
1344 }], | 1363 }], |
1345 ['clang==1', { | 1364 ['clang==1', { |
1346 'xcode_settings': { | 1365 'xcode_settings': { |
1347 'WARNING_CFLAGS': [ | 1366 'WARNING_CFLAGS': [ |
1348 # nss doesn't explicitly cast between different enum types. | 1367 # nss doesn't explicitly cast between different enum types. |
1349 '-Wno-conversion', | 1368 '-Wno-conversion', |
1350 # nss passes "const char*" through "void*". | 1369 # nss passes "const char*" through "void*". |
(...skipping 12 matching lines...) Expand all Loading... | |
1363 '-Wno-logical-op-parentheses', | 1382 '-Wno-logical-op-parentheses', |
1364 '-Wno-switch', | 1383 '-Wno-switch', |
1365 '-Wno-tautological-compare', | 1384 '-Wno-tautological-compare', |
1366 ], | 1385 ], |
1367 }], | 1386 }], |
1368 ], | 1387 ], |
1369 }, | 1388 }, |
1370 ], | 1389 ], |
1371 }]], | 1390 }]], |
1372 } | 1391 } |
OLD | NEW |