Private
Public Access
2
0

npm.md: Update docs to include json removal

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-11-03 15:24:12 +00:00
parent bf4d14ef02
commit fe76260837

View File

@@ -24,12 +24,16 @@ dir which matches the npm pkg name so we create one with a symlink and add the
~~~~~~~~~~~~~{.sh} ~~~~~~~~~~~~~{.sh}
mkdir build mkdir build
cd build cd build
cmake -DBUILDSWIGNODE=ON .. cmake -DBUILDSWIGNODE=ON -DJSONPLAT=OFF ..
make npmpkg make npmpkg
ln -s ../ mraa ln -s ../ mraa
tar hczv --exclude='build*' --exclude='.gitignore' --exclude='.git' --exclude='build*/*' --exclude='.git/*' -f mraa.tar.gz mraa tar hczv --exclude='build*' --exclude='.gitignore' --exclude='.git' --exclude='build*/*' --exclude='.git/*' -f mraa.tar.gz mraa
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
You need to disable jsonplatform otherwise you will need to change the
binding.gyp file to include those sources and make sure target platform has
json-c headers & libs.
Building with node-gyp Building with node-gyp
---------------------- ----------------------