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

Side by Side Diff: runtime/bin/net/nss.gyp

Issue 317773002: Fix Win64 build of Dart VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments 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 | « no previous file | runtime/bin/net/os_windows.c » ('j') | 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) 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
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 },
82 # Added by Dart. All target_arch specific defines are taken
83 # from below.
84 'Dart_ia32_Base': {
85 'defines': [
86 'NSS_X86_OR_X64',
87 'NSS_X86',
88 '_X86_',
89 'MP_ASSEMBLY_MULTIPLY',
90 'MP_ASSEMBLY_SQUARE',
91 'MP_ASSEMBLY_DIV_2DX1D',
92 'MP_USE_UINT_DIGIT',
93 'MP_NO_MP_WORD',
94 ],
95 },
96 'Dart_x64_Base': {
97 'defines': [
98 'NSS_USE_64',
99 'NSS_X86_OR_X64',
100 'NSS_X64',
101 '_AMD64_',
102 'MP_CHAR_STORE_SLOW',
103 'MP_IS_LITTLE_ENDIAN',
104 'WIN64',
105 ],
106 },
93 }, 107 },
94 'defines!': [ 108 'defines!': [
95 'WIN32_LEAN_AND_MEAN', 109 'WIN32_LEAN_AND_MEAN',
96 ], 110 ],
97 }], 111 }],
98 ], 112 ],
99 }, 113 },
100 # Added by Dart. We do not indent, so diffs with the original are clearer. 114 # Added by Dart. We do not indent, so diffs with the original are clearer.
101 'conditions': [[ 'dart_io_support==1', { 115 'conditions': [[ 'dart_io_support==1', {
102 'targets': [ 116 'targets': [
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 # Added by Dart. 440 # Added by Dart.
427 'os_linux.S', 441 'os_linux.S',
428 ], 442 ],
429 # Changed by Dart: 443 # Changed by Dart:
430 # nss_directory contains .., which is bad in a regular expression. 444 # nss_directory contains .., which is bad in a regular expression.
431 # So we use the partial match by dropping '^' from '^nspr/... 445 # So we use the partial match by dropping '^' from '^nspr/...
432 'sources/': [ 446 'sources/': [
433 ['exclude', 'nspr/pr/src/md/unix/'], 447 ['exclude', 'nspr/pr/src/md/unix/'],
434 ['exclude', 'nspr/pr/src/pthreads/'], 448 ['exclude', 'nspr/pr/src/pthreads/'],
435 ], 449 ],
436 'conditions': [ 450 # Changed by Dart. We don't use target_arch.
437 ['target_arch=="ia32"', { 451 # 'conditions': [
438 'defines': [ 452 # ['target_arch=="ia32"', {
439 '_X86_', 453 # 'defines': [
440 ], 454 # '_X86_',
441 }], 455 # ],
442 ], 456 # }],
457 # ],
443 }], 458 }],
444 ['component == "static_library"', { 459 ['component == "static_library"', {
445 'defines': [ 460 'defines': [
446 'NSPR_STATIC', 461 'NSPR_STATIC',
447 ], 462 ],
448 'direct_dependent_settings': { 463 'direct_dependent_settings': {
449 'defines': [ 464 'defines': [
450 'NSPR_STATIC', 465 'NSPR_STATIC',
451 ], 466 ],
452 }, 467 },
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 }, 602 },
588 }, 603 },
589 { 604 {
590 'target_name': 'nss_static_dart', # Added by Dart (the _dart postfix) 605 'target_name': 'nss_static_dart', # Added by Dart (the _dart postfix)
591 'type': 'static_library', 606 'type': 'static_library',
592 'toolsets':['host','target'], 607 'toolsets':['host','target'],
593 # This target is an implementation detail - the public dependencies 608 # This target is an implementation detail - the public dependencies
594 # should be on 'nss'. 609 # should be on 'nss'.
595 'suppress_wildcard': 1, 610 'suppress_wildcard': 1,
596 'sources': [ 611 'sources': [
612 'os_windows.c',
597 '<(nss_directory)/nss/lib/base/arena.c', 613 '<(nss_directory)/nss/lib/base/arena.c',
598 '<(nss_directory)/nss/lib/base/base.h', 614 '<(nss_directory)/nss/lib/base/base.h',
599 '<(nss_directory)/nss/lib/base/baset.h', 615 '<(nss_directory)/nss/lib/base/baset.h',
600 '<(nss_directory)/nss/lib/base/error.c', 616 '<(nss_directory)/nss/lib/base/error.c',
601 '<(nss_directory)/nss/lib/base/errorval.c', 617 '<(nss_directory)/nss/lib/base/errorval.c',
602 '<(nss_directory)/nss/lib/base/hash.c', 618 '<(nss_directory)/nss/lib/base/hash.c',
603 '<(nss_directory)/nss/lib/base/hashops.c', 619 '<(nss_directory)/nss/lib/base/hashops.c',
604 '<(nss_directory)/nss/lib/base/item.c', 620 '<(nss_directory)/nss/lib/base/item.c',
605 '<(nss_directory)/nss/lib/base/libc.c', 621 '<(nss_directory)/nss/lib/base/libc.c',
606 '<(nss_directory)/nss/lib/base/list.c', 622 '<(nss_directory)/nss/lib/base/list.c',
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 'WIN95', 1315 'WIN95',
1300 '_WINDOWS', 1316 '_WINDOWS',
1301 ], 1317 ],
1302 'direct_dependent_settings': { 1318 'direct_dependent_settings': {
1303 'defines': [ 1319 'defines': [
1304 '_WINDOWS', 1320 '_WINDOWS',
1305 ], 1321 ],
1306 }, 1322 },
1307 'sources!': [ 1323 'sources!': [
1308 '<(nss_directory)/nss/lib/freebl/mpi/mpi_amd64.c', 1324 '<(nss_directory)/nss/lib/freebl/mpi/mpi_amd64.c',
1325 # If needed it will be included by os_windows.c.
1326 '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c',
1309 ], 1327 ],
1310 'conditions': [ 1328 # Changed by Dart. We don't use target_arch. This was moved into
1311 ['target_arch=="ia32"', { 1329 # configurations instead.
1312 'defines': [ 1330 # 'conditions': [
1313 'NSS_X86_OR_X64', 1331 # ['target_arch=="ia32"', {
1314 'NSS_X86', 1332 # 'defines': [
1315 '_X86_', 1333 # 'NSS_X86_OR_X64',
1316 'MP_ASSEMBLY_MULTIPLY', 1334 # 'NSS_X86',
1317 'MP_ASSEMBLY_SQUARE', 1335 # '_X86_',
1318 'MP_ASSEMBLY_DIV_2DX1D', 1336 # 'MP_ASSEMBLY_MULTIPLY',
1319 'MP_USE_UINT_DIGIT', 1337 # 'MP_ASSEMBLY_SQUARE',
1320 'MP_NO_MP_WORD', 1338 # 'MP_ASSEMBLY_DIV_2DX1D',
1321 ], 1339 # 'MP_USE_UINT_DIGIT',
1322 }], 1340 # 'MP_NO_MP_WORD',
1323 ['target_arch=="x64"', { 1341 # ],
1324 'defines': [ 1342 # }],
1325 'NSS_USE_64', 1343 # ['target_arch=="x64"', {
1326 'NSS_X86_OR_X64', 1344 # 'defines': [
1327 'NSS_X64', 1345 # 'NSS_USE_64',
1328 '_AMD64_', 1346 # 'NSS_X86_OR_X64',
1329 'MP_CHAR_STORE_SLOW', 1347 # 'NSS_X64',
1330 'MP_IS_LITTLE_ENDIAN', 1348 # '_AMD64_',
1331 'WIN64', 1349 # 'MP_CHAR_STORE_SLOW',
1332 ], 1350 # 'MP_IS_LITTLE_ENDIAN',
1333 'sources!': [ 1351 # 'WIN64',
1334 '<(nss_directory)/nss/lib/freebl/mpi/mpi_amd64.c', 1352 # ],
1335 '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c', 1353 # 'sources!': [
1336 ], 1354 # '<(nss_directory)/nss/lib/freebl/mpi/mpi_amd64.c',
1337 }], 1355 # '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c',
1338 ], 1356 # ],
1357 # }],
1358 # ],
1339 }, { # else: OS!="win" 1359 }, { # else: OS!="win"
1340 'sources!': [ 1360 'sources!': [
1361 'os_windows.c',
1341 # mpi_x86_asm.c contains MSVC inline assembly code. 1362 # mpi_x86_asm.c contains MSVC inline assembly code.
1342 '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c', 1363 '<(nss_directory)/nss/lib/freebl/mpi/mpi_x86_asm.c',
1343 ], 1364 ],
1344 }], 1365 }],
1345 ['clang==1', { 1366 ['clang==1', {
1346 'xcode_settings': { 1367 'xcode_settings': {
1347 'WARNING_CFLAGS': [ 1368 'WARNING_CFLAGS': [
1348 # nss doesn't explicitly cast between different enum types. 1369 # nss doesn't explicitly cast between different enum types.
1349 '-Wno-conversion', 1370 '-Wno-conversion',
1350 # nss passes "const char*" through "void*". 1371 # nss passes "const char*" through "void*".
(...skipping 12 matching lines...) Expand all
1363 '-Wno-logical-op-parentheses', 1384 '-Wno-logical-op-parentheses',
1364 '-Wno-switch', 1385 '-Wno-switch',
1365 '-Wno-tautological-compare', 1386 '-Wno-tautological-compare',
1366 ], 1387 ],
1367 }], 1388 }],
1368 ], 1389 ],
1369 }, 1390 },
1370 ], 1391 ],
1371 }]], 1392 }]],
1372 } 1393 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/net/os_windows.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698