mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
f01f79ea7c
commit
ec45b95c93
4 files changed
+59
No files matched your search
Vendored
+14
@@ -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") {
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
0.0
|
||||
Vendored
+22
@@ -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)',
|
||||
],
|
||||
},
|
||||
]
|
||||
}
|
||||
Vendored
+22
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user