0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-21 21:19:50 +01:00

build: add gn files for deps/nbytes

PR-URL: https://github.com/nodejs/node/pull/53685
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Cheng 2024-07-02 14:37:01 +09:00
parent daea065f24
commit 7e80584829
3 changed files with 41 additions and 0 deletions

14
deps/nbytes/BUILD.gn vendored Normal file
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")
nbytes_gn_build("nbytes") {
}

25
deps/nbytes/unofficial.gni vendored Normal file
View File

@ -0,0 +1,25 @@
# 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.
import("../../node.gni")
import("$node_v8_path/gni/v8.gni")
# The actual configurations are put inside a template in unofficial.gni to
# prevent accidental edits from contributors.
template("nbytes_gn_build") {
config("nbytes_config") {
include_dirs = [ "." ]
}
gypi_values = exec_script("../../tools/gypi_to_gn.py",
[ rebase_path("nbytes.gyp") ],
"scope",
[ "nbytes.gyp" ])
source_set(target_name) {
forward_variables_from(invoker, "*")
public_configs = [ ":nbytes_config" ]
sources = gypi_values.nbytes_sources
}
}

View File

@ -148,6 +148,7 @@ template("node_gn_build") {
"deps/cares",
"deps/histogram",
"deps/llhttp",
"deps/nbytes",
"deps/nghttp2",
"deps/ngtcp2",
"deps/postject",
@ -331,6 +332,7 @@ template("node_gn_build") {
":libnode",
"deps/googletest",
"deps/googletest:gtest_main",
"deps/nbytes",
"deps/simdutf",
]