Skip to content

About An example autotools based swig C++ and nodejs repo with nodejs api (napi) integration

License

Notifications You must be signed in to change notification settings

flatmax/swig-and-napi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Foundations

This is a project foundation for C++ SWIG, node-addon-api (napi) and nodejs. It is based on autotools and lets you call C++ code from nodejs. It also lets you call javascript code (in the main nodejs thread) from a C++ thread.

requirements

You will need node-addon-api. Install in /usr/local and link to /usr/local/include :

cd /usr/local
git clone [email protected]:nodejs/node-addon-api.git
cd include
ln -s ../node-addon-api

You will also need libnodejs and a recent version of swig installed on your system.

Initial Setup

./autogen.sh

configuring

./configure

building

make

running

cd test
./RunTest.js

install

make install

uninstall

make uninstall

About

About An example autotools based swig C++ and nodejs repo with nodejs api (napi) integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published