|
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', |
@@ -1933,6 +1955,14 @@ def without_ssl_error(option): |
1933 | 1955 |
|
1934 | 1956 | configure_library('openssl', o) |
1935 | 1957 |
|
| 1958 | +def configure_lief(o): |
| 1959 | + if options.without_lief: |
| 1960 | + if options.shared_lief: |
| 1961 | + error('--without-lief is incompatible with --shared-lief') |
| 1962 | + return |
| 1963 | + |
| 1964 | + configure_library('lief', o, pkgname='LIEF') |
| 1965 | + |
1936 | 1966 | def configure_sqlite(o): |
1937 | 1967 | o['variables']['node_use_sqlite'] = b(not options.without_sqlite) |
1938 | 1968 | if options.without_sqlite: |
@@ -2390,6 +2420,7 @@ def make_bin_override(): |
2390 | 2420 | configure_library('nghttp2', output, pkgname='libnghttp2') |
2391 | 2421 | configure_library('nghttp3', output, pkgname='libnghttp3') |
2392 | 2422 | configure_library('ngtcp2', output, pkgname='libngtcp2') |
| 2423 | +configure_lief(output); |
2393 | 2424 | configure_sqlite(output); |
2394 | 2425 | configure_library('uvwasi', output) |
2395 | 2426 | configure_library('zstd', output, pkgname='libzstd') |
|
0 commit comments