Brendan Le Foll
50ca84b600
mraajs.i: add %include carrays.i to fix generation with SWIG 3.0.4
...
Fixes #97
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-16 13:45:04 +00:00
Brendan Le Foll
b7a0856f51
spi: Make Spi write() work from SWIG with typemaps
...
This change also changes the C++ API write(char) call to writeByte(uint8_t) and
the write() call now takes a uint8_t* instead of a char*. This should not alter
any code significantly and does not affect the C API.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-14 11:52:12 +00:00
Brendan Le Foll
f14654a120
mraajs.i: add i2c read/write function typemaps
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-06 11:24:56 +00:00
Brendan Le Foll
da15fdb6da
binding.gyp.cmake: fix architecture name for 32bit x86
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-10 14:52:23 +00:00
Brendan Le Foll
2c5e749c2c
binding.gyp.cmake: define *PLAT based on target_platform
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-09 18:39:21 +00:00
Helio Chissini de Castro
1b059c1351
package.json.cmake: Proper version requires for nodejs
...
Signed-off-by: Helio Chissini de Castro <helio@kde.org >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-01 15:23:32 +00:00
Brendan Le Foll
14f4567d86
package.json.cmake: fix broken main property
...
This is a partial revert of previous commit
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-01 14:41:20 +00:00
Brendan Le Foll
36e24bade8
npmpkg: Fix package.json having invalid main property
...
Fixes #48
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-12-01 13:59:47 +00:00
Brendan Le Foll
abd538dc4b
cmake: fix indentation
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 18:03:36 +00:00
Brendan Le Foll
0ca4b10687
package.json.cmake: remove repository tag causing issues on update
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 17:45:50 +00:00
Brendan Le Foll
a38c07f7b1
npm: add node-gyp build support
...
This commit adds all the infrastructure necessary for doing node-gyp builds of
mraa. Note this will only build the mraa js bindings and will dirty your git
tree whilst doing it. It also assumes the user does not have SWIG installed on
their machines and so the swig wrapper is static. The target to use this
feature is 'npmpkg'.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 15:20:19 +00:00
Brendan Le Foll
d4552fdc5e
javascript: add a generated package.json with versioning
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 11:19:05 +00:00
Thomas Ingleby
181ba35f4d
javascript: dont't wipe other cxx flags
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-09 17:29:42 +01:00
Brendan Le Foll
c821c84e4a
mraa: pymraa becomes mraa and mraajs becomes mraa
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-25 17:49:07 +01:00
Thomas Ingleby
6853997a92
mraa: rename from maa to mraa
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-06-24 17:24:54 +01:00
Thomas Ingleby
be1248930b
js-swig: remove whitespace
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-06-10 20:17:09 +01:00
Brendan Le Foll
35d38bc72a
package.json: add extra info about module license and runtime support
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-04 15:37:00 +01:00
Brendan Le Foll
2c278acfcd
cmake: install python & node.js modules correctly
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-04 12:06:04 +01:00
Brendan Le Foll
28fc9f97c9
swig: use C++ generated class doc and include directly from maa.i
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-30 10:28:21 +01:00
Brendan Le Foll
bd1fabab5e
nodejs: define BUILDING_NODE_EXTENSION in CXXFLAGS for upstream swig
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-22 11:40:59 +01:00
Thomas Ingleby
923e4829a9
maa: change javascript to use swig upstream
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-22 10:16:09 +01:00
Brendan Le Foll
9387c943d9
cmake: fix hard includ of node headers for cross compile
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-15 16:40:40 +01:00
Brendan Le Foll
aa60cae49d
maajs: fix example with object API
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-08 11:24:13 +01:00
Brendan Le Foll
8c016318a6
swig: make swig generation of objects generic
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-01 16:11:17 +01:00
Brendan Le Foll
0450c2e159
doxygen: generic and more reliable doxygen/swig autodoc integration
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-30 10:50:44 +01:00
Brendan Le Foll
804c4a437d
javascript: fix swig generation of node.js api
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-29 18:44:09 +01:00
Brendan Le Foll
a5a407e4b5
MAA version 0.2.0 moves to a standard C API
...
* Removed all C++ code and renamed all .cxx extensions to .c
* All functions are renamed to maa_ and modules are for example called maa_pwm
* Cmake can now 'make doc' using a Doxyfile.in to create documentation
* examples/ have been updated but swig generated API is untested
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-27 21:17:54 +01:00
Brendan Le Foll
9994ea855c
maa: Refactor maa build system and partly implement i2c
...
* API headers moved to api/
* smbus file added from libi2c and kernel i2c header cleaned up
* fix compilation of swig and use i2c.h header
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-10 16:53:19 +01:00
Brendan Le Foll
b7d42d470f
maa.i: remove dependancy on -includeall and specifiy which headers to include in maa.i
2014-04-10 11:05:40 +01:00
Brendan Le Foll
00ba95bac0
maa: Initial commit of maa, a python and nodejs I2C skeleton only
2014-04-08 18:45:30 +01:00