|
349 | 349 | dest='shared_libuv_libpath', |
350 | 350 | help='a directory to search for the shared libuv DLL') |
351 | 351 |
|
| 352 | +shared_optgroup.add_argument('--shared-lief', |
| 353 | + action='store_true', |
| 354 | + dest='shared_lief', |
| 355 | + default=None, |
| 356 | + help='link to a shared lief DLL instead of static linking') |
| 357 | + |
| 358 | +shared_optgroup.add_argument('--shared-lief-includes', |
| 359 | + action='store', |
| 360 | + dest='shared_lief_includes', |
| 361 | + help='directory containing lief header files') |
| 362 | + |
| 363 | +shared_optgroup.add_argument('--shared-lief-libname', |
| 364 | + action='store', |
| 365 | + dest='shared_lief_libname', |
| 366 | + default='LIEF', |
| 367 | + help='alternative lib name to link to [default: %(default)s]') |
| 368 | + |
| 369 | +shared_optgroup.add_argument('--shared-lief-libpath', |
| 370 | + action='store', |
| 371 | + dest='shared_lief_libpath', |
| 372 | + help='a directory to search for the shared lief DLL') |
| 373 | + |
352 | 374 | shared_optgroup.add_argument('--shared-nbytes', |
353 | 375 | action='store_true', |
354 | 376 | dest='shared_nbytes', |
@@ -1947,6 +1969,14 @@ def without_ssl_error(option): |
1947 | 1969 |
|
1948 | 1970 | configure_library('openssl', o) |
1949 | 1971 |
|
| 1972 | +def configure_lief(o): |
| 1973 | + if options.without_lief: |
| 1974 | + if options.shared_lief: |
| 1975 | + error('--without-lief is incompatible with --shared-lief') |
| 1976 | + return |
| 1977 | + |
| 1978 | + configure_library('lief', o, pkgname='LIEF') |
| 1979 | + |
1950 | 1980 | def configure_sqlite(o): |
1951 | 1981 | o['variables']['node_use_sqlite'] = b(not options.without_sqlite) |
1952 | 1982 | if options.without_sqlite: |
@@ -2404,6 +2434,7 @@ def make_bin_override(): |
2404 | 2434 | configure_library('nghttp2', output, pkgname='libnghttp2') |
2405 | 2435 | configure_library('nghttp3', output, pkgname='libnghttp3') |
2406 | 2436 | configure_library('ngtcp2', output, pkgname='libngtcp2') |
| 2437 | +configure_lief(output); |
2407 | 2438 | configure_sqlite(output); |
2408 | 2439 | configure_library('uvwasi', output) |
2409 | 2440 | configure_library('zstd', output, pkgname='libzstd') |
|
0 commit comments