-
nad::injectNodeExtensions(node_extensions_h_file, node_extensions_cc_file, extensions, cb)
-
Injects source into
node_extensions.h
file to includeNODE_EXT_LIST_ITEM
macro calls for all valid targets of the addon.This is only necessary for node
< v0.11
sincenode_extensions.h
andnode_extensions.cc
drastically changed during0.11
development until they completely disappeared aroundv0.11.12
. Starting withv0.11.13
an addon module can be loaded dynamically even if it is not registered in the source code.Example
For targets
[ 'node_foo', 'node_bar' ]
it injects following code intonode_extensions.h
/* START nad INJECTION, PLEASE DO NOT REMOVE / #ifdef NODE_FOO_ADDON NODE_EXT_LIST_ITEM(node_bar) #endif #ifdef NODE_BAR_ADDON NODE_EXT_LIST_ITEM(node_bar) #endif /* END nad INJECTION, PLEASE DO NOT REMOVE /
Then it modifies
node_extensions.cc
in order to find our addons even if they don't start withnode_
.Parameters:
Name Type Description node_extensions_h_file
string full path to
node_extensions.h
node_extensions_cc_file
string full path to
node_extensions.cc
extensions
Array.<string> the extensions to insert
cb
function called back when injection is completed
- Source:
-
nad::injectNodeGyp(projectDir, nodeDir, cb)
-
Injects necessary adjustments into
node.gyp
in order to include files of the addon found insidebinding.gyp
in the node build.Parameters:
Name Type Description projectDir
string full path to the directory of the addon project (where the
binding.gyp
file lives)nodeDir
string full path to the directory at which the node source code is located (alongside
node.gyp
)cb
function invoked when finished
- Source:
Maintenance
Commit Frequency
Further analysis of the maintenance status of nad based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
An important project maintenance signal to consider for nad is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.