node/deps/nbytes/unofficial.gni
Cheng 014dad5953
deps: fix include_dirs of nbytes
PR-URL: https://github.com/nodejs/node/pull/53862
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2024-07-18 07:39:34 +00:00

26 lines
817 B
Plaintext

# 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 = [ "include" ]
}
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
}
}