Skip to content

Commit

Permalink
build: add gn files for deps/nbytes
Browse files Browse the repository at this point in the history
PR-URL: #53685
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
zcbenz authored and aduh95 committed Jul 16, 2024
1 parent ab9adfc commit 40032eb
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
14 changes: 14 additions & 0 deletions deps/nbytes/BUILD.gn
Original file line number Diff line number Diff line change
@@ -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 changes: 25 additions & 0 deletions deps/nbytes/unofficial.gni
Original file line number Diff line number Diff line change
@@ -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
}
}
2 changes: 2 additions & 0 deletions unofficial.gni
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ template("node_gn_build") {
"deps/cares",
"deps/histogram",
"deps/llhttp",
"deps/nbytes",
"deps/nghttp2",
"deps/ngtcp2",
"deps/postject",
Expand Down Expand Up @@ -331,6 +332,7 @@ template("node_gn_build") {
":libnode",
"deps/googletest",
"deps/googletest:gtest_main",
"deps/nbytes",
"deps/simdutf",
]

Expand Down

0 comments on commit 40032eb

Please sign in to comment.