|
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', |
@@ -2101,6 +2123,14 @@ def without_ssl_error(option): |
2101 | 2123 |
|
2102 | 2124 | o['variables']['openssl_version'] = get_openssl_version(o) |
2103 | 2125 |
|
| 2126 | +def configure_lief(o): |
| 2127 | + if options.without_lief: |
| 2128 | + if options.shared_lief: |
| 2129 | + error(f'--without-lief is incompatible with --shared-lief') |
| 2130 | + return |
| 2131 | + |
| 2132 | + configure_library('lief', o, pkgname='LIEF') |
| 2133 | + |
2104 | 2134 | def configure_sqlite(o): |
2105 | 2135 | o['variables']['node_use_sqlite'] = b(not options.without_sqlite) |
2106 | 2136 | if options.without_sqlite: |
@@ -2562,6 +2592,7 @@ def make_bin_override(): |
2562 | 2592 | configure_library('nghttp2', output, pkgname='libnghttp2') |
2563 | 2593 | configure_library('nghttp3', output, pkgname='libnghttp3') |
2564 | 2594 | configure_library('ngtcp2', output, pkgname='libngtcp2') |
| 2595 | +configure_lief(output); |
2565 | 2596 | configure_sqlite(output); |
2566 | 2597 | configure_library('temporal_capi', output) |
2567 | 2598 | configure_library('uvwasi', output) |
|
0 commit comments