Skip to content

Commit

Permalink
npm.md: add npm node-gyp build instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Le Foll <[email protected]>
  • Loading branch information
arfoll committed Mar 19, 2015
1 parent f0b3035 commit 54a4a0b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~

0 comments on commit 54a4a0b

Please sign in to comment.