Code Monkey home page Code Monkey logo

node-addon's Introduction

Templ Node.js Addon

Node.js CI

Hits Contributions welcome

JSCPD

Sonarcloud Status Code Smells Maintainability Rating Reliability Rating Security Rating

Lines of Code SonarCloud Coverage SonarCloud Bugs Technical Debt SonarCloud Vulnerabilities

Donate to this project using Patreon Donate to this project using Paypal

JavaScript Logo

Any fool can write code that a computer can understand. Good programmers write code that humans can understand. โ€“ Martin Fowler

nodejs-addon is a template project for developing Node.js addons using C/C++. It includes support for formatting and linting both C/C++ and JavaScript code, tools for assuring code quality as well as instructions to code further using two of the most popular IDEs on the market. It can also be configured to use any of the three C/C++ APIs provided by Node.js.

Please download it and adapt it as you see fit.

Warning! This template is provided as is. If you feel you do not have enough documentation, you are always free to read its code. We are developers after all and we are forced daily to read other people's code.

Getting Started

Project Description

The template is trying to cover multiple build systems as

Linters, Code Analysis, Formatters

Javascript
C++
Generic
  • jscpd for code analisys as copy paste detector
  • dependency-checker (designed by OWASP) for code analisys, will check dependencies & security

Git Hooks

Git hooks are configured using husky

pre-commit

Found in .husky/pre-commit, script will run

  • .scripts/configure.js script, keeping your configuration stable, as well as
  • ca and test scripts from package.json.

Please take a look in the package.json file and follow the two mentioned scripts to understand what they do and how they are called.

commit-msg

Found in .husky/commit-msg, script will run a commitlint check. Please read more on the official page on how to customize commitlint config.

Prerequisites / Dependencies

For Linux
  • git, gcc/g++, make
  • clang-formatter && clang-tidy
  • Python 3.6 or above.
  • Depending on the build system, please install:
    • NodeGyp: All requirements are set as default in the above list.
    • CMake: make, cmake
    • XMake: make, xmake

Do not forget NodeGyp is the main build system, so you need its requirements installed whatsoever.

# i.e ubuntu
PY_SUBVER=6 \
  sudo apt-get install -y \
    build-essential git make \
    python3.$PY_SUBVER \
    clang-format clang-tidy
