| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains the stub for Node-API used to avoid linker error on building native addon for Node.js using programming languages different from C and C++.
The main purpose of this reposistory is to build Node-API static library that you could include on your project. On release you can find the build for the following operating systems:
If you want to build the Node-API library on your own the first step is to clone this repository:
> git clone https://github.com/napi-bindings/node-api-stub.git
You will need to install GCC for Windows and CMake.
Open your shell and execute the commands reported below:
mkdir ./build cmake \ -DCMAKE_MAKE_PROGRAM=mingw32-make.exe \ -DCMAKE_C_COMPILER=gcc.exe \ -DCMAKE_CXX_COMPILER=g++.exe \ -DCMAKE_BUILD_TYPE=Release \ -G "CodeBlocks - Unix Makefiles" \ -S ./ \ -B ./build cmake --build ./build
-DCMAKE_BUILD_TYPE could be set with one of the following two values:
You will need to install C / C++ compiler and CMake.
These steps were tested on:
First, you will need to install dependencies:
sudo apt-get update sudo apt-get install build-essential -y sudo apt-get install cmake -y
These steps were tested on macOS Catalina (10.15).
First, you will need to install dependencies:
brew install cmake
Open your shell and execute the commands reported below:
mkdir ./build cmake \ -DCMAKE_BUILD_TYPE=Release \ -G "Unix Makefiles" \ -S ./ \ -B ./build cmake --build ./build
-DCMAKE_BUILD_TYPE could be set with one of the following two values:
https://www.npmjs.com/~nicknaso
Thank you to all people that encourage me every day.
Licensed under Apache license V2
| Back | FazBrowse Home | New Git URL |