flatmax / swig-and-napi

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 git@github.com: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

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Makefile 35.6%Language:C 20.0%Language:M4 16.5%Language:Shell 12.3%Language:C++ 7.0%Language:SWIG 6.0%Language:JavaScript 2.6%