|
93 | 93 | 'deps/v8/tools/SourceMap.js',
|
94 | 94 | 'deps/v8/tools/tickprocessor-driver.js',
|
95 | 95 | ],
|
| 96 | + 'conditions': [ |
| 97 | + [ 'OS=="win" and ' |
| 98 | + 'node_use_openssl=="true" and ' |
| 99 | + 'node_shared_openssl=="false"', { |
| 100 | + 'use_openssl_def': 1, |
| 101 | + }, { |
| 102 | + 'use_openssl_def': 0, |
| 103 | + }], |
| 104 | + ], |
96 | 105 | },
|
97 | 106 |
|
98 | 107 | 'targets': [
|
|
291 | 300 | '-Wl,--no-whole-archive',
|
292 | 301 | ],
|
293 | 302 | }],
|
| 303 | + ['use_openssl_def==1', { |
| 304 | + 'sources': ['<(SHARED_INTERMEDIATE_DIR)/openssl.def'], |
| 305 | + }], |
294 | 306 | ],
|
295 | 307 | }],
|
296 | 308 | ],
|
|
464 | 476 | }
|
465 | 477 | },
|
466 | 478 | },
|
| 479 | + { |
| 480 | + 'target_name': 'mkssldef', |
| 481 | + 'type': 'none', |
| 482 | + # TODO(bnoordhuis) Make all platforms export the same list of symbols. |
| 483 | + # Teach mkssldef.py to generate linker maps that UNIX linkers understand. |
| 484 | + 'conditions': [ |
| 485 | + [ 'use_openssl_def==1', { |
| 486 | + 'variables': { |
| 487 | + 'mkssldef_flags': [ |
| 488 | + # Categories to export. |
| 489 | + '-CAES,BF,BIO,DES,DH,DSA,EC,ECDH,ECDSA,ENGINE,EVP,HMAC,MD4,MD5,' |
| 490 | + 'NEXTPROTONEG,PSK,RC2,RC4,RSA,SHA,SHA0,SHA1,SHA256,SHA512,TLSEXT', |
| 491 | + # Defines. |
| 492 | + '-DWIN32', |
| 493 | + # Symbols to filter from the export list. |
| 494 | + '-X^DSO', |
| 495 | + '-X^_', |
| 496 | + '-X^private_', |
| 497 | + ], |
| 498 | + }, |
| 499 | + 'conditions': [ |
| 500 | + ['openssl_fips!=""', { |
| 501 | + 'variables': { 'mkssldef_flags': ['-DOPENSSL_FIPS'] }, |
| 502 | + }], |
| 503 | + ], |
| 504 | + 'actions': [ |
| 505 | + { |
| 506 | + 'action_name': 'mkssldef', |
| 507 | + 'inputs': [ |
| 508 | + 'deps/openssl/openssl/util/libeay.num', |
| 509 | + 'deps/openssl/openssl/util/ssleay.num', |
| 510 | + ], |
| 511 | + 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/openssl.def'], |
| 512 | + 'action': [ |
| 513 | + 'python', |
| 514 | + 'tools/mkssldef.py', |
| 515 | + '<@(mkssldef_flags)', |
| 516 | + '-o', |
| 517 | + '<@(_outputs)', |
| 518 | + '<@(_inputs)', |
| 519 | + ], |
| 520 | + }, |
| 521 | + ], |
| 522 | + }], |
| 523 | + ], |
| 524 | + }, |
467 | 525 | # generate ETW header and resource files
|
468 | 526 | {
|
469 | 527 | 'target_name': 'node_etw',
|
|
0 commit comments