obastemur / jxcore-addon

JXcore native addon sample with multiple JavaScript engine support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jxcore-addon

JXcore native addon with multiple JavaScript engine support

how-to

First clone JXcore and this repo from Github and compile.

 $> git clone https://github.com/jxcore/jxcore
 $> git clone https://github.com/jxcore/jxcore-addon
 $> cd jxcore
 $> ./configure 
 $> sudo make install

You should have JXcore installed. Check it and force npmjx.

 $> sudo jx install 

Clone this repo;

 $> cd ../jxcore-addon
 $> jx install

Check if it works

 $> jx test.js

You can also try with JXcore SpiderMonkey details to compile

Simply compile the addon for each engine by jx install. It will compile the addon for SpiderMonkey. No code update is required.

Looking for a more advanced example ?

Leveldown Addon with JXcore Macro

Tip

If you are having a problem, try deleting USER_HOME/.node_gyp/ folder

About

JXcore native addon sample with multiple JavaScript engine support

License:MIT License


Languages

Language:C++ 54.9%Language:Python 34.5%Language:JavaScript 10.6%