From: Brendan Le Foll Date: Thu, 19 Mar 2015 18:16:27 +0000 (+0000) Subject: npm.md: add npm node-gyp build instructions X-Git-Tag: v0.6.2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54a4a0bb1fa4acf8969fa926d11d0c0d17b22d7f;p=contrib%2Fmraa.git npm.md: add npm node-gyp build instructions Signed-off-by: Brendan Le Foll --- diff --git a/docs/npm.md b/docs/npm.md index 9ba4897..f6df13d 100644 --- a/docs/npm.md +++ b/docs/npm.md @@ -29,3 +29,17 @@ make npmpkg ln -s ../ mraa tar hczv --exclude='build*' --exclude='.gitignore' --exclude='.git' --exclude='build*/*' --exclude='.git/*' -f mraa.tar.gz mraa ~~~~~~~~~~~~~ + +Building with node-gyp +---------------------- + +You can build with node-gyp using the binding.gyp file, obviously this requires +either the prebuilt tarball from npm or to do the above to generate it with the +npmpkg target. Note the --target='' flag will not work since binding.gyp will +do a check for the running node v8 version, you'll also need to run that +version (or close to) in your $PATH. + +~~~~~~~~~~~{.sh} +node-gyp configure --python=/usr/bin/python2 +node-gyp build --python=/usr/bin/python2 --verbose +~~~~~~~~~~~