Skip to content

Commit 40032eb

Browse files
zcbenzaduh95
authored andcommitted
build: add gn files for deps/nbytes
PR-URL: #53685 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ab9adfc commit 40032eb

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

deps/nbytes/BUILD.gn

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
##############################################################################
2+
# #
3+
# DO NOT EDIT THIS FILE! #
4+
# #
5+
##############################################################################
6+
7+
# This file is used by GN for building, which is NOT the build system used for
8+
# building official binaries.
9+
# Please modify the gyp files if you are making changes to build system.
10+
11+
import("unofficial.gni")
12+
13+
nbytes_gn_build("nbytes") {
14+
}

deps/nbytes/unofficial.gni

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This file is used by GN for building, which is NOT the build system used for
2+
# building official binaries.
3+
# Please edit the gyp files if you are making changes to build system.
4+
5+
import("../../node.gni")
6+
import("$node_v8_path/gni/v8.gni")
7+
8+
# The actual configurations are put inside a template in unofficial.gni to
9+
# prevent accidental edits from contributors.
10+
template("nbytes_gn_build") {
11+
config("nbytes_config") {
12+
include_dirs = [ "." ]
13+
}
14+
15+
gypi_values = exec_script("../../tools/gypi_to_gn.py",
16+
[ rebase_path("nbytes.gyp") ],
17+
"scope",
18+
[ "nbytes.gyp" ])
19+
20+
source_set(target_name) {
21+
forward_variables_from(invoker, "*")
22+
public_configs = [ ":nbytes_config" ]
23+
sources = gypi_values.nbytes_sources
24+
}
25+
}

unofficial.gni

+2
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ template("node_gn_build") {
148148
"deps/cares",
149149
"deps/histogram",
150150
"deps/llhttp",
151+
"deps/nbytes",
151152
"deps/nghttp2",
152153
"deps/ngtcp2",
153154
"deps/postject",
@@ -331,6 +332,7 @@ template("node_gn_build") {
331332
":libnode",
332333
"deps/googletest",
333334
"deps/googletest:gtest_main",
335+
"deps/nbytes",
334336
"deps/simdutf",
335337
]
336338

0 commit comments

Comments
 (0)