# for CMake
sudo apt-get install cmake
# for XMake (see https://xmake.io/#/guide/installation)
bash <(curl -fsSL https://xmake.io/shget.text)
For MacOS
brew install git
brew install llvm && \
  ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format" && \
  ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy" && \
  ln -s "$(brew --prefix llvm)/bin/clang-apply-replacements" "/usr/local/bin/clang-apply-replacements"
# for CMake
brew install cmake
# for XMake (see https://xmake.io/#/guide/installation)
bash <(curl -fsSL https://xmake.io/shget.text)
For Windows
choco install git make python
# Visual Studio needs manual installation
choco install llvm
# for CMake
choco install cmake
# for XMake (see https://xmake.io/#/guide/installation)
Invoke-Expression (Invoke-Webrequest 'https://xmake.io/psget.text' -UseBasicParsing).Content

Known Issues / Troubleshooting

  1. Note that node-gyp doesn't support Python 2.7 anymore, so you'll need to install Python 3.6 or above.
  2. #2 xmake is still under development and not compiling properly in debug mode

Installation

git clone https://github.com/templ-project/nodejs-addon your_project
cd your_project
rm -rf .git
git init
git add remote origin https://url/to/your/project/repository
git add .
git commit -am "init"
git push origin master
npm install
node .scripts/configure -a node-addon-api -x gyp -e vscode -ucl

Configure Command

Read about the configure command, integrated build systems, supported IDEs and NodeJs APIs.

Development

Requirements

Please install:

Testing

Testing is done using mocha and chai.

Run unit tests using npm run test.

Testing is currently set to use unittest.

We will try to provide a Jest implementation in the future. If you wish us to rush into it, please submit a ticket.

Single Tests

Run single unit tests file, by calling npm run test:single -- test/path/to/file.test.js

npm test:single -- test/index.test.js

Deployment

Please check release-it for making releases to npmjs.com or any other repository tool, then run:

npm run release

Authors

Issues / Support

Add a set of links to the issues page/website, so people can know where to add issues/bugs or ask for support.

License

(If the package is public, add licence) This project is licensed under the MIT License - see the LICENSE.md file for details

node-addon's People

Contributors

dragoscirjan avatar

Watchers

James Cloos avatar  avatar

node-addon's Issues

runninc configure after renaming main.cc to main.cpp

๐Ÿ› Bug Report

Running configure.js after renaming main.cc to main.cpp will end up in the generation of two main files, generating a lot of problems in the code.

๐Ÿ’ Possible Solution

Maybe add a new arguments for not copying the main.cc template.

gyp build:dev fail on Windows

build:dev

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.8.2 found at "C:\Users\dragosc\AppData\Local\Programs\Python\Python38\python.exe"
gyp info find VS using VS2019 (16.7.30503.244) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\dragosc\AppData\Local\Programs\Python\Python38\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\dragosc\\AppData\\Local\\node-gyp\\Cache\\16.0.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\dragosc\\AppData\\Local\\node-gyp\\Cache\\16.0.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\dragosc\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.0.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\dragosc\\Workspace\\templates\\node-addon',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'build',
gyp verb cli   '--verbose',
gyp verb cli   '--debug'
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command build []
gyp verb build type Debug
gyp verb architecture x64
gyp verb node dev dir C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0
gyp verb found first Solution file build/binding.sln
gyp verb using MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Debug;Platform=x64'
gyp info spawn args ]
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 11/23/2021 11:52:14 PM.
Project "C:\Users\dragosc\Workspace\templates\node-addon\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|x64".
Project "C:\Users\dragosc\Workspace\templates\node-addon\build\binding.sln" (1) is building "C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\obj\main\".
  Creating directory "Debug\obj\main\main.tlog\".
InitializeBuildStatus:
  Creating "Debug\obj\main\main.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
MakeDirsForCl:
  Creating directory "C:\Users\dragosc\Workspace\templates\node-addon\build\Debug\obj\main\src".
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\CL.exe /c /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\include\node" /I"C:\Users\dragosc\AppData\Loca
  l\node-gyp\Cache\16.0.0\src" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\openssl\config" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\openssl\openssl\include" /I"C:\Users\dragosc\AppDa
  ta\Local\node-gyp\Cache\16.0.0\deps\uv\include" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\zlib" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\v8\include" /I"C:\Users\dragosc\Workspace
  \templates\node-addon\node_modules\node-addon-api" /Z7 /nologo /W3 /WX- /diagnostics:column /MP /Od /Oy- /GL /D NODE_GYP_MODULE_NAME=main /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D V8_DE
  PRECATION_WARNINGS /D V8_IMMINENT_DEPRECATION_WARNINGS /D _GLIBCXX_USE_CXX11_ABI=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D OPENSSL_NO_PINSHARED /D OPENSSL_THREADS /D N
  API_DISABLE_CPP_EXCEPTIONS /D BUILDING_NODE_EXTENSION /D "HOST_BINARY=\"node.exe\"" /D DEBUG /D _DEBUG /D V8_ENABLE_CHECKS /D _WINDLL /GF /Gm- /RTC1 /MTd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\o
  bj\main\\src\main.obj" /Fd"Debug\obj\main\vc142.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /FC /errorReport:queue ..\src\main.cc
  main.cc
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\CL.exe /c /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\include\node" /I"C:\Users\dragosc\AppData\Loca
  l\node-gyp\Cache\16.0.0\src" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\openssl\config" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\openssl\openssl\include" /I"C:\Users\dragosc\AppDa
  ta\Local\node-gyp\Cache\16.0.0\deps\uv\include" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\zlib" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\v8\include" /I"C:\Users\dragosc\Workspace
  \templates\node-addon\node_modules\node-addon-api" /Z7 /nologo /W3 /WX- /diagnostics:column /MP /Od /Oy- /GL /D NODE_GYP_MODULE_NAME=main /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D V8_DE
  PRECATION_WARNINGS /D V8_IMMINENT_DEPRECATION_WARNINGS /D _GLIBCXX_USE_CXX11_ABI=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D OPENSSL_NO_PINSHARED /D OPENSSL_THREADS /D N
  API_DISABLE_CPP_EXCEPTIONS /D BUILDING_NODE_EXTENSION /D "HOST_BINARY=\"node.exe\"" /D DEBUG /D _DEBUG /D V8_ENABLE_CHECKS /D _WINDLL /GF /Gm- /RTC1 /MTd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\o
  bj\main\\" /Fd"Debug\obj\main\vc142.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /FC /errorReport:queue "C:\Users\dragosc\Workspace\templates\node-addon\node_modules\node-gyp\src\win_delay_load
  _hook.cc"
  win_delay_load_hook.cc
Link:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\dragosc\Workspace\templates\node-addon\build\Debug\main.node" /INCREM
  ENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.lib "C:\\Users\\dragosc\\AppData\\Local\\node-gyp\\Cache\\16.0.0\\
  x64\\node.lib" Delayimp.lib /DELAYLOAD:node.exe /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\dragosc\Workspace\templates\node-addon\build\Debug\main.pdb" /OPT:REF /
  OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /LTCG:INCREMENTAL /ignore:4199 /DLL Debug\obj\main\win_delay_load_hook.obj
  Debug\obj\main\\src\main.obj
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification [C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj]
LINK : fatal error LNK1104: cannot open file 'C:\Users\dragosc\Workspace\templates\node-addon\build\Debug\main.node' [C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj]
Done Building Project "C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\dragosc\Workspace\templates\node-addon\build\binding.sln" (default targets) -- FAILED.


Build FAILED.

"C:\Users\dragosc\Workspace\templates\node-addon\build\binding.sln" (default target) (1) ->
"C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj" (default target) (2) ->
(Link target) ->
  LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification [C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj]


"C:\Users\dragosc\Workspace\templates\node-addon\build\binding.sln" (default target) (1) ->
"C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj" (default target) (2) ->
(Link target) ->
  LINK : fatal error LNK1104: cannot open file 'C:\Users\dragosc\Workspace\templates\node-addon\build\Debug\main.node' [C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj]

    1 Warning(s)
    1 Error(s)

build

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.8.2 found at "C:\Users\dragosc\AppData\Local\Programs\Python\Python38\python.exe"
gyp info find VS using VS2019 (16.7.30503.244) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\dragosc\AppData\Local\Programs\Python\Python38\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\dragosc\\AppData\\Local\\node-gyp\\Cache\\16.0.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\dragosc\\AppData\\Local\\node-gyp\\Cache\\16.0.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\dragosc\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.0.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\dragosc\\Workspace\\templates\\node-addon',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'C:\\Users\\dragosc\\Workspace\\templates\\node-addon\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'build',
gyp verb cli   '--verbose'
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0
gyp verb found first Solution file build/binding.sln
gyp verb using MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 11/23/2021 11:53:11 PM.
Project "C:\Users\dragosc\Workspace\templates\node-addon\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|x64".
Project "C:\Users\dragosc\Workspace\templates\node-addon\build\binding.sln" (1) is building "C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Release\obj\main\".
  Creating directory "Release\obj\main\main.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\main\main.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
MakeDirsForCl:
  Creating directory "C:\Users\dragosc\Workspace\templates\node-addon\build\Release\obj\main\src".
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\CL.exe /c /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\include\node" /I"C:\Users\dragosc\AppData\Loca
  l\node-gyp\Cache\16.0.0\src" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\openssl\config" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\openssl\openssl\include" /I"C:\Users\dragosc\AppDa
  ta\Local\node-gyp\Cache\16.0.0\deps\uv\include" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\zlib" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\v8\include" /I"C:\Users\dragosc\Workspace
  \templates\node-addon\node_modules\node-addon-api" /Z7 /nologo /W3 /WX- /diagnostics:column /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=main /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNING
  S=1 /D V8_DEPRECATION_WARNINGS /D V8_IMMINENT_DEPRECATION_WARNINGS /D _GLIBCXX_USE_CXX11_ABI=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D OPENSSL_NO_PINSHARED /D OPENSSL_
  THREADS /D NAPI_DISABLE_CPP_EXCEPTIONS /D BUILDING_NODE_EXTENSION /D "HOST_BINARY=\"node.exe\"" /D _WINDLL /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\main\\src\main.obj"
  /Fd"Release\obj\main\vc142.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /FC /errorReport:queue ..\src\main.cc
  main.cc
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\CL.exe /c /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\include\node" /I"C:\Users\dragosc\AppData\Loca
  l\node-gyp\Cache\16.0.0\src" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\openssl\config" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\openssl\openssl\include" /I"C:\Users\dragosc\AppDa
  ta\Local\node-gyp\Cache\16.0.0\deps\uv\include" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\zlib" /I"C:\Users\dragosc\AppData\Local\node-gyp\Cache\16.0.0\deps\v8\include" /I"C:\Users\dragosc\Workspace
  \templates\node-addon\node_modules\node-addon-api" /Z7 /nologo /W3 /WX- /diagnostics:column /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=main /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNING
  S=1 /D V8_DEPRECATION_WARNINGS /D V8_IMMINENT_DEPRECATION_WARNINGS /D _GLIBCXX_USE_CXX11_ABI=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D OPENSSL_NO_PINSHARED /D OPENSSL_
  THREADS /D NAPI_DISABLE_CPP_EXCEPTIONS /D BUILDING_NODE_EXTENSION /D "HOST_BINARY=\"node.exe\"" /D _WINDLL /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\main\\" /Fd"Release\
  obj\main\vc142.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /FC /errorReport:queue "C:\Users\dragosc\Workspace\templates\node-addon\node_modules\node-gyp\src\win_delay_load_hook.cc"
  win_delay_load_hook.cc
Link:
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\dragosc\Workspace\templates\node-addon\build\Release\main.node" /INCR
  EMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.lib "C:\\Users\\dragosc\\AppData\\Local\\node-gyp\\Cache\\16.
  0.0\\x64\\node.lib" Delayimp.lib /DELAYLOAD:node.exe /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\dragosc\Workspace\templates\node-addon\build\Release\main.pdb" /OP
  T:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /LTCG:INCREMENTAL /ignore:4199 /DLL Release\obj\main\win_delay_load_hook.obj
  Release\obj\main\\src\main.obj
     Creating library C:\Users\dragosc\Workspace\templates\node-addon\build\Release\main.lib and object C:\Users\dragosc\Workspace\templates\node-addon\build\Release\main.exp
  Generating code
  Previous IPDB not found, fall back to full compilation.
  All 170 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  main.vcxproj -> C:\Users\dragosc\Workspace\templates\node-addon\build\Release\\main.node
FinalizeBuildStatus:
  Deleting file "Release\obj\main\main.tlog\unsuccessfulbuild".
  Touching "Release\obj\main\main.tlog\main.lastbuildstate".
Done Building Project "C:\Users\dragosc\Workspace\templates\node-addon\build\main.vcxproj" (default targets).

Done Building Project "C:\Users\dragosc\Workspace\templates\node-addon\build\binding.sln" (default targets).


Build succeeded.
    0 Warning(s)
    0 Error(s)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.