|
546 | 546 | dest='shared_openssl_libpath', |
547 | 547 | help='a directory to search for the shared OpenSSL DLLs') |
548 | 548 |
|
| 549 | +shared_optgroup.add_argument('--shared-perfetto', |
| 550 | + action='store_true', |
| 551 | + dest='shared_perfetto', |
| 552 | + default=None, |
| 553 | + help='link to a shared perfetto SDK instead of the one in deps/perfetto ' |
| 554 | + '(requires --with-perfetto)') |
| 555 | + |
| 556 | +shared_optgroup.add_argument('--shared-perfetto-includes', |
| 557 | + action='store', |
| 558 | + dest='shared_perfetto_includes', |
| 559 | + help='directory containing perfetto header files') |
| 560 | + |
| 561 | +shared_optgroup.add_argument('--shared-perfetto-libname', |
| 562 | + action='store', |
| 563 | + dest='shared_perfetto_libname', |
| 564 | + default='perfetto', |
| 565 | + help='alternative lib name to link to [default: %(default)s]') |
| 566 | + |
| 567 | +shared_optgroup.add_argument('--shared-perfetto-libpath', |
| 568 | + action='store', |
| 569 | + dest='shared_perfetto_libpath', |
| 570 | + help='a directory to search for the shared perfetto DLL') |
| 571 | + |
549 | 572 | shared_optgroup.add_argument('--shared-uvwasi', |
550 | 573 | action='store_true', |
551 | 574 | dest='shared_uvwasi', |
@@ -2362,6 +2385,15 @@ def configure_lief(o): |
2362 | 2385 |
|
2363 | 2386 | configure_library('lief', o, pkgname='LIEF') |
2364 | 2387 |
|
| 2388 | +def configure_perfetto(o): |
| 2389 | + if not options.with_perfetto: |
| 2390 | + if options.shared_perfetto: |
| 2391 | + error('--shared-perfetto requires --with-perfetto') |
| 2392 | + o['variables']['node_shared_perfetto'] = b(False) |
| 2393 | + return |
| 2394 | + |
| 2395 | + configure_library('perfetto', o) |
| 2396 | + |
2365 | 2397 | def configure_sqlite(o): |
2366 | 2398 | o['variables']['node_use_sqlite'] = b(not options.without_sqlite) |
2367 | 2399 | if options.without_sqlite: |
@@ -2937,6 +2969,7 @@ def make_bin_override(): |
2937 | 2969 | configure_library('nghttp3', output, pkgname='libnghttp3') |
2938 | 2970 | configure_library('ngtcp2', output, pkgname='libngtcp2') |
2939 | 2971 | configure_lief(output); |
| 2972 | +configure_perfetto(output); |
2940 | 2973 | configure_sqlite(output); |
2941 | 2974 | configure_ffi(output); |
2942 | 2975 | configure_library('temporal_capi', output) |
|
0 commit comments