current commit
240718.1 · deps: fix include_dirs of nbytes
# 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
  }
}