https://github.com/intel-iot-devkit/mraa
Raw File
Tip revision: c65a1de3ba3e5cf19a1a0162420c281d658b9f7c authored by Brendan Le Foll on 11 February 2015, 10:40:16 UTC
mraa: update to version 0.6.0
Tip revision: c65a1de
npm.md
mraa NPM pkg                        {#npmpkg}
============

What you are looking at is a tarball made after 'make npmpkg' has been run on
our build system. It contains a few prebuilt files in order to build easily
with node-gyp on most systems. Note that this is not the preffered way of
building libmraa and if you'd like to contribute, please learn how the build
system works and get your sources from git.

Any patches for mraajsJAVASCRIPT_wrap.cxx or version.c will be ignored as these
are automatically generated files. When you execute a build from node-gyp/npm
you do not generate the mraajsJAVASCRIPT_wrap.cxx file but rather use one that
we have generated for you.

Recreating tarball
------------------

From a checkout of mraa you can do the following to 'generate' this tarball.
It's important to not leave a .git directory as npm will then consider the
tarball contains a full git tree. Also you need a top level dir which matches
the npm pkg name so we create one with a symlink and add the 'h' flag to tar to
follow simlinks.

~~~~~~~~~~~~~{.sh}
mkdir build
cd build
cmake -DBUILDSWIGNODE=ON  ..
make npmpkg
ln -s ../ mraa
tar hczv --exclude='build*' --exclude='.gitignore' --exclude='.git' --exclude='build*/*' --exclude='.git/*' -f mraa.tar.gz mraa
~~~~~~~~~~~~~
back to top