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>
This commit is contained in:
@@ -8,5 +8,5 @@ include_directories(
|
||||
|
||||
SET_SOURCE_FILES_PROPERTIES(pymaa.i PROPERTIES CPLUSPLUS ON)
|
||||
|
||||
SWIG_ADD_MODULE(pymaa python pymaa.i ../maa.cxx ../i2c/i2c.cxx)
|
||||
SWIG_ADD_MODULE(pymaa python pymaa.i ${maa_LIB_SRCS})
|
||||
SWIG_LINK_LIBRARIES(pymaa ${PYTHON_LIBRARIES})
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
%module pymaa
|
||||
%{
|
||||
#include "maa.h"
|
||||
%}
|
||||
|
||||
%include ../maa.i
|
||||
|
||||
Reference in New Issue
Block a user