|
357 | 357 | dest='shared_libuv_libpath', |
358 | 358 | help='a directory to search for the shared libuv DLL') |
359 | 359 |
|
| 360 | +shared_optgroup.add_argument('--shared-lief', |
| 361 | + action='store_true', |
| 362 | + dest='shared_lief', |
| 363 | + default=None, |
| 364 | + help='link to a shared lief DLL instead of static linking') |
| 365 | + |
| 366 | +shared_optgroup.add_argument('--shared-lief-includes', |
| 367 | + action='store', |
| 368 | + dest='shared_lief_includes', |
| 369 | + help='directory containing lief header files') |
| 370 | + |
| 371 | +shared_optgroup.add_argument('--shared-lief-libname', |
| 372 | + action='store', |
| 373 | + dest='shared_lief_libname', |
| 374 | + default='LIEF', |
| 375 | + help='alternative lib name to link to [default: %(default)s]') |
| 376 | + |
| 377 | +shared_optgroup.add_argument('--shared-lief-libpath', |
| 378 | + action='store', |
| 379 | + dest='shared_lief_libpath', |
| 380 | + help='a directory to search for the shared lief DLL') |
| 381 | + |
360 | 382 | shared_optgroup.add_argument('--shared-nbytes', |
361 | 383 | action='store_true', |
362 | 384 | dest='shared_nbytes', |
@@ -2038,6 +2060,14 @@ def without_ssl_error(option): |
2038 | 2060 |
|
2039 | 2061 | o['variables']['openssl_version'] = get_openssl_version(o) |
2040 | 2062 |
|
| 2063 | +def configure_lief(o): |
| 2064 | + if options.without_lief: |
| 2065 | + if options.shared_lief: |
| 2066 | + error('--without-lief is incompatible with --shared-lief') |
| 2067 | + return |
| 2068 | + |
| 2069 | + configure_library('lief', o, pkgname='LIEF') |
| 2070 | + |
2041 | 2071 | def configure_sqlite(o): |
2042 | 2072 | o['variables']['node_use_sqlite'] = b(not options.without_sqlite) |
2043 | 2073 | if options.without_sqlite: |
@@ -2499,6 +2529,7 @@ def make_bin_override(): |
2499 | 2529 | configure_library('nghttp2', output, pkgname='libnghttp2') |
2500 | 2530 | configure_library('nghttp3', output, pkgname='libnghttp3') |
2501 | 2531 | configure_library('ngtcp2', output, pkgname='libngtcp2') |
| 2532 | +configure_lief(output); |
2502 | 2533 | configure_sqlite(output); |
2503 | 2534 | configure_library('temporal_capi', output) |
2504 | 2535 | configure_library('uvwasi', output) |
|
0 commit comments