|
524 | 524 | dest='shared_openssl_libpath', |
525 | 525 | help='a directory to search for the shared OpenSSL DLLs') |
526 | 526 |
|
| 527 | +shared_optgroup.add_argument('--shared-perfetto', |
| 528 | + action='store_true', |
| 529 | + dest='shared_perfetto', |
| 530 | + default=None, |
| 531 | + help='link to a shared perfetto SDK instead of the one in deps/perfetto ' |
| 532 | + '(requires --with-perfetto)') |
| 533 | + |
| 534 | +shared_optgroup.add_argument('--shared-perfetto-includes', |
| 535 | + action='store', |
| 536 | + dest='shared_perfetto_includes', |
| 537 | + help='directory containing perfetto header files') |
| 538 | + |
| 539 | +shared_optgroup.add_argument('--shared-perfetto-libname', |
| 540 | + action='store', |
| 541 | + dest='shared_perfetto_libname', |
| 542 | + default='perfetto', |
| 543 | + help='alternative lib name to link to [default: %(default)s]') |
| 544 | + |
| 545 | +shared_optgroup.add_argument('--shared-perfetto-libpath', |
| 546 | + action='store', |
| 547 | + dest='shared_perfetto_libpath', |
| 548 | + help='a directory to search for the shared perfetto DLL') |
| 549 | + |
527 | 550 | shared_optgroup.add_argument('--shared-uvwasi', |
528 | 551 | action='store_true', |
529 | 552 | dest='shared_uvwasi', |
@@ -2340,6 +2363,15 @@ def configure_lief(o): |
2340 | 2363 |
|
2341 | 2364 | configure_library('lief', o, pkgname='LIEF') |
2342 | 2365 |
|
| 2366 | +def configure_perfetto(o): |
| 2367 | + if not options.with_perfetto: |
| 2368 | + if options.shared_perfetto: |
| 2369 | + error('--shared-perfetto requires --with-perfetto') |
| 2370 | + o['variables']['node_shared_perfetto'] = b(False) |
| 2371 | + return |
| 2372 | + |
| 2373 | + configure_library('perfetto', o) |
| 2374 | + |
2343 | 2375 | def configure_sqlite(o): |
2344 | 2376 | o['variables']['node_use_sqlite'] = b(not options.without_sqlite) |
2345 | 2377 | if options.without_sqlite: |
@@ -2914,6 +2946,7 @@ def make_bin_override(): |
2914 | 2946 | configure_library('nghttp3', output, pkgname='libnghttp3') |
2915 | 2947 | configure_library('ngtcp2', output, pkgname='libngtcp2') |
2916 | 2948 | configure_lief(output); |
| 2949 | +configure_perfetto(output); |
2917 | 2950 | configure_sqlite(output); |
2918 | 2951 | configure_ffi(output); |
2919 | 2952 | configure_library('temporal_capi', output) |
|
0 commit comments