|
355 | 355 | dest='shared_libuv_libpath', |
356 | 356 | help='a directory to search for the shared libuv DLL') |
357 | 357 |
|
| 358 | +shared_optgroup.add_argument('--shared-lief', |
| 359 | + action='store_true', |
| 360 | + dest='shared_lief', |
| 361 | + default=None, |
| 362 | + help='link to a shared lief DLL instead of static linking') |
| 363 | + |
| 364 | +shared_optgroup.add_argument('--shared-lief-includes', |
| 365 | + action='store', |
| 366 | + dest='shared_lief_includes', |
| 367 | + help='directory containing lief header files') |
| 368 | + |
| 369 | +shared_optgroup.add_argument('--shared-lief-libname', |
| 370 | + action='store', |
| 371 | + dest='shared_lief_libname', |
| 372 | + default='LIEF', |
| 373 | + help='alternative lib name to link to [default: %(default)s]') |
| 374 | + |
| 375 | +shared_optgroup.add_argument('--shared-lief-libpath', |
| 376 | + action='store', |
| 377 | + dest='shared_lief_libpath', |
| 378 | + help='a directory to search for the shared lief DLL') |
| 379 | + |
358 | 380 | shared_optgroup.add_argument('--shared-nbytes', |
359 | 381 | action='store_true', |
360 | 382 | dest='shared_nbytes', |
@@ -2120,6 +2142,14 @@ def without_ssl_error(option): |
2120 | 2142 |
|
2121 | 2143 | o['variables']['openssl_version'] = get_openssl_version(o) |
2122 | 2144 |
|
| 2145 | +def configure_lief(o): |
| 2146 | + if options.without_lief: |
| 2147 | + if options.shared_lief: |
| 2148 | + error('--without-lief is incompatible with --shared-lief') |
| 2149 | + return |
| 2150 | + |
| 2151 | + configure_library('lief', o, pkgname='LIEF') |
| 2152 | + |
2123 | 2153 | def configure_sqlite(o): |
2124 | 2154 | o['variables']['node_use_sqlite'] = b(not options.without_sqlite) |
2125 | 2155 | if options.without_sqlite: |
@@ -2582,6 +2612,7 @@ def make_bin_override(): |
2582 | 2612 | configure_library('nghttp2', output, pkgname='libnghttp2') |
2583 | 2613 | configure_library('nghttp3', output, pkgname='libnghttp3') |
2584 | 2614 | configure_library('ngtcp2', output, pkgname='libngtcp2') |
| 2615 | +configure_lief(output); |
2585 | 2616 | configure_sqlite(output); |
2586 | 2617 | configure_library('temporal_capi', output) |
2587 | 2618 | configure_library('uvwasi', output) |
|
0 commit comments