deps: add perfetto build files

PR-URL: https://github.com/nodejs/node/pull/62397
Refs: https://github.com/nodejs/diagnostics/issues/654
Refs: https://issues.chromium.org/issues/457135433
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
Chengzhong Wu authored and Node.js GitHub Bot committed 2026-04-09 19:37:34 +00:00
1 parent f01f79ea7c
commit ec45b95c93
4 files changed
+59

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
##############################################################################
# #
# DO NOT EDIT THIS FILE! #
# #
##############################################################################
# This file is used by GN for building, which is NOT the build system used for
# building official binaries.
# Please modify the gyp files if you are making changes to build system.
import("unofficial.gni")
perfetto_sdk_gn_build("perfetto_sdk") {
}
+1
View File
@@ -0,0 +1 @@
0.0
+22
View File
@@ -0,0 +1,22 @@
{
'variables': {
'perfetto_sdk_sources': [
'sdk/perfetto.cc',
'sdk/perfetto.h',
]
},
'targets': [
{
'target_name': 'perfetto_sdk',
'type': 'static_library',
'include_dirs': [ 'sdk' ],
'direct_dependent_settings': {
# Use like `#include "perfetto.h"`
'include_dirs': [ 'sdk' ],
},
'sources': [
'<@(perfetto_sdk_sources)',
],
},
]
}
+22
View File
@@ -0,0 +1,22 @@
# This file is used by GN for building, which is NOT the build system used for
# building official binaries.
# Please edit the gyp files if you are making changes to build system.
# The actual configurations are put inside a template in unofficial.gni to
# prevent accidental edits from contributors.
template("perfetto_sdk_gn_build") {
config("perfetto_sdk_config") {
include_dirs = [ "./sdk" ]
}
gypi_values = exec_script("../../tools/gypi_to_gn.py",
[ rebase_path("perfetto.gyp") ],
"scope",
[ "perfetto.gyp" ])
source_set(target_name) {
forward_variables_from(invoker, "*")
public_configs = [ ":perfetto_sdk_config" ]
sources = gypi_values.perfetto_sdk_sources
}
}