build: add gn files for deps/nbytes · nodejs/node@40032eb · GitHub
Skip to content

Commit 40032eb

Browse files
zcbenzaduh95
authored andcommitted
build: add gn files for deps/nbytes
PR-URL: #53685 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent ab9adfc commit 40032eb

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

deps/nbytes/BUILD.gn

Lines changed: 14 additions & 0 deletions

deps/nbytes/unofficial.gni

Lines changed: 25 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)