|
502 | 502 | dest='shared_openssl_libpath', |
503 | 503 | help='a directory to search for the shared OpenSSL DLLs') |
504 | 504 |
|
| 505 | +shared_optgroup.add_argument('--shared-perfetto', |
| 506 | + action='store_true', |
| 507 | + dest='shared_perfetto', |
| 508 | + default=None, |
| 509 | + help='link to a shared perfetto SDK instead of the one in deps/perfetto ' |
| 510 | + '(requires --with-perfetto)') |
| 511 | + |
| 512 | +shared_optgroup.add_argument('--shared-perfetto-includes', |
| 513 | + action='store', |
| 514 | + dest='shared_perfetto_includes', |
| 515 | + help='directory containing perfetto header files') |
| 516 | + |
| 517 | +shared_optgroup.add_argument('--shared-perfetto-libname', |
| 518 | + action='store', |
| 519 | + dest='shared_perfetto_libname', |
| 520 | + default='perfetto', |
| 521 | + help='alternative lib name to link to [default: %(default)s]') |
| 522 | + |
| 523 | +shared_optgroup.add_argument('--shared-perfetto-libpath', |
| 524 | + action='store', |
| 525 | + dest='shared_perfetto_libpath', |
| 526 | + help='a directory to search for the shared perfetto DLL') |
| 527 | + |
505 | 528 | shared_optgroup.add_argument('--shared-uvwasi', |
506 | 529 | action='store_true', |
507 | 530 | dest='shared_uvwasi', |
@@ -2318,6 +2341,15 @@ def configure_lief(o): |
2318 | 2341 |
|
2319 | 2342 | configure_library('lief', o, pkgname='LIEF') |
2320 | 2343 |
|
| 2344 | +def configure_perfetto(o): |
| 2345 | + if not options.with_perfetto: |
| 2346 | + if options.shared_perfetto: |
| 2347 | + error('--shared-perfetto requires --with-perfetto') |
| 2348 | + o['variables']['node_shared_perfetto'] = b(False) |
| 2349 | + return |
| 2350 | + |
| 2351 | + configure_library('perfetto', o) |
| 2352 | + |
2321 | 2353 | def configure_sqlite(o): |
2322 | 2354 | o['variables']['node_use_sqlite'] = b(not options.without_sqlite) |
2323 | 2355 | if options.without_sqlite: |
@@ -2827,6 +2859,7 @@ def make_bin_override(): |
2827 | 2859 | configure_library('nghttp3', output, pkgname='libnghttp3') |
2828 | 2860 | configure_library('ngtcp2', output, pkgname='libngtcp2') |
2829 | 2861 | configure_lief(output); |
| 2862 | +configure_perfetto(output); |
2830 | 2863 | configure_sqlite(output); |
2831 | 2864 | configure_ffi(output); |
2832 | 2865 | configure_library('temporal_capi', output) |
|
0 commit comments